ember-ebau-gwr 6.3.0 → 6.3.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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [6.3.1](https://github.com/inosca/ember-ebau-gwr/compare/v6.3.0...v6.3.1) (2023-01-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **link-street:** pass correct street model to `setStreet` function ([ab19b6c](https://github.com/inosca/ember-ebau-gwr/commit/ab19b6c177bc7c9dafc78542c21df8dea0225813))
|
|
7
|
+
|
|
1
8
|
# [6.3.0](https://github.com/inosca/ember-ebau-gwr/compare/v6.2.0...v6.3.0) (2022-12-29)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -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);
|
|
@@ -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.1",
|
|
4
4
|
"description": "Ember engine to integrate ebau-gwr into an ember app.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"ember-uikit": "^6.1.1",
|
|
55
55
|
"ember-validated-form": "^6.1.2",
|
|
56
56
|
"handlebars": "^4.7.7",
|
|
57
|
-
"luxon": "^3.
|
|
57
|
+
"luxon": "^3.2.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@adfinis-sygroup/eslint-config": "1.5.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"ember-cli-sri": "2.1.1",
|
|
73
73
|
"ember-cli-terser": "4.0.2",
|
|
74
74
|
"ember-disable-prototype-extensions": "1.1.3",
|
|
75
|
-
"ember-engines": "0.
|
|
75
|
+
"ember-engines": "0.8.23",
|
|
76
76
|
"ember-export-application-global": "2.0.1",
|
|
77
77
|
"ember-load-initializers": "2.1.2",
|
|
78
78
|
"ember-maybe-import-regenerator": "^1.0.0",
|