@projectcaluma/ember-distribution 1.0.0-beta.2 → 1.0.0-beta.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/addon/abilities/distribution.js +29 -0
  3. package/addon/components/distribution-navigation/controls.hbs +14 -12
  4. package/addon/components/distribution-navigation/controls.js +0 -36
  5. package/addon/components/distribution-navigation/item.hbs +1 -1
  6. package/addon/components/distribution-navigation/item.js +1 -1
  7. package/addon/components/distribution-navigation/section.hbs +8 -6
  8. package/addon/components/distribution-navigation.hbs +1 -1
  9. package/addon/components/distribution-navigation.js +10 -5
  10. package/addon/components/inquiry-answer-form.hbs +33 -31
  11. package/addon/components/inquiry-answer-form.js +1 -1
  12. package/addon/components/inquiry-dialog/inquiry-deadline.hbs +14 -6
  13. package/addon/components/inquiry-dialog/inquiry-divider.hbs +2 -1
  14. package/addon/components/inquiry-dialog/inquiry-part.hbs +13 -10
  15. package/addon/components/inquiry-dialog/inquiry-part.js +4 -0
  16. package/addon/components/inquiry-dialog/inquiry.hbs +4 -1
  17. package/addon/components/inquiry-dialog/inquiry.js +4 -0
  18. package/addon/components/inquiry-dialog.hbs +8 -6
  19. package/addon/components/inquiry-edit-form.hbs +21 -19
  20. package/addon/components/inquiry-edit-form.js +2 -1
  21. package/addon/components/inquiry-new-form.hbs +113 -102
  22. package/addon/components/inquiry-new-form.js +20 -20
  23. package/addon/components/notfound.hbs +12 -0
  24. package/addon/config.js +1 -0
  25. package/addon/controllers/application.js +7 -0
  26. package/addon/controllers/{distribution/new.js → new.js} +1 -1
  27. package/addon/gql/queries/control-work-items.graphql +18 -2
  28. package/addon/modifiers/pikaday.js +2 -0
  29. package/addon/routes/{distribution.js → application.js} +1 -1
  30. package/addon/routes/{distribution/index.js → index.js} +2 -2
  31. package/addon/routes/inquiry/detail/answer.js +7 -0
  32. package/addon/routes/inquiry/detail/index.js +7 -0
  33. package/addon/routes/{distribution/inquiry → inquiry}/detail.js +1 -1
  34. package/addon/routes/inquiry/index.js +10 -0
  35. package/addon/routes/{distribution/inquiry.js → inquiry.js} +1 -1
  36. package/addon/routes/new.js +7 -0
  37. package/addon/routes/notfound.js +3 -0
  38. package/addon/routes.js +5 -6
  39. package/addon/services/caluma-distribution-controls.js +37 -0
  40. package/addon/templates/application.hbs +8 -0
  41. package/addon/templates/index.hbs +8 -0
  42. package/addon/templates/{distribution/inquiry → inquiry}/detail/answer.hbs +0 -0
  43. package/addon/templates/{distribution/inquiry → inquiry}/detail/index.hbs +0 -0
  44. package/addon/templates/{distribution/inquiry → inquiry}/detail.hbs +0 -0
  45. package/addon/templates/{distribution/inquiry → inquiry}/index.hbs +0 -0
  46. package/addon/templates/{distribution/inquiry.hbs → inquiry.hbs} +0 -0
  47. package/addon/templates/{distribution/new.hbs → new.hbs} +0 -0
  48. package/addon/templates/notfound.hbs +1 -0
  49. package/addon/utils/inquiry-deadline.js +5 -6
  50. package/app/abilities/distribution.js +1 -0
  51. package/app/components/notfound.js +1 -0
  52. package/app/services/caluma-distribution-controls.js +1 -0
  53. package/app/styles/_inquiry-divider.scss +22 -0
  54. package/package.json +18 -15
  55. package/translations/de.yaml +9 -0
  56. package/translations/en.yaml +9 -0
  57. package/translations/fr.yaml +9 -0
  58. package/addon/routes/distribution/inquiry/detail/answer.js +0 -7
  59. package/addon/routes/distribution/inquiry/detail/index.js +0 -7
  60. package/addon/routes/distribution/inquiry/index.js +0 -10
  61. package/addon/routes/distribution/new.js +0 -7
  62. package/addon/templates/distribution.hbs +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-distribution",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "Ember engine for the Caluma distribution module.",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -18,41 +18,44 @@
