@projectcaluma/ember-distribution 11.0.0-beta.28 → 11.0.0-beta.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/addon/abilities/distribution.js +13 -0
  2. package/addon/abilities/inquiry.js +2 -2
  3. package/addon/components/cd-document-header.hbs +3 -0
  4. package/addon/components/cd-inquiry-answer-form.hbs +28 -5
  5. package/addon/components/cd-inquiry-dialog.js +0 -30
  6. package/addon/components/cd-inquiry-edit-form.hbs +21 -1
  7. package/addon/components/cd-inquiry-new-form/bulk-edit.hbs +20 -0
  8. package/addon/components/cd-inquiry-new-form/bulk-edit.js +113 -0
  9. package/addon/components/cd-inquiry-new-form/select.hbs +71 -0
  10. package/addon/components/cd-inquiry-new-form/select.js +76 -0
  11. package/addon/components/cd-inquiry-new-form.hbs +29 -86
  12. package/addon/components/cd-inquiry-new-form.js +1 -100
  13. package/addon/components/cd-navigation/controls.hbs +112 -56
  14. package/addon/components/cd-navigation/controls.js +48 -21
  15. package/addon/components/cd-navigation/item.hbs +22 -11
  16. package/addon/components/cd-navigation/section.hbs +15 -19
  17. package/addon/components/cd-navigation/section.js +18 -2
  18. package/addon/components/cd-navigation/status-indicator.hbs +5 -2
  19. package/addon/components/cd-navigation.hbs +6 -4
  20. package/addon/config.js +2 -0
  21. package/addon/gql/queries/control-work-items.graphql +18 -0
  22. package/addon/gql/queries/inquiry-edit.graphql +1 -0
  23. package/addon/gql/queries/inquiry-form.graphql +26 -0
  24. package/addon/services/distribution.js +11 -1
  25. package/addon/templates/application.hbs +7 -5
  26. package/addon/templates/index.hbs +1 -5
  27. package/app/components/cd-inquiry-new-form/bulk-edit.js +1 -0
  28. package/app/components/cd-inquiry-new-form/select.js +1 -0
  29. package/package.json +20 -21
  30. package/translations/de.yaml +25 -9
  31. package/translations/en.yaml +25 -10
  32. package/translations/fr.yaml +27 -11
@@ -3,9 +3,5 @@
3
3
  <p class="uk-margin-medium uk-margin-remove-horizontal">
4
4
  {{t "caluma.distribution.empty"}}
5
5
  </p>
