ember-ebau-gwr 2.5.1 → 3.0.0
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/.github/workflows/test.yml +3 -3
- package/CHANGELOG.md +101 -0
- package/addon/components/import-modal/building-data.hbs +64 -0
- package/addon/components/import-modal/dwelling-data.hbs +30 -0
- package/addon/components/import-modal/entrance-data.hbs +14 -0
- package/addon/components/import-modal.hbs +54 -0
- package/addon/components/import-modal.js +6 -0
- package/addon/components/link-building-modal.hbs +17 -14
- package/addon/components/link-building-modal.js +11 -1
- package/addon/components/link-street.hbs +83 -0
- package/addon/components/link-street.js +6 -0
- package/addon/components/linked-models.hbs +16 -2
- package/addon/components/linked-models.js +6 -0
- package/addon/components/linked-projects.hbs +2 -1
- package/addon/components/linked-projects.js +6 -0
- package/addon/components/model-form/date.hbs +1 -0
- package/addon/components/model-form/date.js +6 -6
- package/addon/components/model-form/diff.hbs +40 -27
- package/addon/components/model-form/field.hbs +13 -8
- package/addon/components/model-form/field.js +22 -6
- package/addon/components/model-form/header/actions.hbs +67 -35
- package/addon/components/model-form/header/actions.js +6 -0
- package/addon/components/model-form/header/status-selector.hbs +22 -5
- package/addon/components/model-form/header/status-selector.js +19 -4
- package/addon/components/model-form/header.hbs +10 -4
- package/addon/components/model-form.hbs +14 -9
- package/addon/components/model-form.js +20 -6
- package/addon/components/project-form/date.hbs +1 -1
- package/addon/components/project-form/field.hbs +1 -1
- package/addon/components/project-form/field.js +1 -1
- package/addon/components/search/filters.hbs +1 -1
- package/addon/components/search/filters.js +3 -3
- package/addon/controllers/building/edit/dwelling/edit.js +61 -5
- package/addon/controllers/building/edit/dwellings.js +3 -0
- package/addon/controllers/building/edit/entrance/edit/index.js +22 -8
- package/addon/controllers/building/edit/entrance/edit/link-street.js +30 -6
- package/addon/controllers/building/edit/entrances.js +18 -2
- package/addon/controllers/building/edit/form.js +109 -27
- package/addon/controllers/import.js +70 -0
- package/addon/controllers/project/form.js +221 -20
- package/addon/controllers/project/linked-buildings.js +20 -1
- package/addon/controllers/project.js +19 -0
- package/addon/controllers/search-building.js +17 -0
- package/addon/helpers/is-unset.js +7 -0
- package/addon/models/building-entrance.js +4 -5
- package/addon/models/building-work.js +11 -9
- package/addon/models/building.js +171 -114
- package/addon/models/client.js +1 -1
- package/addon/models/construction-project.js +148 -66
- package/addon/models/construction-projects-list.js +1 -1
- package/addon/models/dwelling.js +60 -66
- package/addon/models/identification.js +4 -17
- package/addon/models/options.js +1 -0
- package/addon/models/realestate-identification.js +8 -14
- package/addon/models.js +1 -2
- package/addon/routes/building/edit/dwelling/new.js +3 -0
- package/addon/routes/building/edit/entrance/edit/index.js +7 -0
- package/addon/routes/building/edit/entrance/edit/link-street.js +8 -1
- package/addon/routes/building/edit/entrance/new.js +12 -2
- package/addon/routes/building/edit/index.js +13 -1
- package/addon/routes/building/edit.js +5 -1
- package/addon/routes/building/new.js +25 -0
- package/addon/routes/project/form.js +5 -0
- package/addon/routes/project/new.js +3 -2
- package/addon/services/building-entrance.js +1 -1
- package/addon/services/building.js +412 -55
- package/addon/services/construction-project.js +637 -5
- package/addon/services/dwelling.js +238 -5
- package/addon/services/gwr.js +4 -2
- package/addon/templates/building/edit/dwelling/edit.hbs +20 -13
- package/addon/templates/building/edit/entrance/edit/index.hbs +16 -60
- package/addon/templates/building/edit/entrance/edit/link-street.hbs +9 -4
- package/addon/templates/building/edit/entrances.hbs +6 -3
- package/addon/templates/building/edit/form.hbs +130 -77
- package/addon/templates/project/errors.hbs +128 -126
- package/addon/templates/project/form.hbs +179 -71
- package/addon/templates/project/linked-buildings.hbs +20 -4
- package/addon/templates/project.hbs +40 -5
- package/addon/templates/search-building.hbs +9 -0
- package/addon/templates/search-project.hbs +4 -0
- package/addon/validations/building-entrance.js +5 -0
- package/addon/validations/building-work.js +30 -10
- package/addon/validations/construction-project.js +12 -0
- package/addon/validations/coordinates.js +7 -5
- package/addon/validations/dwelling.js +10 -0
- package/addon/validations/realestate-identification.js +39 -0
- package/addon/validations/status/status-building-change.js +10 -1
- package/addon/validations/status/status-building-correction.js +13 -3
- package/addon/validations/status/status-dwelling-change.js +20 -12
- package/addon/validations/status/status-dwelling-correction.js +19 -11
- package/addon/validations/status/status-project-change.js +24 -4
- package/addon/validations/status/status-project-correction.js +31 -10
- package/addon/xml/helpers.js +4 -0
- package/addon/xml/templates/building.js +35 -21
- package/addon/xml/templates/construction-project.js +3 -4
- package/addon/xml/templates/dwelling.js +7 -0
- package/app/styles/ember-ebau-gwr.scss +36 -6
- package/package.json +9 -5
- package/translations/building/de.yaml +42 -6
- package/translations/building-entrance/de.yaml +6 -11
- package/translations/construction-project/de.yaml +13 -5
- package/translations/de.yaml +72 -5
- package/translations/dwelling/de.yaml +7 -4
- package/addon/validators/presence-nested.js +0 -47
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
- uses: actions/checkout@v2
|
|
20
20
|
- uses: actions/setup-node@v1
|
|
21
21
|
with:
|
|
22
|
-
node-version:
|
|
22
|
+
node-version: 14
|
|
23
23
|
|
|
24
24
|
- name: Install Dependencies
|
|
25
25
|
run: yarn install
|
|
@@ -36,7 +36,7 @@ jobs:
|
|
|
36
36
|
- uses: actions/checkout@v2
|
|
37
37
|
- uses: actions/setup-node@v1
|
|
38
38
|
with:
|
|
39
|
-
node-version:
|
|
39
|
+
node-version: 14
|
|
40
40
|
|
|
41
41
|
- name: Install dependencies (no lockfile)
|
|
42
42
|
run: yarn install --no-lockfile
|
|
@@ -65,7 +65,7 @@ jobs:
|
|
|
65
65
|
- uses: actions/checkout@v2
|
|
66
66
|
- uses: actions/setup-node@v1
|
|
67
67
|
with:
|
|
68
|
-
node-version:
|
|
68
|
+
node-version: 14
|
|
69
69
|
|
|
70
70
|
- name: Install dependencies
|
|
71
71
|
run: yarn install
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,104 @@
|
|
|
1
|
+
# [3.0.0](https://github.com/adfinis-sygroup/ember-ebau-gwr/compare/v2.7.1...v3.0.0) (2021-09-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **building:** add default building entrance and street validation ([74b1a5b](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/74b1a5b13e713e63785a7eb27a2ccba7d22095d9))
|
|
7
|
+
* **building:** make default building entrance editable ([1ca2c4e](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/1ca2c4e1550da378ac6768c60ebca94f119ed711))
|
|
8
|
+
* **controllers/import:** reset query params while fetching caluma data ([d56ac06](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/d56ac06657cd8db3637e6db7c60f29850a787d61))
|
|
9
|
+
* **data-import:** pass instanceId to import functions ([eacdc4f](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/eacdc4fbfd9aabd61a744cb7daf9723cb9ff76ed))
|
|
10
|
+
* **import:** ignore null values in import data ([ab7df83](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/ab7df83431bab62c0c2edf8b3d5850ce2ff18956))
|
|
11
|
+
* **model-form:** ensure date values are reset on model update ([b73d6a5](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/b73d6a5dafd6984ebba548abc7e68c67734d74a1))
|
|
12
|
+
* **project:** correct confirmation dialog modal container ([1bd5be9](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/1bd5be949225d6d07dfa0670cac3238f5e901a61))
|
|
13
|
+
* **project:** fix client identification template ([9c50743](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/9c50743c069d2a6b21cf0a1ba3f8a9dc2f9e317f))
|
|
14
|
+
* **project:** replace non-realisation date with cancellation date ([bca5f83](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/bca5f83ca15f5a5311a86471a9ce9144a31e3bf0))
|
|
15
|
+
* **project/new:** extend new route from form route ([e2837d3](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/e2837d3825369033bf14b8e876b9bacddf7b7449))
|
|
16
|
+
* **translations:** use a conciser word for cancel to reject a import value ([1ea1a8e](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/1ea1a8eb8dcd64e0ffa295784c992d63d2365a1d))
|
|
17
|
+
* **ui:** render tooltips in correct application container ([65f5265](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/65f5265ce8b010fb13933bc808b8cb510272feb0))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Code Refactoring
|
|
21
|
+
|
|
22
|
+
* **modal-container:** make the modal container configurable via config-service ([328fdd8](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/328fdd8e4753cfe41d2d2b5e5c0d49bb931b18de))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **building:** enable building entrance deactivation ([6840c4a](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/6840c4a1ab8a913259c8dca976d620340d372047))
|
|
28
|
+
* add import for buildings, entrances & dwellings ([9c80eca](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/9c80eca2d75e154232a4c74b8fb6616bb77c4fff))
|
|
29
|
+
* **import:** implement import-modal for dwelling, entrances and buildings ([10db43c](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/10db43ce61e195191f5b02b43c811facaf476826))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### BREAKING CHANGES
|
|
33
|
+
|
|
34
|
+
* **modal-container:** To keep the previous behavior of modals, `modalContainer` now needs to be set to a
|
|
35
|
+
valid dom-selector in the gwr config service.
|
|
36
|
+
|
|
37
|
+
Example:
|
|
38
|
+
`modalContainer = "#my-modal-div"`
|
|
39
|
+
|
|
40
|
+
## [2.7.1](https://github.com/adfinis-sygroup/ember-ebau-gwr/compare/v2.7.0...v2.7.1) (2021-09-13)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
* **import:** ensure diff fields are registered correctly ([33fd1cd](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/33fd1cd36efaaf91cfcfab49f2f1ea7de09270ab))
|
|
46
|
+
|
|
47
|
+
# [2.7.0](https://github.com/adfinis-sygroup/ember-ebau-gwr/compare/v2.6.0...v2.7.0) (2021-09-13)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* **building:** add realestateIdentification form fields ([f9d3e0f](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/f9d3e0f970f5ba4e22e05b24996242cb7bb71089))
|
|
53
|
+
* **building-entrance:** display coordinates and ARBID ([ce2bbdf](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/ce2bbdf70ebf9dc6b41de92963ee0211103f6668))
|
|
54
|
+
* **building-entrance:** fix link to street ([62682a0](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/62682a04c03782e22fd56aaf08c2300aaf615a45))
|
|
55
|
+
* **buildingWork:** boolean fields are only allowed on a transformation ([bed4a3a](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/bed4a3a6a841a67318971c9e7e1f467d11f6cfb6))
|
|
56
|
+
* **dwelling:** make residence flags readonly ([b37c5c1](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/b37c5c1977271952754c174ed7f860b4777da1d5))
|
|
57
|
+
* **dwelling:** rename field dateOfConstruction to yearOfConstruction ([5fb41c7](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/5fb41c7ee4ba27345cfeed88fc93d01c7ee567e1))
|
|
58
|
+
* **dwelling:** use correct field for dateOfDemolition ([329f91f](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/329f91f52b13120571f9fad052af4ea9175ea44b))
|
|
59
|
+
* **dwelling;building:** remove status select ([78d1c31](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/78d1c3138933ca0210ca406d2dc59d4bbdefc173))
|
|
60
|
+
* **fields:** remove unneeded fields and change field types ([0b9ca98](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/0b9ca98757af597e46b475372e3e4aae7fd0c5f9))
|
|
61
|
+
* **form:** display plain text with form-labels instead of bold-text ([065c0c5](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/065c0c599b326fc63f5c39278651da5bfc690495))
|
|
62
|
+
* **general:** fix minor issues ([a560d9a](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/a560d9a807d0cdc8e64d996c747aff59a41ae013))
|
|
63
|
+
* **life-cycles:** cascade building set to realized ([c2fb120](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/c2fb1201a3aebd9f380153473d9470419380e6ca))
|
|
64
|
+
* **life-cycles:** cascade project non-realisation and refusal ([2ecefa8](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/2ecefa8f4bdb0ac619eb43e5942542735128be02))
|
|
65
|
+
* **life-cycles:** complete transition requirements ([dd0cbab](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/dd0cbab4950017f057316f66767870b825b992c2))
|
|
66
|
+
* **life-cycles:** ensure life-cycle preconditions hold ([249556c](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/249556c26d6ff5b7cf5c55fd1d265668e9e83977))
|
|
67
|
+
* **life-cycles:** fix set to construction started on dwellings ([3af601e](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/3af601e8e7521e6d38b7fb234a4cbb6363dfc7bb))
|
|
68
|
+
* **life-cycles:** perform check before life cycle transitions ([47227a6](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/47227a6cd69cb6ca50f558b256cdd543463f217d))
|
|
69
|
+
* **life-cycles:** prohibit checks for infrastructure projects ([3f5a5d0](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/3f5a5d0415c6e6d5e8af139ff50fac4423b1d18c))
|
|
70
|
+
* **life-cycles:** reload linked objects on status change ([c953b3f](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/c953b3ffdad1da313e8d94ca84b49b9787ef4656))
|
|
71
|
+
* **life-cycles:** require realestate identification for completion ([158702c](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/158702c0b4e369c9d59490a865d3ebbd49ae0d66))
|
|
72
|
+
* **project-nav-tab:** check for superstructure id not infrastructure ([aae885a](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/aae885ab62f33a3f437b5784f2e10e5c37fb6b5b))
|
|
73
|
+
* **search-building:** fix translations and add missing search field ([2f18c51](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/2f18c51511f86343c104a8c4e56a5ee90b2af8a1))
|
|
74
|
+
* **translations:** add missing values ([7715d1d](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/7715d1d98a7b0693f7837e380c9300340382fd62))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Features
|
|
78
|
+
|
|
79
|
+
* **constructionProject:** add projectFreeText1 and 2 to view ([fe8ace2](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/fe8ace24f29e113df6175f05eb7a94d3aabfbd92))
|
|
80
|
+
* **dwelling:** add yearOfDemolition and yearOfConstruction ([32a4c52](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/32a4c52ea75dc97eb6c642f6c7e68080c69837f5))
|
|
81
|
+
* **linked-projects:** add a visual separation to projects list ([170a9e0](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/170a9e0d40fb0a2798aa994249dd8fbb2a0ae317))
|
|
82
|
+
* **project:** add editable work list for infrastructure projects ([28dfd39](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/28dfd396dea7afd3e38a1752a7e753d25530f4fe))
|
|
83
|
+
* **project:** confirmation dialog when switching type of construction project ([2548141](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/2548141241cf8de4d5da94adbc8b9d0d4334bf79))
|
|
84
|
+
* **project:** full realestateIdentification ([2da1822](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/2da182292aa1204b44ea29d11013e1fcffb8e8a9))
|
|
85
|
+
* **project-nav:** add housingstat link ([e9784bb](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/e9784bb9ff7b36bb5fbcb68b0f93d3c4fd28d16f))
|
|
86
|
+
* **project-nav:** display building tab on infra projects ([c484256](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/c484256f0229a4799444b38afdaaad55aa351812))
|
|
87
|
+
|
|
88
|
+
# [2.6.0](https://github.com/adfinis-sygroup/ember-ebau-gwr/compare/v2.5.1...v2.6.0) (2021-08-24)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Bug Fixes
|
|
92
|
+
|
|
93
|
+
* **construction-project:** set ARBID to 1 so there are no errors for the empty linked work ([780fa4d](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/780fa4d27b24678a48c04dfec1342c6acbdb4fae))
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Features
|
|
97
|
+
|
|
98
|
+
* **construction-project:** display fixed values as plain text instead of input ([3486f62](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/3486f6247dace461d9c490bf779652cfecab1b0c))
|
|
99
|
+
* **project-number:** make officialConstructionProjectFileNo writable ([f6eb978](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/f6eb978ff185ba2ce03a5a23d60b1937810c155a))
|
|
100
|
+
* **project-search:** display official number in results ([cca3966](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/cca3966125172bb202915e44d45369544236c320))
|
|
101
|
+
|
|
1
102
|
## [2.5.1](https://github.com/adfinis-sygroup/ember-ebau-gwr/compare/v2.5.0...v2.5.1) (2021-08-13)
|
|
2
103
|
|
|
3
104
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
2
|
+
<span>{{t "ember-gwr.buildingWork.kindOfWork"}}</span>
|
|
3
|
+
<span class="uk-text-muted">{{if
|
|
4
|
+
@model.kindOfWork
|
|
5
|
+
(t (concat "ember-gwr.buildingWork.kindOfWorkOptions." @model.kindOfWork))
|
|
6
|
+
"-"
|
|
7
|
+
}}</span>
|
|
8
|
+
</span>
|
|
9
|
+
<hr />
|
|
10
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
11
|
+
<span>{{t "ember-gwr.building.buildingStatus"}}</span>
|
|
12
|
+
<span class="uk-text-muted">{{if
|
|
13
|
+
@model.building.buildingStatus
|
|
14
|
+
(t
|
|
15
|
+
(concat
|
|
16
|
+
"ember-gwr.building.buildingStatusOptions."
|
|
17
|
+
@model.building.buildingStatus
|
|
18
|
+
)
|
|
19
|
+
)
|
|
20
|
+
"-"
|
|
21
|
+
}}</span>
|
|
22
|
+
</span>
|
|
23
|
+
<hr />
|
|
24
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
25
|
+
<span>{{t "ember-gwr.building.nameOfBuilding"}}</span>
|
|
26
|
+
<span class="uk-text-muted">{{or @model.building.nameOfBuilding "-"}}</span>
|
|
27
|
+
</span>
|
|
28
|
+
<hr />
|
|
29
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
30
|
+
<span>{{t "ember-gwr.building.buildingCategory"}}</span>
|
|
31
|
+
<span class="uk-text-muted">
|
|
32
|
+
{{if
|
|
33
|
+
@model.building.buildingCategory
|
|
34
|
+
(t
|
|
35
|
+
(concat
|
|
36
|
+
"ember-gwr.building.buildingCategoryOptions."
|
|
37
|
+
@model.building.buildingCategory
|
|
38
|
+
)
|
|
39
|
+
)
|
|
40
|
+
"-"
|
|
41
|
+
}}
|
|
42
|
+
</span>
|
|
43
|
+
</span>
|
|
44
|
+
<hr />
|
|
45
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
46
|
+
<span>{{t "ember-gwr.building.buildingClass"}}</span>
|
|
47
|
+
<span class="uk-text-muted">
|
|
48
|
+
{{if
|
|
49
|
+
@model.building.buildingClass
|
|
50
|
+
(t
|
|
51
|
+
(concat
|
|
52
|
+
"ember-gwr.building.buildingClassOptions."
|
|
53
|
+
@model.building.buildingClass
|
|
54
|
+
)
|
|
55
|
+
)
|
|
56
|
+
"-"
|
|
57
|
+
}}
|
|
58
|
+
</span>
|
|
59
|
+
</span>
|
|
60
|
+
<hr />
|
|
61
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
62
|
+
<span>{{t "ember-gwr.building.numberOfFloors"}}</span>
|
|
63
|
+
<span class="uk-text-muted">{{or @model.building.numberOfFloors "-"}}</span>
|
|
64
|
+
</span>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
2
|
+
<span>{{t "ember-gwr.dwelling.floor"}}</span>
|
|
3
|
+
<span class="uk-text-muted">{{or @model.floor "-"}}</span>
|
|
4
|
+
</span>
|
|
5
|
+
<hr />
|
|
6
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
7
|
+
<span>{{t "ember-gwr.dwelling.noOfHabitableRooms"}}</span>
|
|
8
|
+
<span class="uk-text-muted">{{or @model.noOfHabitableRooms "-"}}</span>
|
|
9
|
+
</span>
|
|
10
|
+
<hr />
|
|
11
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
12
|
+
<span>{{t "ember-gwr.dwelling.dwellingUsage.usageCode"}}</span>
|
|
13
|
+
<span class="uk-text-muted">{{if
|
|
14
|
+
@model.dwellingUsage.usageCode
|
|
15
|
+
(t
|
|
16
|
+
(concat
|
|
17
|
+
"ember-gwr.dwelling.dwellingUsage.usageCodeOptions."
|
|
18
|
+
@model.dwellingUsage.usageCode
|
|
19
|
+
)
|
|
20
|
+
)
|
|
21
|
+
"-"
|
|
22
|
+
}}</span>
|
|
23
|
+
</span>
|
|
24
|
+
<hr />
|
|
25
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
26
|
+
<span>{{t "ember-gwr.dwelling.locationOfDwellingOnFloor"}}</span>
|
|
27
|
+
<span class="uk-text-muted">
|
|
28
|
+
{{or @model.locationOfDwellingOnFloor "-"}}
|
|
29
|
+
</span>
|
|
30
|
+
</span>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
2
|
+
<span>{{t "ember-gwr.buildingEntrance.fields.buildingEntranceNo"}}</span>
|
|
3
|
+
<span class="uk-text-muted">{{or @model.buildingEntranceNo "-"}}</span>
|
|
4
|
+
</span>
|
|
5
|
+
<hr />
|
|
6
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
7
|
+
<span>{{t "ember-gwr.buildingEntrance.fields.locality.name.nameLong"}}</span>
|
|
8
|
+
<span class="uk-text-muted">{{or @model.locality.name.nameLong "-"}}</span>
|
|
9
|
+
</span>
|
|
10
|
+
<hr />
|
|
11
|
+
<span class="uk-flex uk-child-width-1-2">
|
|
12
|
+
<span>{{t "ember-gwr.buildingEntrance.fields.locality.swissZipCode"}}</span>
|
|
13
|
+
<span class="uk-text-muted">{{or @model.locality.swissZipCode "-"}}</span>
|
|
14
|
+
</span>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<UkModal
|
|
2
|
+
@visible={{@visible}}
|
|
3
|
+
@btnClose={{false}}
|
|
4
|
+
@escClose={{false}}
|
|
5
|
+
@bgClose={{false}}
|
|
6
|
+
@on-hide={{@close}}
|
|
7
|
+
@container={{this.config.modalContainer}}
|
|
8
|
+
as |Modal|
|
|
9
|
+
>
|
|
10
|
+
<Modal.header>
|
|
11
|
+
<h2 class="uk-modal-title">
|
|
12
|
+
{{t "ember-gwr.components.importModal.selectImportData"}}
|
|
13
|
+
</h2>
|
|
14
|
+
</Modal.header>
|
|
15
|
+
<Modal.body class="uk-overflow-auto">
|
|
16
|
+
<ul
|
|
17
|
+
uk-accordion="collapsible: false;multiple: false; active: 0;"
|
|
18
|
+
class="ember-ebau-gwr-import-building-list"
|
|
19
|
+
>
|
|
20
|
+
{{#each @import.originalData as |model index|}}
|
|
21
|
+
<li>
|
|
22
|
+
<a class="uk-accordion-title" href="#">{{t
|
|
23
|
+
(concat "ember-gwr.models." @modelName)
|
|
24
|
+
count=1
|
|
25
|
+
}}
|
|
26
|
+
{{inc index}}</a>
|
|
27
|
+
<div class="uk-accordion-content">
|
|
28
|
+
{{component
|
|
29
|
+
(concat "import-modal/" @modelName "-data")
|
|
30
|
+
model=model
|
|
31
|
+
}}
|
|
32
|
+
|
|
33
|
+
<LinkTo
|
|
34
|
+
@query={{hash import=true index=index}}
|
|
35
|
+
class="uk-button uk-button-primary uk-margin-medium-top uk-width-1"
|
|
36
|
+
{{on "click" @close}}
|
|
37
|
+
>
|
|
38
|
+
{{t "ember-gwr.components.modelForm.importFromCaluma"}}
|
|
39
|
+
</LinkTo>
|
|
40
|
+
</div>
|
|
41
|
+
</li>
|
|
42
|
+
{{/each}}
|
|
43
|
+
</ul>
|
|
44
|
+
</Modal.body>
|
|
45
|
+
<Modal.footer>
|
|
46
|
+
<LinkTo
|
|
47
|
+
@query={{hash import=false index=undefined}}
|
|
48
|
+
class="uk-button uk-button-default uk-width-1"
|
|
49
|
+
{{on "click" @close}}
|
|
50
|
+
>
|
|
51
|
+
{{t "ember-gwr.components.modelForm.cancelImport"}}
|
|
52
|
+
</LinkTo>
|
|
53
|
+
</Modal.footer>
|
|
54
|
+
</UkModal>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<UkModal
|
|
2
2
|
@visible={{@visible}}
|
|
3
3
|
@on-hide={{@close}}
|
|
4
|
-
@container=
|
|
4
|
+
@container={{this.config.modalContainer}}
|
|
5
5
|
as |Modal|
|
|
6
6
|
>
|
|
7
7
|
<Modal.header>
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"project-form/field"
|
|
16
16
|
project=this.buildingWork
|
|
17
17
|
translationBase="ember-gwr.buildingWork"
|
|
18
|
-
)
|
|
18
|
+
)
|
|
19
|
+
as |Field|
|
|
19
20
|
}}
|
|
20
21
|
<Field
|
|
21
22
|
@attr="kindOfWork"
|
|
@@ -24,15 +25,17 @@
|
|
|
24
25
|
@noPlaceholder={{true}}
|
|
25
26
|
@options={{this.kindOfWorkOptions}}
|
|
26
27
|
/>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
{{#if (eq this.buildingWork.kindOfWork 6002)}}
|
|
29
|
+
<Field @attr="energeticRestauration" @inputType="checkbox" />
|
|
30
|
+
<Field @attr="renovationHeatingsystem" @inputType="checkbox" />
|
|
31
|
+
<Field @attr="innerConversionRenovation" @inputType="checkbox" />
|
|
32
|
+
<Field @attr="conversion" @inputType="checkbox" />
|
|
33
|
+
<Field @attr="extensionHeighteningHeated" @inputType="checkbox" />
|
|
34
|
+
<Field @attr="extensionHeighteningNotHeated" @inputType="checkbox" />
|
|
35
|
+
<Field @attr="thermicSolarFacility" @inputType="checkbox" />
|
|
36
|
+
<Field @attr="photovoltaicSolarFacility" @inputType="checkbox" />
|
|
37
|
+
<Field @attr="otherWorks" @inputType="checkbox" />
|
|
38
|
+
{{/if}}
|
|
36
39
|
{{/let}}
|
|
37
40
|
</Modal.body>
|
|
38
41
|
<Modal.footer class="uk-flex uk-flex-column">
|
|
@@ -49,9 +52,9 @@
|
|
|
49
52
|
</UkButton>
|
|
50
53
|
</div>
|
|
51
54
|
{{#if @errors}}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
<div class="uk-flex uk-margin">
|
|
56
|
+
<ModelForm::SubmitErrors @errors={{@errors}} @expand={{true}} />
|
|
57
|
+
</div>
|
|
55
58
|
{{/if}}
|
|
56
59
|
</Modal.footer>
|
|
57
60
|
</UkModal>
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
+
import { inject as service } from "@ember/service";
|
|
1
2
|
import Component from "@glimmer/component";
|
|
2
3
|
import { tracked } from "@glimmer/tracking";
|
|
3
4
|
import BuildingWork from "ember-ebau-gwr/models/building-work";
|
|
4
5
|
|
|
5
6
|
export default class LinkBuildingModalComponent extends Component {
|
|
7
|
+
@service config;
|
|
6
8
|
@tracked buildingWork = new BuildingWork();
|
|
7
|
-
|
|
9
|
+
// Remove the state "Neubau" from the array since you cant link
|
|
10
|
+
// existing buildings as "Neubau".
|
|
11
|
+
kindOfWorkOptions = BuildingWork.kindOfWorkOptions.slice(1);
|
|
12
|
+
|
|
13
|
+
constructor(...args) {
|
|
14
|
+
super(...args);
|
|
15
|
+
this.buildingWork = new BuildingWork();
|
|
16
|
+
this.buildingWork.kindOfWork = this.kindOfWorkOptions[0];
|
|
17
|
+
}
|
|
8
18
|
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{{#let @fieldComponent as |Field|}}
|
|
2
|
+
<div class="uk-flex uk-flex-between">
|
|
3
|
+
<span>
|
|
4
|
+
{{! this is needed since the h2 selector is * + h2}}
|
|
5
|
+
<span></span>
|
|
6
|
+
<h3>
|
|
7
|
+
{{t "ember-gwr.buildingEntrance.street"}}
|
|
8
|
+
</h3>
|
|
9
|
+
</span>
|
|
10
|
+
<span>
|
|
11
|
+
<LinkTo
|
|
12
|
+
class="uk-button
|
|
13
|
+
{{if @buildingEntrance.isNew "uk-button-primary" "uk-button-default"
|
|
14
|
+
}}"
|
|
15
|
+
@route="building.edit.entrance.edit.link-street"
|
|
16
|
+
@models={{or
|
|
17
|
+
@routeModels
|
|
18
|
+
(if @buildingEntrance.isNew (array "new") (array))
|
|
19
|
+
}}
|
|
20
|
+
@query={{hash locality=@buildingEntrance.locality.name.nameLong}}
|
|
21
|
+
@disabled={{not @buildingEntrance.locality.name.nameLong}}
|
|
22
|
+
uk-tooltip="title: {{unless
|
|
23
|
+
@buildingEntrance.locality.name.nameLong
|
|
24
|
+
(t "ember-gwr.components.linkStreet.missingLocalityHint")
|
|
25
|
+
}}; container: {{this.config.modalContainer}}"
|
|
26
|
+
>
|
|
27
|
+
{{t
|
|
28
|
+
(if
|
|
29
|
+
@buildingEntrance.isNew
|
|
30
|
+
"ember-gwr.components.linkStreet.link"
|
|
31
|
+
"ember-gwr.components.linkStreet.change"
|
|
32
|
+
)
|
|
33
|
+
}}
|
|
34
|
+
</LinkTo>
|
|
35
|
+
</span>
|
|
36
|
+
</div>
|
|
37
|
+
{{#if @buildingEntrance.street.isNew}}
|
|
38
|
+
<div uk-alert class="uk-alert-warning">
|
|
39
|
+
{{t "ember-gwr.components.linkStreet.streetHint"}}
|
|
40
|
+
</div>
|
|
41
|
+
{{else}}
|
|
42
|
+
<Field
|
|
43
|
+
@attr="street.ESID"
|
|
44
|
+
@disabled={{true}}
|
|
45
|
+
@translationBase={{@translationBase}}
|
|
46
|
+
@value={{@buildingEntrance.street.ESID}}
|
|
47
|
+
readonly
|
|
48
|
+
/>
|
|
49
|
+
<Field
|
|
50
|
+
@attr="street.description.descriptionLong"
|
|
51
|
+
@disabled={{true}}
|
|
52
|
+
@translationBase={{@translationBase}}
|
|
53
|
+
@value={{@buildingEntrance.street.description.descriptionLong}}
|
|
54
|
+
readonly
|
|
55
|
+
/>
|
|
56
|
+
<Field
|
|
57
|
+
@attr="street.streetKind"
|
|
58
|
+
@type="select"
|
|
59
|
+
@gwrEnumOptions={{this.Street.streetKindOptions}}
|
|
60
|
+
@convertValueTo="number"
|
|
61
|
+
@disabled={{true}}
|
|
62
|
+
@translationBase={{@translationBase}}
|
|
63
|
+
@value={{@buildingEntrance.street.streetKind}}
|
|
64
|
+
readonly
|
|
65
|
+
/>
|
|
66
|
+
<Field
|
|
67
|
+
@attr="street.officialStreetNumber"
|
|
68
|
+
@type="number"
|
|
69
|
+
@disabled={{true}}
|
|
70
|
+
@translationBase={{@translationBase}}
|
|
71
|
+
@value={{@buildingEntrance.street.officialStreetNumber}}
|
|
72
|
+
readonly
|
|
73
|
+
/>
|
|
74
|
+
<Field
|
|
75
|
+
@attr="street.isOfficialDescription"
|
|
76
|
+
@type="checkbox"
|
|
77
|
+
@disabled={{true}}
|
|
78
|
+
@translationBase={{@translationBase}}
|
|
79
|
+
@value={{@buildingEntrance.street.isOfficialDescription}}
|
|
80
|
+
readonly
|
|
81
|
+
/>
|
|
82
|
+
{{/if}}
|
|
83
|
+
{{/let}}
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
(t (concat "ember-gwr.models." @modelName) count=2)
|
|
4
4
|
as |modelName modelNamePlural|
|
|
5
5
|
}}
|
|
6
|
-
<table
|
|
6
|
+
<table
|
|
7
|
+
class="uk-table uk-table-divider uk-table-hover uk-table-middle"
|
|
8
|
+
...attributes
|
|
9
|
+
>
|
|
7
10
|
<thead>
|
|
8
11
|
<tr>
|
|
9
12
|
<th colspan="3">
|
|
@@ -24,7 +27,7 @@
|
|
|
24
27
|
type="button"
|
|
25
28
|
class="uk-icon-button"
|
|
26
29
|
uk-icon="trash"
|
|
27
|
-
uk-tooltip={{t "ember-gwr.components.linkedModels.removeLink"}}
|
|
30
|
+
uk-tooltip="title: {{t "ember-gwr.components.linkedModels.removeLink"}}; container: {{this.config.modalContainer}}"
|
|
28
31
|
{{on "click" (fn @removeLink model)}}
|
|
29
32
|
></button>
|
|
30
33
|
</td>
|
|
@@ -65,6 +68,17 @@
|
|
|
65
68
|
modelName=modelName
|
|
66
69
|
}}
|
|
67
70
|
</LinkTo>
|
|
71
|
+
{{else if @addLink}}
|
|
72
|
+
<button
|
|
73
|
+
type="button"
|
|
74
|
+
class="uk-button uk-button-link"
|
|
75
|
+
{{on "click" @addLink}}
|
|
76
|
+
>
|
|
77
|
+
{{t
|
|
78
|
+
"ember-gwr.components.linkedModels.createEntry"
|
|
79
|
+
modelName=modelName
|
|
80
|
+
}}
|
|
81
|
+
</button>
|
|
68
82
|
{{/if}}
|
|
69
83
|
</td>
|
|
70
84
|
</tr>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@modelName="project"
|
|
4
4
|
@searchRoute="search-project"
|
|
5
5
|
@newRoute="project.new"
|
|
6
|
+
...attributes
|
|
6
7
|
as |project|
|
|
7
8
|
>
|
|
8
9
|
<td
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
type="button"
|
|
25
26
|
class="uk-icon-button"
|
|
26
27
|
uk-icon="trash"
|
|
27
|
-
uk-tooltip={{t "ember-gwr.components.linkedModels.removeLink"}}
|
|
28
|
+
uk-tooltip="title: {{t "ember-gwr.components.linkedModels.removeLink"}}; container: {{this.config.modalContainer}}"
|
|
28
29
|
{{on "click" @removeProject}}
|
|
29
30
|
>
|
|
30
31
|
</button>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import Component from "@glimmer/component";
|
|
2
|
-
import { tracked } from "@glimmer/tracking";
|
|
3
2
|
|
|
4
3
|
// TODO: remove file once two-way binding issue of value is resolved in ember-pikaday
|
|
5
4
|
// https://github.com/adopted-ember-addons/ember-pikaday/issues/212
|
|
6
5
|
export default class ModelFormDateComponent extends Component {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
this.value = this.args.value;
|
|
6
|
+
get value() {
|
|
7
|
+
return this.args.value;
|
|
12
8
|
}
|
|
9
|
+
|
|
10
|
+
// prevent pikaday two-way binding from
|
|
11
|
+
// updating "value" field on input
|
|
12
|
+
set value(value) {}
|
|
13
13
|
}
|