18
18
  "ember-engines": ">= 0.8"
19
19
  },
20
20
  "dependencies": {
21
+ "@embroider/macros": "^1.5.0",
21
22
  "@glimmer/component": "^1.0.4",
22
23
  "@glimmer/tracking": "^1.0.4",
23
- "@projectcaluma/ember-core": "^11.0.0-beta.2",
24
- "@projectcaluma/ember-form": "^11.0.0-beta.3",
25
- "@projectcaluma/ember-workflow": "^11.0.0-beta.2",
24
+ "@projectcaluma/ember-core": "^11.0.0-beta.5",
25
+ "@projectcaluma/ember-form": "^11.0.0-beta.13",
26
+ "@projectcaluma/ember-workflow": "^11.0.0-beta.5",
26
27
  "ember-apollo-client": "^3.2.0",
27
28
  "ember-auto-import": "^2.4.0",
28
29
  "ember-can": "^4.1.0",
29
30
  "ember-cli-babel": "^7.26.11",
30
31
  "ember-cli-htmlbars": "^6.0.1",
31
- "ember-concurrency": "^2.2.0",
32
+ "ember-concurrency": "^2.2.1",
32
33
  "ember-engines-router-service": "^0.3.0",
33
34
  "ember-fetch": "^8.1.1",
34
35
  "ember-intl": "^5.7.2",
35
- "ember-resources": "^4.1.3",
36
+ "ember-pikaday": "^4.0.0",
37
+ "ember-resources": "^4.4.0",
36
38
  "ember-svg-jar": "^2.3.4",
37
39
  "ember-test-selectors": "^6.0.0",
38
- "ember-uikit": "^5.0.0-beta.3",
40
+ "ember-uikit": "^5.0.0",
39
41
  "graphql": "^15.8.0",
40
42
  "ionicons": "^6.0.1",
41
43
  "lodash.merge": "^4.6.2",
42
- "moment": "^2.29.1",
44
+ "luxon": "^2.3.1",
43
45
  "tracked-toolbox": "^1.2.3"
44
46
  },
45
47
  "devDependencies": {
46
48
  "@ember/optional-features": "2.0.0",
47
49
  "@ember/test-helpers": "2.6.0",
48
- "@embroider/test-setup": "1.0.0",
49
- "@faker-js/faker": "6.0.0-alpha.3",
50
- "@projectcaluma/ember-testing": "10.2.0-beta.2",
50
+ "@embroider/test-setup": "1.5.0",
51
+ "@faker-js/faker": "6.0.0-beta.0",
52
+ "@projectcaluma/ember-testing": "11.0.0-beta.4",
51
53
  "broccoli-asset-rev": "3.0.0",
52
54
  "ember-cli": "3.28.5",
55
+ "ember-cli-code-coverage": "1.0.3",
53
56
  "ember-cli-dependency-checker": "3.2.0",
54
57
  "ember-cli-inject-live-reload": "2.1.0",
55
- "ember-cli-mirage": "2.4.0",
58
+ "ember-cli-mirage": "3.0.0-alpha.2",
56
59
  "ember-cli-sass": "10.0.1",
57
60
  "ember-cli-sri": "2.1.1",
58
61
  "ember-cli-terser": "4.0.2",
@@ -69,10 +72,10 @@
69
72
  "loader.js": "4.7.0",
70
73
  "miragejs": "0.1.43",
71
74
  "npm-run-all": "4.1.5",
72
- "qunit": "2.17.2",
75
+ "qunit": "2.18.0",
73
76
  "qunit-dom": "2.0.0",
74
- "sass": "1.49.0",
75
- "webpack": "5.67.0"
77
+ "sass": "1.49.9",
78
+ "webpack": "5.70.0"
76
79
  },