6
- {{#if (can "create inquiry of distribution")}}
7
- <LinkTo @route="new" class="uk-button uk-button-primary">
8
- {{t "caluma.distribution.start"}}
9
- </LinkTo>
10
- {{/if}}
6
+ <CdNavigation::Controls @useButtons={{true}} />
11
7
  </div>
@@ -0,0 +1 @@
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-new-form/bulk-edit";
@@ -0,0 +1 @@
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-new-form/select";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-distribution",
3
- "version": "11.0.0-beta.28",
3
+ "version": "11.0.0-beta.30",
4
4
  "description": "Ember engine for the Caluma distribution module.",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -18,15 +18,16 @@
18
18
  "ember-engines": ">= 0.8"
19
19
  },
20
20
  "dependencies": {
21
+ "@ember/legacy-built-in-components": "^0.4.1",
21
22
  "@ember/string": "^3.0.0",
22
- "@embroider/macros": "^1.8.3",
23
+ "@embroider/macros": "^1.9.0",
23
24
  "@glimmer/component": "^1.1.2",
24
25
  "@glimmer/tracking": "^1.1.2",
25
- "@projectcaluma/ember-core": "^11.0.0-beta.28",
26
- "@projectcaluma/ember-form": "^11.0.0-beta.28",
27
- "@projectcaluma/ember-workflow": "^11.0.0-beta.28",
26
+ "@projectcaluma/ember-core": "^11.0.0-beta.30",
27
+ "@projectcaluma/ember-form": "^11.0.0-beta.30",
28
+ "@projectcaluma/ember-workflow": "^11.0.0-beta.30",
28
29
  "ember-apollo-client": "~4.0.2",
29
- "ember-auto-import": "^2.4.2",
30
+ "ember-auto-import": "^2.4.3",
30
31
  "ember-can": "^4.2.0",
31
32
  "ember-cli-babel": "^7.26.11",
32
33
  "ember-cli-htmlbars": "^6.1.1",
@@ -35,24 +36,24 @@
35
36
  "ember-fetch": "^8.1.2",
36
37
  "ember-intl": "^5.7.2",
37
38
  "ember-pikaday": "^4.0.0",
38
- "ember-resources": "^5.3.2",
39
- "ember-svg-jar": "^2.3.4",
39
+ "ember-resources": "^5.4.0",
40
+ "ember-svg-jar": "^2.4.0",
40
41
  "ember-test-selectors": "^6.0.0",
41
- "ember-uikit": "^6.0.0",
42
+ "ember-uikit": "^6.1.0",
42
43
  "graphql": "^15.8.0",
43
44
  "graphql-tag": "^2.12.6",
44
45
  "lodash.merge": "^4.6.2",
45
- "luxon": "^3.0.3",
46
+ "luxon": "^3.0.4",
46
47
  "tracked-toolbox": "^1.2.3"
47
48
  },
48
49
  "devDependencies": {
49
50
  "@ember/optional-features": "2.0.0",
50
- "@ember/test-helpers": "2.8.1",
51
+ "@ember/test-helpers": "2.7.0",
51
52
  "@embroider/test-setup": "1.8.3",
52
- "@faker-js/faker": "7.5.0",
53
- "@projectcaluma/ember-testing": "11.0.0-beta.28",
53
+ "@faker-js/faker": "7.6.0",
54
+ "@projectcaluma/ember-testing": "11.0.0-beta.30",
54
55
  "broccoli-asset-rev": "3.0.0",
55
- "ember-cli": "3.28.5",
56
+ "ember-cli": "4.7.0",
56
57
  "ember-cli-code-coverage": "1.0.3",
57
58
  "ember-cli-dependency-checker": "3.3.1",
58
59
  "ember-cli-inject-live-reload": "2.1.0",
@@ -62,24 +63,22 @@
62
63
  "ember-cli-terser": "4.0.2",
63
64
  "ember-disable-prototype-extensions": "1.1.3",
64
65
  "ember-engines": "0.8.23",
65
- "ember-export-application-global": "2.0.1",
66
66
  "ember-load-initializers": "2.1.2",
67
- "ember-maybe-import-regenerator": "1.0.0",
68
- "ember-qunit": "5.1.5",
67
+ "ember-qunit": "6.0.0",
69
68
  "ember-resolver": "8.0.3",
70
- "ember-source": "3.28.9",
69
+ "ember-source": "4.8.0",
71
70
  "ember-source-channel-url": "3.0.0",
72
71
  "ember-try": "2.0.0",
73
72
  "loader.js": "4.7.0",
74
73
  "miragejs": "0.1.45",
75
74
  "npm-run-all": "4.1.5",
76
- "qunit": "2.19.1",
75
+ "qunit": "2.19.2",
77
76
  "qunit-dom": "2.0.0",
78
- "sass": "1.54.9",
77
+ "sass": "1.55.0",
79
78
  "webpack": "5.74.0"
80
79
  },
81
80
  "engines": {
82
- "node": "12.* || 14.* || >= 16"
81
+ "node": "14.* || >= 16"
83
82
  },
84
83
  "ember": {
85
84
  "edition": "octane"
@@ -1,20 +1,30 @@
1
1
  caluma:
2
2
  distribution:
3
3
  empty: "Es wurden noch keine Anfragen erstellt."
4
- start: "Starten"
4
+ start: "Zirkulation starten"
5
5
  send: "Offene Anfragen versenden"
6
6
  complete: "Zirkulation abschliessen"
7
+ skip: "Zirkulation überspringen"
7
8
  reopen: "Zirkulation wiedereröffnen"
8
- send-confirm: "Wollen Sie wirklich alle offenen Anfragen versenden?"
9
+ check-inquiries: "Stellungnahmen als geprüft markieren"
10
+ send-confirm:
11
+ "Wollen Sie wirklich <b>{count, plural, =1 {eine offene Anfrage} other
12
+ {{count} offene Anfragen}}</b> versenden?"
9
13
  complete-confirm:
10
- "Es gibt noch <b>{count} offene {count, plural, =1 {Anfrage} other {Anfragen}}</b>
11
- in der aktuellen Zirkulation. Wenn Sie die Zirkulation abschliessen, werden
12
- alle verbleibenden offenen Anfragen abgebrochen. Möchten Sie fortfahren?"
14
+ "Es gibt noch <b>{count, plural, =1 {eine offene Anfrage} other {{count}
15
+ offene Anfragen}}</b> in der aktuellen Zirkulation. Wenn Sie die
16
+ Zirkulation abschliessen, werden alle verbleibenden offenen Anfragen
17
+ abgebrochen. Möchten Sie fortfahren?"
13
18
  complete-confirm-empty: "Möchten Sie die Zirkulation wirklich abschliessen?"
19
+ skip-confirm: "Wollen Sie die Zirkulation wirklich überspringen?"
14
20
  reopen-confirm: "Wollen Sie die Zirkulation wirklich wiedereröffnen?"
15
21
  send-error: "Fehler beim Versenden der offenen Anfragen"
16
22
  complete-error: "Fehler beim Abschliessen der Zirkulation"
