ember-ebau-gwr 6.3.0 → 6.3.2
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 +14 -0
- package/addon/components/search.js +4 -1
- package/addon/helpers/current-quarter.js +16 -11
- package/addon/routes/global-landing-page.js +4 -1
- package/addon/services/construction-project.js +1 -0
- package/addon/templates/building/edit/entrance/edit/link-street.hbs +2 -2
- package/package.json +15 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [6.3.2](https://github.com/inosca/ember-ebau-gwr/compare/v6.3.1...v6.3.2) (2023-01-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* remove deprecations for ember v4 ([8a8c929](https://github.com/inosca/ember-ebau-gwr/commit/8a8c929454a6ae021140c34f89bd5404ed354225))
|
|
7
|
+
|
|
8
|
+
## [6.3.1](https://github.com/inosca/ember-ebau-gwr/compare/v6.3.0...v6.3.1) (2023-01-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **link-street:** pass correct street model to `setStreet` function ([ab19b6c](https://github.com/inosca/ember-ebau-gwr/commit/ab19b6c177bc7c9dafc78542c21df8dea0225813))
|
|
14
|
+
|
|
1
15
|
# [6.3.0](https://github.com/inosca/ember-ebau-gwr/compare/v6.2.0...v6.3.0) (2022-12-29)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { next } from "@ember/runloop";
|
|
1
2
|
import { inject as service } from "@ember/service";
|
|
2
3
|
import Component from "@glimmer/component";
|
|
3
4
|
import { tracked } from "@glimmer/tracking";
|
|
@@ -57,7 +58,9 @@ export default class SearchComponent extends Component {
|
|
|
57
58
|
|
|
58
59
|
this.rawQuery = baseQuery;
|
|
59
60
|
if (this.args.paginate) {
|
|
60
|
-
this
|
|
61
|
+
next(this, () => {
|
|
62
|
+
this.onSubmit.perform();
|
|
63
|
+
});
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
|
|
@@ -10,20 +10,25 @@ const quarters = [
|
|
|
10
10
|
{ text: "Q4", firstWeekOfQuarter: 1 },
|
|
11
11
|
];
|
|
12
12
|
|
|
13
|
-
export const getCurrentQuarter = (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
export const getCurrentQuarter = (_, { showYear = false }) => {
|
|
14
|
+
const now = DateTime.now();
|
|
15
|
+
const currentWeek = now.toFormat("W");
|
|
16
|
+
|
|
17
17
|
const quarter = quarters.find(
|
|
18
18
|
({ firstWeekOfQuarter }) => currentWeek >= firstWeekOfQuarter
|
|
19
19
|
)?.text;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
|
|
21
|
+
if (showYear) {
|
|
22
|
+
// If we're already in the new year but not yet in week 11, this means we're still
|
|
23
|
+
// working on the Q4 closure from last year. That's why we subtract one year from today.
|
|
24
|
+
const year = (
|
|
25
|
+
quarter === "Q4" && currentWeek < 11 ? now.minus({ years: 1 }) : now
|
|
26
|
+
).toFormat("yyyy");
|
|
27
|
+
|
|
28
|
+
return `${quarter}/${year}`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return quarter;
|
|
27
32
|
};
|
|
28
33
|
|
|
29
34
|
export default helper(getCurrentQuarter);
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import Route from "@ember/routing/route";
|
|
2
|
+
import { inject as service } from "@ember/service";
|
|
2
3
|
|
|
3
4
|
export default class GlobalLandingPageRoute extends Route {
|
|
5
|
+
@service router;
|
|
6
|
+
|
|
4
7
|
afterModel({ id } = {}) {
|
|
5
8
|
if (typeof id === "string") {
|
|
6
|
-
this.transitionTo("project");
|
|
9
|
+
this.router.transitionTo("project");
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
12
|
}
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
/>
|
|
70
70
|
</TableHeader>
|
|
71
71
|
|
|
72
|
-
<Rows as |TableRowColumn|>
|
|
72
|
+
<Rows as |TableRowColumn street|>
|
|
73
73
|
<TableRowColumn @attr="ESID" as |value|>
|
|
74
74
|
<button
|
|
75
75
|
class="uk-button uk-button-link"
|
|
76
76
|
type="button"
|
|
77
|
-
{{on "click" (fn this.setStreet
|
|
77
|
+
{{on "click" (fn this.setStreet street)}}
|
|
78
78
|
>
|
|
79
79
|
{{value}}
|
|
80
80
|
</button>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-ebau-gwr",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.2",
|
|
4
4
|
"description": "Ember engine to integrate ebau-gwr into an ember app.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -15,22 +15,24 @@
|
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "ember build --environment=production",
|
|
18
|
-
"lint": "
|
|
19
|
-
"lint:fix": "npm
|
|
18
|
+
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
|
|
19
|
+
"lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
|
|
20
20
|
"lint:hbs": "ember-template-lint .",
|
|
21
21
|
"lint:hbs:fix": "ember-template-lint . --fix",
|
|
22
22
|
"lint:js": "eslint . --cache",
|
|
23
23
|
"lint:js:fix": "eslint . --fix",
|
|
24
24
|
"start": "ember serve",
|
|
25
25
|
"proxy": "lcp --proxyUrl https://www-r.housing-stat.ch",
|
|
26
|
-
"test": "npm
|
|
26
|
+
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
|
|
27
27
|
"test:ember": "ember test",
|
|
28
28
|
"test:ember-compatibility": "ember try:each"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"ember-engines": ">= 0.8"
|
|
31
|
+
"ember-engines": ">= 0.8",
|
|
32
|
+
"ember-source": "^3.28.0 || ^4.0.0"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
35
|
+
"@ember/legacy-built-in-components": "^0.4.1",
|
|
34
36
|
"@ember/render-modifiers": "^2.0.4",
|
|
35
37
|
"@fortawesome/ember-fontawesome": "^0.4.1",
|
|
36
38
|
"@fortawesome/free-regular-svg-icons": "^6.2.1",
|
|
@@ -54,7 +56,7 @@
|
|
|
54
56
|
"ember-uikit": "^6.1.1",
|
|
55
57
|
"ember-validated-form": "^6.1.2",
|
|
56
58
|
"handlebars": "^4.7.7",
|
|
57
|
-
"luxon": "^3.
|
|
59
|
+
"luxon": "^3.2.0"
|
|
58
60
|
},
|
|
59
61
|
"devDependencies": {
|
|
60
62
|
"@adfinis-sygroup/eslint-config": "1.5.0",
|
|
@@ -64,29 +66,27 @@
|
|
|
64
66
|
"@embroider/test-setup": "2.0.2",
|
|
65
67
|
"babel-eslint": "10.1.0",
|
|
66
68
|
"broccoli-asset-rev": "3.0.0",
|
|
67
|
-
"
|
|
69
|
+
"concurrently": "7.6.0",
|
|
70
|
+
"ember-cli": "4.9.2",
|
|
68
71
|
"ember-cli-dependency-checker": "3.3.1",
|
|
69
72
|
"ember-cli-inject-live-reload": "2.1.0",
|
|
70
73
|
"ember-cli-mirage": "3.0.0-alpha.3",
|
|
71
74
|
"ember-cli-sass": "11.0.1",
|
|
72
75
|
"ember-cli-sri": "2.1.1",
|
|
73
76
|
"ember-cli-terser": "4.0.2",
|
|
74
|
-
"ember-
|
|
75
|
-
"ember-engines": "0.9.0",
|
|
76
|
-
"ember-export-application-global": "2.0.1",
|
|
77
|
+
"ember-engines": "0.8.23",
|
|
77
78
|
"ember-load-initializers": "2.1.2",
|
|
78
|
-
"ember-maybe-import-regenerator": "^1.0.0",
|
|
79
79
|
"ember-qunit": "6.1.1",
|
|
80
80
|
"ember-resolver": "8.0.3",
|
|
81
|
-
"ember-source": "
|
|
81
|
+
"ember-source": "4.9.3",
|
|
82
82
|
"ember-source-channel-url": "3.0.0",
|
|
83
83
|
"ember-template-lint": "5.3.0",
|
|
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
|
-
"eslint-config-prettier": "8.
|
|
89
|
-
"eslint-plugin-ember": "11.
|
|
88
|
+
"eslint-config-prettier": "8.6.0",
|
|
89
|
+
"eslint-plugin-ember": "11.4.2",
|
|
90
90
|
"eslint-plugin-import": "2.26.0",
|
|
91
91
|
"eslint-plugin-node": "11.1.0",
|
|
92
92
|
"eslint-plugin-prettier": "4.2.1",
|
|
@@ -94,7 +94,6 @@
|
|
|
94
94
|
"loader.js": "4.7.0",
|
|
95
95
|
"local-cors-proxy": "1.1.0",
|
|
96
96
|
"miragejs": "0.1.46",
|
|
97
|
-
"npm-run-all": "4.1.5",
|
|
98
97
|
"prettier": "2.8.1",
|
|
99
98
|
"qunit": "2.19.3",
|
|
100
99
|
"qunit-dom": "2.0.0",
|
|
@@ -102,7 +101,7 @@
|
|
|
102
101
|
"webpack": "5.75.0"
|
|
103
102
|
},
|
|
104
103
|
"engines": {
|
|
105
|
-
"node": "
|
|
104
|
+
"node": "14.* || 16.* || >= 18"
|
|
106
105
|
},
|
|
107
106
|
"ember": {
|
|
108
107
|
"edition": "octane"
|