77
80
  "engines": {
78
81
  "node": "12.* || 14.* || >= 16"
@@ -1,5 +1,8 @@
1
1
  caluma:
2
2
  distribution:
3
+ empty: "Es gibt noch keine Anfragen."
4
+ create: "Erstellen Sie die Erste jetzt!"
5
+
3
6
  edit:
4
7
  title: "Anfrage bearbeiten"
5
8
  link: "Bearbeiten"
@@ -40,3 +43,9 @@ caluma:
40
43
  positive: "Positiv"
41
44
  negative: "Negativ"
42
45
  needs-interaction: "Aktion erforderlich"
46
+
47
+ notfound:
48
+ title: "404"
49
+ subtitle: "Seite nicht gefunden!"
50
+ back: "Zurück zur"
51
+ link: "Startseite"
@@ -1,5 +1,8 @@
1
1
  caluma:
2
2
  distribution:
3
+ empty: "There are no inquiries yet."
4
+ create: "Create the first one now!"
5
+
3
6
  edit:
4
7
  title: "Edit inquiry"
5
8
  link: "Edit"
@@ -40,3 +43,9 @@ caluma:
40
43
  positive: "Positive"
41
44
  negative: "Negative"
42
45
  needs-interaction: "Needs interaction"
46
+
47
+ notfound:
48
+ title: "404"
49
+ subtitle: "Page not found!"
50
+ back: "Go back to the"
51
+ link: "landing page"
@@ -1,5 +1,8 @@
1
1
  caluma:
2
2
  distribution:
3
+ empty: "Il n'y a pas encore de demande."
4
+ create: "Créez la première maintenant !"
5
+
3
6
  edit:
4
7
  title: "Modifier la demande"
5
8
  link: "Modifier"
@@ -40,3 +43,9 @@ caluma:
40
43
  positive: "Positif"
41
44
  negative: "Negatif"
42
45
  needs-interaction: "Action nécessaire"
46
+
47
+ notfound:
48
+ title: "404"
49
+ subtitle: "Page non trouvée !"
50
+ back: "Retour à"
51
+ link: "la page d'accueil"
@@ -1,7 +0,0 @@
1
- import Route from "@ember/routing/route";
2
-
3
- export default class DistributionInquiryDetailAnswerRoute extends Route {
4
- model() {
5
- return this.modelFor("distribution.inquiry.detail");
6
- }
7
- }
@@ -1,7 +0,0 @@
1
- import Route from "@ember/routing/route";
2
-
3
- export default class DistributionInquiryDetailIndexRoute extends Route {
4
- model() {
5
- return this.modelFor("distribution.inquiry.detail");
6
- }
7
- }
@@ -1,10 +0,0 @@
1
- import Route from "@ember/routing/route";
2
-
3
- export default class DistributionInquiryIndexRoute extends Route {
4
- model() {
5
- return {
6
- ...this.modelFor("distribution.inquiry"),
7
- case: this.modelFor("distribution"),
8
- };
9
- }
10
- }
@@ -1,7 +0,0 @@
1
- import Route from "@ember/routing/route";
2
-
3
- export default class DistributionNewRoute extends Route {
4
- model() {
5
- return this.modelFor("distribution");
6
- }
7
- }
@@ -1,8 +0,0 @@
1
- <div uk-grid>
2
- <div class="uk-width-1-3">
3
- <DistributionNavigation @caseId={{@model}} />
4
- </div>
5
- <div class="uk-width-2-3">
6
- {{outlet}}
7
- </div>
8
- </div>