23
+ skip-error: "Fehler beim Überspringen der Zirkulation"
17
24
  reopen-error: "Fehler beim Wiedereröffnen der Zirkulation"
25
+ check-inquiries-error: "Fehler beim Markieren der Stellungnahmen als geprüft"
26
+
27
+ attention-to: "{abbr, select, true {z. H.} other {zu Handen}} {subject}"
18
28
 
19
29
  more: "mehr"
20
30
  less: "weniger"
@@ -27,9 +37,13 @@ caluma:
27
37
 
28
38
  edit:
29
39
  link: "Bearbeiten"
30
- send: "Senden"
40
+ send: "Aktuelle Anfrage versenden"
31
41
  send-error: "Fehler beim Senden der Anfrage"
32
42
  send-not-allowed: "Sie sind nicht berechtigt diese Anfrage zu versenden."
43
+ edit-sent:
44
+ "<b>Achtung:</b> Sie bearbeiten eine Anfrage, die bereits versendet
45
+ wurde. Falls Sie die Details grundlegend ändern, kann es sein, dass die
46
+ adressierte Stelle dies nicht bemerkt, da sie nicht informiert wird."
33
47
 
34
48
  answer:
35
49
  link: "Beantworten"
@@ -59,6 +73,8 @@ caluma:
59
73
  selected: "{count, plural, other {ausgewählt}}"
60
74
  reset: "Zurücksetzen"
61
75
  create-draft: "Entwurf erstellen"
76
+ continue: "Weiter"
77
+ back: "Zurück"
62
78
  error: "Fehler beim Erstellen der {count, plural, =1 {Anfragen} other {Anfrage}}"
63
79
 
64
80
  reminder:
@@ -70,9 +86,9 @@ caluma:
70
86
  error: "Fehler beim Versenden der Erinnerung"
71
87
 
72
88
  types:
73
- controlling: "Angefordert"
74
- addressed: "Zu beantworten"
75
- more: "Weitere"
89
+ controlling: "Angeforderte Stellungnahmen"
90
+ addressed: "Eigene Stellungnahmen"
91
+ more: "Weitere Stellungnahmen"
76
92
 
77
93
  status:
78
94
  draft: "Entwurf"
@@ -1,21 +1,30 @@
1
1
  caluma:
2
2
  distribution:
3
3
  empty: "No inquiries have been created yet."
4
- start: "Start"
4
+ start: "Start circulation"
5
5
  send: "Send pending inquiries"
6
6
  complete: "Complete circulation"
7
- send-confirm: "Do you really want to send all pending inquiries?"
7
+ skip: "Skip circulation"
8
8
  reopen: "Reopen circulation"
9
+ check-inquiries: "Mark inquiries as checked"
10
+ send-confirm:
11
+ "Do you really want to send <b>{other, plural, =1 {one pending inquiry}
12
+ other {{count} pending inquiries}}</b>?"
9
13
  complete-confirm:
10
- "There {count, plural, =1 {is} other {are}} <b>{count} pending
11
- {count, plural, =1 {inquiry} other {inquiries}}</b> on the current
12
- distribution. Completing the distribution will cause all remaining
13
- pending inquiries to be canceled. Would you like to continue?"
14
+ "There {count, plural, =1 {is <b>one pending inquiry} other {are
15
+ <b>{count} pending inquiries}}</b> on the current distribution.
16
+ Completing the distribution will cause all remaining pending inquiries to
17
+ be canceled. Would you like to continue?"
14
18
  complete-confirm-empty: "Do you really want to complete the distribution?"
19
+ skip-confirm: "Do you really want to skip the distribution?"
15
20
  reopen-confirm: "Do you really want to reopen the distribution?"
16
21
  send-error: "Error while sending pending inquiries"
17
22
  complete-error: "Error while completing the distribution"
23
+ skip-error: "Error while skipping the distribution"
18
24
  reopen-error: "Error while reopening the distribution"
25
+ check-inquiries-error: "Error while marking the inquiries as checked"
26
+
27
+ attention-to: "{abbr, select, true {attn.} other {attention to}} {subject}"
19
28
 
20
29
  more: "more"
21
30
  less: "less"
@@ -28,9 +37,13 @@ caluma:
28
37
 
29
38
  edit:
30
39
  link: "Edit"
31
- send: "Send"
40
+ send: "Send current inquiry"
32
41
  send-error: "Error while sending the inquiry"
33
42
  send-not-allowed: "You are not allowed to send this inquiry."
43
+ edit-sent:
44
+ "<b>Warning:</b> You are editing an inquiry which has already been sent.
45
+ If you fundamentally change the details, the addressed group may not
46
+ notice it as they won't be informed."
34
47
 
35
48
  answer:
36
49
  link: "Answer"
