ember-ebau-gwr 6.0.0 → 6.0.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/controllers/search-building.js +3 -0
- package/addon/controllers/search-project.js +3 -0
- package/addon/templates/search-building.hbs +1 -0
- package/addon/templates/search-project.hbs +1 -0
- package/addon/validations/extended-search-fields.js +1 -16
- package/addon/validations/search-building.js +10 -0
- package/addon/validations/search-project.js +10 -0
- package/app/styles/ember-ebau-gwr.scss +2 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [6.0.1](https://github.com/adfinis-sygroup/ember-ebau-gwr/compare/v6.0.0...v6.0.1) (2022-09-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **search:** separate project and building search validations ([0510045](https://github.com/adfinis-sygroup/ember-ebau-gwr/commit/0510045b6d2f09615afcc241f1a61aaa4ddd95eb))
|
|
7
|
+
|
|
1
8
|
# [6.0.0](https://github.com/adfinis-sygroup/ember-ebau-gwr/compare/v5.0.4...v6.0.0) (2022-09-16)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -4,6 +4,7 @@ import { inject as service } from "@ember/service";
|
|
|
4
4
|
import { tracked } from "@glimmer/tracking";
|
|
5
5
|
import { task, dropTask, lastValue } from "ember-concurrency";
|
|
6
6
|
import { periodOfConstructionOptions } from "ember-ebau-gwr/models/options";
|
|
7
|
+
import SearchBuildingValidations from "ember-ebau-gwr/validations/search-building";
|
|
7
8
|
|
|
8
9
|
export default class SearchBuildingController extends Controller {
|
|
9
10
|
@service constructionProject;
|
|
@@ -20,6 +21,8 @@ export default class SearchBuildingController extends Controller {
|
|
|
20
21
|
queryParams = ["projectId"];
|
|
21
22
|
@tracked projectId = null;
|
|
22
23
|
|
|
24
|
+
validations = SearchBuildingValidations;
|
|
25
|
+
|
|
23
26
|
get baseQuery() {
|
|
24
27
|
return {
|
|
25
28
|
streetLang: this.street?.language,
|
|
@@ -3,6 +3,7 @@ import { action } from "@ember/object";
|
|
|
3
3
|
import { inject as service } from "@ember/service";
|
|
4
4
|
import { dropTask, lastValue } from "ember-concurrency";
|
|
5
5
|
import { projectStatusOptions } from "ember-ebau-gwr/models/options";
|
|
6
|
+
import SearchProjectValidations from "ember-ebau-gwr/validations/search-project";
|
|
6
7
|
|
|
7
8
|
export default class SearchProjectController extends Controller {
|
|
8
9
|
@service constructionProject;
|
|
@@ -12,6 +13,8 @@ export default class SearchProjectController extends Controller {
|
|
|
12
13
|
@service notification;
|
|
13
14
|
@service config;
|
|
14
15
|
|
|
16
|
+
validations = SearchProjectValidations;
|
|
17
|
+
|
|
15
18
|
get baseQuery() {
|
|
16
19
|
return {
|
|
17
20
|
constructionSurveyDeptNumber:
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
validatePresence,
|
|
3
|
-
validateNumber,
|
|
4
|
-
} from "ember-changeset-validations/validators";
|
|
1
|
+
import { validatePresence } from "ember-changeset-validations/validators";
|
|
5
2
|
|
|
6
3
|
import { realestateIdentificationValidation } from "./realestate-identification";
|
|
7
4
|
|
|
8
5
|
export default {
|
|
9
|
-
EPROID: validateNumber({
|
|
10
|
-
integer: true,
|
|
11
|
-
gte: 1,
|
|
12
|
-
lte: 900000000,
|
|
13
|
-
allowBlank: true,
|
|
14
|
-
}),
|
|
15
|
-
EGID: validateNumber({
|
|
16
|
-
integer: true,
|
|
17
|
-
gte: 1,
|
|
18
|
-
lte: 900000000,
|
|
19
|
-
allowBlank: true,
|
|
20
|
-
}),
|
|
21
6
|
...realestateIdentificationValidation(),
|
|
22
7
|
createDate: {
|
|
23
8
|
dateTo: validatePresence({
|
|
@@ -114,11 +114,10 @@ $ember-ebau-gwr-required-color: $alert-danger-color !default;
|
|
|
114
114
|
margin-top: 100px;
|
|
115
115
|
|
|
116
116
|
.title-card-text {
|
|
117
|
-
@extend .uk-text-
|
|
117
|
+
@extend .uk-text-large, .uk-text-light;
|
|
118
118
|
white-space: pre-line;
|
|
119
119
|
line-height: 1.5;
|
|
120
|
-
margin-top:
|
|
121
|
-
font-weight: 400;
|
|
120
|
+
margin-top: 10px;
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
123
|
|