@projectcaluma/ember-distribution 1.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +38 -0
- package/addon/-private/decorator.js +24 -0
- package/addon/abilities/inquiry.js +39 -0
- package/addon/components/distribution-navigation/controls.hbs +21 -0
- package/addon/components/distribution-navigation/controls.js +45 -0
- package/addon/components/distribution-navigation/item.hbs +18 -0
- package/addon/components/distribution-navigation/item.js +17 -0
- package/addon/components/distribution-navigation/section.hbs +24 -0
- package/addon/components/distribution-navigation/section.js +25 -0
- package/addon/components/distribution-navigation/status-indicator.hbs +17 -0
- package/addon/components/distribution-navigation/status-indicator.js +19 -0
- package/addon/components/distribution-navigation.hbs +17 -0
- package/addon/components/distribution-navigation.js +81 -0
- package/addon/components/icon-button.hbs +20 -0
- package/addon/components/icon-button.js +22 -0
- package/addon/components/inquiry-answer-form.hbs +46 -0
- package/addon/components/inquiry-answer-form.js +75 -0
- package/addon/components/inquiry-dialog/inquiry-deadline.hbs +6 -0
- package/addon/components/inquiry-dialog/inquiry-deadline.js +10 -0
- package/addon/components/inquiry-dialog/inquiry-divider.hbs +7 -0
- package/addon/components/inquiry-dialog/inquiry-divider.js +13 -0
- package/addon/components/inquiry-dialog/inquiry-part.hbs +40 -0
- package/addon/components/inquiry-dialog/inquiry-part.js +20 -0
- package/addon/components/inquiry-dialog/inquiry.hbs +13 -0
- package/addon/components/inquiry-dialog/inquiry.js +7 -0
- package/addon/components/inquiry-dialog.hbs +9 -0
- package/addon/components/inquiry-dialog.js +42 -0
- package/addon/components/inquiry-edit-form.hbs +27 -0
- package/addon/components/inquiry-edit-form.js +53 -0
- package/addon/components/inquiry-new-form.hbs +110 -0
- package/addon/components/inquiry-new-form.js +154 -0
- package/addon/config.js +72 -0
- package/addon/controllers/distribution/new.js +22 -0
- package/addon/engine.js +18 -0
- package/addon/gql/fragments/inquiry.graphql +89 -0
- package/addon/gql/mutations/complete-inquiry-work-item.graphql +36 -0
- package/addon/gql/mutations/create-inquiry.graphql +5 -0
- package/addon/gql/mutations/resume-work-item.graphql +8 -0
- package/addon/gql/queries/control-work-items.graphql +37 -0
- package/addon/gql/queries/inquiry-answer.graphql +33 -0
- package/addon/gql/queries/inquiry-dialog.graphql +28 -0
- package/addon/gql/queries/inquiry-edit.graphql +18 -0
- package/addon/gql/queries/inquiry-navigation.graphql +56 -0
- package/addon/routes/distribution/index.js +41 -0
- package/addon/routes/distribution/inquiry/detail/answer.js +7 -0
- package/addon/routes/distribution/inquiry/detail/index.js +7 -0
- package/addon/routes/distribution/inquiry/detail.js +7 -0
- package/addon/routes/distribution/inquiry/index.js +10 -0
- package/addon/routes/distribution/inquiry.js +7 -0
- package/addon/routes/distribution/new.js +7 -0
- package/addon/routes/distribution.js +7 -0
- package/addon/routes.js +12 -0
- package/addon/templates/distribution/inquiry/detail/answer.hbs +1 -0
- package/addon/templates/distribution/inquiry/detail/index.hbs +1 -0
- package/addon/templates/distribution/inquiry/detail.hbs +1 -0
- package/addon/templates/distribution/inquiry/index.hbs +5 -0
- package/addon/templates/distribution/inquiry.hbs +1 -0
- package/addon/templates/distribution/new.hbs +7 -0
- package/addon/templates/distribution.hbs +8 -0
- package/addon/utils/inquiry-deadline.js +48 -0
- package/addon/utils/inquiry-status.js +68 -0
- package/addon/utils/unique-by-groups.js +17 -0
- package/app/abilities/inquiry.js +1 -0
- package/app/components/distribution-navigation/controls.js +1 -0
- package/app/components/distribution-navigation/item.js +1 -0
- package/app/components/distribution-navigation/section.js +1 -0
- package/app/components/distribution-navigation/status-indicator.js +1 -0
- package/app/components/distribution-navigation.js +1 -0
- package/app/components/icon-button.js +1 -0
- package/app/components/inquiry-answer-form.js +1 -0
- package/app/components/inquiry-dialog/inquiry-deadline.js +1 -0
- package/app/components/inquiry-dialog/inquiry-divider.js +1 -0
- package/app/components/inquiry-dialog/inquiry-part.js +1 -0
- package/app/components/inquiry-dialog/inquiry.js +1 -0
- package/app/components/inquiry-dialog.js +1 -0
- package/app/components/inquiry-edit-form.js +1 -0
- package/app/components/inquiry-new-form.js +1 -0
- package/app/styles/@projectcaluma/ember-distribution.scss +3 -0
- package/app/styles/_icon-button.scss +13 -0
- package/app/styles/_inquiry-divider.scss +49 -0
- package/app/styles/_status-indicator.scss +31 -0
- package/app/styles/app.scss +1 -0
- package/app/utils/inquiry-deadline.js +1 -0
- package/app/utils/inquiry-status.js +1 -0
- package/app/utils/unique-by-groups.js +1 -0
- package/config/environment.js +10 -0
- package/index.js +22 -0
- package/package.json +86 -0
- package/translations/de.yaml +42 -0
- package/translations/en.yaml +42 -0
- package/translations/fr.yaml +42 -0
package/index.js
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
// eslint-disable-next-line node/no-unpublished-require
|
4
|
+
const { buildEngine } = require("ember-engines/lib/engine-addon");
|
5
|
+
|
6
|
+
const ioniconsBase = require
|
7
|
+
.resolve("ionicons")
|
8
|
+
.split("/")
|
9
|
+
.slice(0, -1)
|
10
|
+
.join("/");
|
11
|
+
|
12
|
+
module.exports = buildEngine({
|
13
|
+
name: require("./package").name,
|
14
|
+
|
15
|
+
lazyLoading: {
|
16
|
+
enabled: false,
|
17
|
+
},
|
18
|
+
|
19
|
+
svgJar: {
|
20
|
+
sourceDirs: [`${ioniconsBase}/svg`],
|
21
|
+
},
|
22
|
+
});
|
package/package.json
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
{
|
2
|
+
"name": "@projectcaluma/ember-distribution",
|
3
|
+
"version": "1.0.0-beta.1",
|
4
|
+
"description": "Ember engine for the Caluma distribution module.",
|
5
|
+
"keywords": [
|
6
|
+
"ember-addon",
|
7
|
+
"ember-engine"
|
8
|
+
],
|
9
|
+
"license": "LGPL-3.0-or-later",
|
10
|
+
"homepage": "https://docs.caluma.io/ember-caluma",
|
11
|
+
"repository": "github:projectcaluma/ember-caluma",
|
12
|
+
"scripts": {
|
13
|
+
"test": "npm-run-all test:*",
|
14
|
+
"test:ember": "ember test",
|
15
|
+
"test:ember-compatibility": "ember try:each"
|
16
|
+
},
|
17
|
+
"peerDependencies": {
|
18
|
+
"ember-engines": ">= 0.8"
|
19
|
+
},
|
20
|
+
"dependencies": {
|
21
|
+
"@glimmer/component": "^1.0.4",
|
22
|
+
"@glimmer/tracking": "^1.0.4",
|
23
|
+
"@projectcaluma/ember-core": "^11.0.0-beta.2",
|
24
|
+
"@projectcaluma/ember-form": "^11.0.0-beta.2",
|
25
|
+
"@projectcaluma/ember-workflow": "^11.0.0-beta.1",
|
26
|
+
"ember-apollo-client": "^3.2.0",
|
27
|
+
"ember-auto-import": "^2.3.0",
|
28
|
+
"ember-can": "^4.1.0",
|
29
|
+
"ember-cli-babel": "^7.26.11",
|
30
|
+
"ember-cli-htmlbars": "^6.0.1",
|
31
|
+
"ember-concurrency": "^2.2.0",
|
32
|
+
"ember-engines-router-service": "^0.3.0",
|
33
|
+
"ember-fetch": "^8.1.1",
|
34
|
+
"ember-intl": "^5.7.2",
|
35
|
+
"ember-resources": "^4.1.3",
|
36
|
+
"ember-svg-jar": "^2.3.4",
|
37
|
+
"ember-test-selectors": "^6.0.0",
|
38
|
+
"ember-uikit": "^4.0.0",
|
39
|
+
"graphql": "^15.8.0",
|
40
|
+
"ionicons": "^6.0.0",
|
41
|
+
"lodash.merge": "^4.6.2",
|
42
|
+
"moment": "^2.29.1",
|
43
|
+
"tracked-toolbox": "^1.2.3"
|
44
|
+
},
|
45
|
+
"devDependencies": {
|
46
|
+
"@ember/optional-features": "2.0.0",
|
47
|
+
"@ember/test-helpers": "2.6.0",
|
48
|
+
"@embroider/test-setup": "0.50.2",
|
49
|
+
"@faker-js/faker": "6.0.0-alpha.3",
|
50
|
+
"@projectcaluma/ember-testing": "10.2.0-beta.2",
|
51
|
+
"broccoli-asset-rev": "3.0.0",
|
52
|
+
"ember-cli": "3.28.5",
|
53
|
+
"ember-cli-dependency-checker": "3.2.0",
|
54
|
+
"ember-cli-inject-live-reload": "2.1.0",
|
55
|
+
"ember-cli-mirage": "2.3.1",
|
56
|
+
"ember-cli-sass": "10.0.1",
|
57
|
+
"ember-cli-sri": "2.1.1",
|
58
|
+
"ember-cli-terser": "4.0.2",
|
59
|
+
"ember-disable-prototype-extensions": "1.1.3",
|
60
|
+
"ember-engines": "0.8.20",
|
61
|
+
"ember-export-application-global": "2.0.1",
|
62
|
+
"ember-load-initializers": "2.1.2",
|
63
|
+
"ember-maybe-import-regenerator": "1.0.0",
|
64
|
+
"ember-qunit": "5.1.5",
|
65
|
+
"ember-resolver": "8.0.3",
|
66
|
+
"ember-source": "3.28.8",
|
67
|
+
"ember-source-channel-url": "3.0.0",
|
68
|
+
"ember-try": "2.0.0",
|
69
|
+
"loader.js": "4.7.0",
|
70
|
+
"miragejs": "0.1.43",
|
71
|
+
"npm-run-all": "4.1.5",
|
72
|
+
"qunit": "2.17.2",
|
73
|
+
"qunit-dom": "2.0.0",
|
74
|
+
"sass": "1.48.0",
|
75
|
+
"webpack": "5.66.0"
|
76
|
+
},
|
77
|
+
"engines": {
|
78
|
+
"node": "12.* || 14.* || >= 16"
|
79
|
+
},
|
80
|
+
"ember": {
|
81
|
+
"edition": "octane"
|
82
|
+
},
|
83
|
+
"ember-addon": {
|
84
|
+
"configPath": "tests/dummy/config"
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
caluma:
|
2
|
+
distribution:
|
3
|
+
edit:
|
4
|
+
title: "Anfrage bearbeiten"
|
5
|
+
link: "Bearbeiten"
|
6
|
+
|
7
|
+
send: "Senden"
|
8
|
+
send-error: "Fehler beim Senden der Anfrage"
|
9
|
+
|
10
|
+
answer:
|
11
|
+
title: "Anfrage beantworten"
|
12
|
+
link: "Beantworten"
|
13
|
+
|
14
|
+
release-for-review: "Zur Kontrolle freigeben"
|
15
|
+
release-adjustment-for-review: "Anpassung zur Kontrolle freigeben"
|
16
|
+
confirm: "Bestätigen"
|
17
|
+
revise: "Überarbeiten"
|
18
|
+
|
19
|
+
complete-error: "Fehler beim Abschliessen der Aufgabe"
|
20
|
+
|
21
|
+
new:
|
22
|
+
title: "Neue Anfrage"
|
23
|
+
search: "Suchen..."
|
24
|
+
suggestions: "Empfehlungen"
|
25
|
+
empty: "Es wurden keine Stellen gefunden"
|
26
|
+
groups: "{count} {count, plural, =1 {Stelle} other {Stellen}}"
|
27
|
+
selected: "{count, plural, other {ausgewählt}}"
|
28
|
+
reset: "Zurücksetzen"
|
29
|
+
create-draft: "Entwurf erstellen"
|
30
|
+
error: "Fehler beim Erstellen der {count, plural, =1 {Anfragen} other {Anfrage}}"
|
31
|
+
|
32
|
+
types:
|
33
|
+
controlling: "Angefordert"
|
34
|
+
addressed: "Zu beantworten"
|
35
|
+
more: "Weitere"
|
36
|
+
|
37
|
+
status:
|
38
|
+
draft: "Entwurf"
|
39
|
+
sent: "Versendet"
|
40
|
+
positive: "Positiv"
|
41
|
+
negative: "Negativ"
|
42
|
+
needs-interaction: "Aktion erforderlich"
|
@@ -0,0 +1,42 @@
|
|
1
|
+
caluma:
|
2
|
+
distribution:
|
3
|
+
edit:
|
4
|
+
title: "Edit inquiry"
|
5
|
+
link: "Edit"
|
6
|
+
|
7
|
+
send: "Send"
|
8
|
+
send-error: "Error while sending the inquiry"
|
9
|
+
|
10
|
+
answer:
|
11
|
+
title: "Answer inquiry"
|
12
|
+
link: "Answer"
|
13
|
+
|
14
|
+
release-for-review: "Release for review"
|
15
|
+
release-adjustment-for-review: "Release adjustment for review"
|
16
|
+
confirm: "Confirm"
|
17
|
+
revise: "Revise"
|
18
|
+
|
19
|
+
complete-error: "Error while completing the work item"
|
20
|
+
|
21
|
+
new:
|
22
|
+
title: "New inquiry"
|
23
|
+
search: "Search..."
|
24
|
+
suggestions: "Suggestions"
|
25
|
+
empty: "No groups were found"
|
26
|
+
groups: "{count} {count, plural, =1 {group} other {groups}}"
|
27
|
+
selected: "{count, plural, other {selected}}"
|
28
|
+
reset: "Reset"
|
29
|
+
create-draft: "Create draft"
|
30
|
+
error: "Error while creating the {count, plural, =1 {inquiry} other {inquiries}}"
|
31
|
+
|
32
|
+
types:
|
33
|
+
controlling: "Requested"
|
34
|
+
addressed: "To answer"
|
35
|
+
more: "More"
|
36
|
+
|
37
|
+
status:
|
38
|
+
draft: "Draft"
|
39
|
+
sent: "Sent"
|
40
|
+
positive: "Positive"
|
41
|
+
negative: "Negative"
|
42
|
+
needs-interaction: "Needs interaction"
|
@@ -0,0 +1,42 @@
|
|
1
|
+
caluma:
|
2
|
+
distribution:
|
3
|
+
edit:
|
4
|
+
title: "Modifier la demande"
|
5
|
+
link: "Modifier"
|
6
|
+
|
7
|
+
send: "Envoyer"
|
8
|
+
send-error: "Erreur lors de l'envoi de la demande"
|
9
|
+
|
10
|
+
answer:
|
11
|
+
title: "Répondre à la demande"
|
12
|
+
link: "Répondre"
|
13
|
+
|
14
|
+
release-for-review: "Valider pour vérification"
|
15
|
+
release-adjustment-for-review: "Valider la révision pour vérification"
|
16
|
+
confirm: "Confirmer"
|
17
|
+
revise: "Réviser"
|
18
|
+
|
19
|
+
complete-error: "Erreur lors de la clôture de la tâche"
|
20
|
+
|
21
|
+
new:
|
22
|
+
title: "Nouvelle demande"
|
23
|
+
search: "Chercher..."
|
24
|
+
suggestions: "Propositions"
|
25
|
+
empty: "Aucune services n'a été trouvée"
|
26
|
+
groups: "{count} {count, plural, =1 {service} other {services}}"
|
27
|
+
selected: "{count, plural, =1 {sélectionné} other {sélectionnés}}"
|
28
|
+
reset: "Réinitialiser"
|
29
|
+
create-draft: "Créer un brouillon"
|
30
|
+
error: "Error lors de la création {count, plural, =1 {de la demande} other {des demandes}}"
|
31
|
+
|
32
|
+
types:
|
33
|
+
controlling: "Demandé"
|
34
|
+
addressed: "A répondre"
|
35
|
+
more: "Plus"
|
36
|
+
|
37
|
+
status:
|
38
|
+
draft: "Brouillon"
|
39
|
+
sent: "Envoyé"
|
40
|
+
positive: "Positif"
|
41
|
+
negative: "Negatif"
|
42
|
+
needs-interaction: "Action nécessaire"
|