@@ -60,6 +73,8 @@ caluma:
60
73
  selected: "{count, plural, other {selected}}"
61
74
  reset: "Reset"
62
75
  create-draft: "Create draft"
76
+ continue: "Continue"
77
+ back: "Back"
63
78
  error: "Error while creating the {count, plural, =1 {inquiry} other {inquiries}}"
64
79
 
65
80
  reminder:
@@ -71,9 +86,9 @@ caluma:
71
86
  error: "Error while sending the reminder"
72
87
 
73
88
  types:
74
- controlling: "Requested"
75
- addressed: "To answer"
76
- more: "More"
89
+ controlling: "Requested inquiries"
90
+ addressed: "Own inquiries"
91
+ more: "More inquiries"
77
92
 
78
93
  status:
79
94
  draft: "Draft"
@@ -1,20 +1,30 @@
1
1
  caluma:
2
2
  distribution:
3
3
  empty: "Aucune demande n'a encore été créée."
4
- start: "Lancer"
4
+ start: "Lancer la procédure de circulation"
5
5
  send: "Envoyer les demandes ouvertes"
6
- complete: "Terminer la circulation"
7
- send-confirm: "Voulez-vous vraiment envoyer toutes les demandes ouvertes ?"
6
+ complete: "Clore la circulation"
7
+ skip: "Sauter la procédure de circulation"
8
8
  reopen: "Rouvrir la procédure de circulation"
9
+ check-inquiries: "Marquer les prises de position comme vérifiées"
10
+ send-confirm:
11
+ "Voulez-vous vraiment envoyer <b>{count, plural, =1 {une demande ouverte}
12
+ other {{count} demandes ouvertes}}</b> ?"
9
13
  complete-confirm:
10
- "Il y a <b>{count} {count, plural, =1 {demande} other {demandes}} en
11
- attente</b> sur la distribution actuelle. Si vous terminez la distribution,
12
- toutes les demandes en attente seront annulées. Voulez-vous continuer ?"
14
+ "Il y a <b>{count, plural, =1 {une demande ouverte} other {{count}
15
+ demandes ouvertes}} </b> sur la circulation actuelle. Si vous clôturez la
16
+ circulation, toutes les demandes ouvertes seront annulées. Voulez-vous
17
+ continuer ?"
13
18
  complete-confirm-empty: "Vous voulez vraiment fermer la circulation ?"
19
+ skip-confirm: "Vous voulez vraiment sauter la circulation ?"
14
20
  reopen-confirm: "Vous voulez vraiment rouvrir la circulation ?"
15
21
  send-error: "Erreur lors de l'envoi des demandes ouvertes"
16
- complete-error: "Erreur lors de la terminaison de la circulation"
22
+ complete-error: "Erreur lors de la clôture de la circulation"
23
+ skip-error: "Erreur lors du saut de la circulation"
17
24
  reopen-error: "Erreur lors de la réouverture de la circulation"
25
+ check-inquiries-error: "Erreur lors du marquage des prises de position comme vérifiées"
26
+
27
+ attention-to: "{abbr, select, true {à l'att. de} other {à l'attention de}} {subject}"
18
28
 
19
29
  more: "plus"
20
30
  less: "moins"
@@ -27,9 +37,13 @@ caluma:
27
37
 
28
38
  edit:
29
39
  link: "Modifier"
30
- send: "Envoyer"
40
+ send: "Envoyer la demande actuelle"
31
41
  send-error: "Erreur lors de l'envoi de la demande"
32
42
  send-not-allowed: "Vous n'êtes pas autorisé à envoyer cette demande."
43
+ edit-sent:
44
+ "<b>Attention :</b> Vous traitez une demande qui a déjà été envoyée. Si
45
+ vous modifiez fondamentalement les détails, il se peut que le service
46
+ destinataire ne le remarque pas, car il n'en est pas informé."
33
47
 
34
48
  answer:
35
49
  link: "Répondre"
@@ -59,6 +73,8 @@ caluma:
59
73
  selected: "{count, plural, =1 {sélectionné} other {sélectionnés}}"
60
74
  reset: "Réinitialiser"
61
75
  create-draft: "Créer un brouillon"
76
+ continue: "Continuer"
77
+ back: "Retour"
62
78
  error: "Error lors de la création {count, plural, =1 {de la demande} other {des demandes}}"
63
79
 
64
80
  reminder:
@@ -70,9 +86,9 @@ caluma:
70
86
  error: "Erreur lors de l'envoi du rappel"
71
87
 
72
88
  types:
73
- controlling: "Demandé"
74
- addressed: "A répondre"
75
- more: "Plus"
89
+ controlling: "Prises de position demandées"
90
+ addressed: "Propres prises de position"
91
+ more: "Autres prises de position"
76
92
 
77
93
  status:
78
94
  draft: "Brouillon"