@projectcaluma/ember-workflow 11.0.0-beta.4 → 11.0.0-beta.40
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 +21 -0
- package/addon/components/task-button.js +2 -2
- package/addon/components/work-item-button.js +4 -2
- package/addon/gql/mutations/complete-work-item.graphql +4 -0
- package/addon/gql/mutations/skip-work-item.graphql +4 -0
- package/package.json +29 -29
- package/translations/de.yaml +9 -3
- package/translations/en.yaml +9 -3
- package/translations/fr.yaml +9 -3
- package/config/environment.js +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
# [@projectcaluma/ember-workflow-v11.0.0-beta.7](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-workflow-v11.0.0-beta.6...@projectcaluma/ember-workflow-v11.0.0-beta.7) (2022-05-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **resources:** fix deprecations of ember-resources ([7a84c5c](https://github.com/projectcaluma/ember-caluma/commit/7a84c5c78d5b28f7b5393c64722907728dd5f42b))
|
|
7
|
+
|
|
8
|
+
# [@projectcaluma/ember-workflow-v11.0.0-beta.6](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-workflow-v11.0.0-beta.5...@projectcaluma/ember-workflow-v11.0.0-beta.6) (2022-03-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **workflow:** fix error and success messages for buttons ([9f348cc](https://github.com/projectcaluma/ember-caluma/commit/9f348ccc1c81a2dfdbce220340d2bd977a3be618))
|
|
14
|
+
|
|
15
|
+
# [@projectcaluma/ember-workflow-v11.0.0-beta.5](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-workflow-v11.0.0-beta.4...@projectcaluma/ember-workflow-v11.0.0-beta.5) (2022-03-11)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **workflow:** return case status on complete / skip work-item mutation ([524453c](https://github.com/projectcaluma/ember-caluma/commit/524453c1189b4375ca792fca7d35056b916696f8))
|
|
21
|
+
|
|
1
22
|
# [@projectcaluma/ember-workflow-v11.0.0-beta.4](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-workflow-v11.0.0-beta.3...@projectcaluma/ember-workflow-v11.0.0-beta.4) (2022-02-07)
|
|
2
23
|
|
|
3
24
|
|
|
@@ -2,7 +2,7 @@ import { inject as service } from "@ember/service";
|
|
|
2
2
|
import Component from "@glimmer/component";
|
|
3
3
|
import { queryManager } from "ember-apollo-client";
|
|
4
4
|
import { dropTask } from "ember-concurrency";
|
|
5
|
-
import {
|
|
5
|
+
import { trackedTask } from "ember-resources/util/ember-concurrency";
|
|
6
6
|
|
|
7
7
|
import allWorkItems from "@projectcaluma/ember-workflow/gql/queries/all-work-items.graphql";
|
|
8
8
|
|
|
@@ -35,7 +35,7 @@ export default class TaskButtonComponent extends Component {
|
|
|
35
35
|
@service notification;
|
|
36
36
|
@service intl;
|
|
37
37
|
|
|
38
|
-
workItem =
|
|
38
|
+
workItem = trackedTask(this, this.fetchWorkItem, () => [
|
|
39
39
|
this.args.task,
|
|
40
40
|
this.args.filters,
|
|
41
41
|
]);
|
|
@@ -54,7 +54,7 @@ export default class WorkItemButtonComponent extends Component {
|
|
|
54
54
|
yield this.args.onSuccess();
|
|
55
55
|
} else {
|
|
56
56
|
this.notification.success(
|
|
57
|
-
this.intl.t(
|
|
57
|
+
this.intl.t(`caluma.mutate-work-item.success.${this.args.mutation}`)
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
60
|
} catch (e) {
|
|
@@ -63,7 +63,9 @@ export default class WorkItemButtonComponent extends Component {
|
|
|
63
63
|
} else {
|
|
64
64
|
// eslint-disable-next-line no-console
|
|
65
65
|
console.error(e);
|
|
66
|
-
this.notification.danger(
|
|
66
|
+
this.notification.danger(
|
|
67
|
+
this.intl.t(`caluma.mutate-work-item.error.${this.args.mutation}`)
|
|
68
|
+
);
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@projectcaluma/ember-workflow",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.40",
|
|
4
4
|
"description": "Ember addon for Caluma workflow tools.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -9,58 +9,58 @@
|
|
|
9
9
|
"homepage": "https://docs.caluma.io/ember-caluma",
|
|
10
10
|
"repository": "github:projectcaluma/ember-caluma",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"test": "npm
|
|
12
|
+
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
|
|
13
13
|
"test:ember": "ember test",
|
|
14
14
|
"test:ember-compatibility": "ember try:each"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@glimmer/component": "^1.
|
|
18
|
-
"@projectcaluma/ember-core": "^11.0.0-beta.
|
|
19
|
-
"ember-apollo-client": "
|
|
20
|
-
"ember-auto-import": "^2.
|
|
17
|
+
"@glimmer/component": "^1.1.2",
|
|
18
|
+
"@projectcaluma/ember-core": "^11.0.0-beta.40",
|
|
19
|
+
"ember-apollo-client": "~4.0.2",
|
|
20
|
+
"ember-auto-import": "^2.5.0",
|
|
21
21
|
"ember-cli-babel": "^7.26.11",
|
|
22
|
-
"ember-cli-htmlbars": "^6.
|
|
22
|
+
"ember-cli-htmlbars": "^6.1.1",
|
|
23
23
|
"ember-composable-helpers": "^5.0.0",
|
|
24
|
-
"ember-concurrency": "^2.
|
|
25
|
-
"ember-fetch": "^8.1.
|
|
24
|
+
"ember-concurrency": "^2.3.7",
|
|
25
|
+
"ember-fetch": "^8.1.2",
|
|
26
26
|
"ember-intl": "^5.7.2",
|
|
27
|
-
"ember-resources": "^
|
|
28
|
-
"ember-truth-helpers": "^3.
|
|
29
|
-
"ember-uikit": "^
|
|
27
|
+
"ember-resources": "^5.6.0",
|
|
28
|
+
"ember-truth-helpers": "^3.1.1",
|
|
29
|
+
"ember-uikit": "^6.1.1",
|
|
30
30
|
"graphql": "^15.8.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@ember/optional-features": "2.0.0",
|
|
34
|
-
"@ember/test-helpers": "2.
|
|
35
|
-
"@embroider/test-setup": "
|
|
36
|
-
"@faker-js/faker": "6.0
|
|
37
|
-
"@glimmer/tracking": "1.
|
|
38
|
-
"@projectcaluma/ember-testing": "11.0.0-beta.
|
|
34
|
+
"@ember/test-helpers": "2.7.0",
|
|
35
|
+
"@embroider/test-setup": "2.0.2",
|
|
36
|
+
"@faker-js/faker": "7.6.0",
|
|
37
|
+
"@glimmer/tracking": "1.1.2",
|
|
38
|
+
"@projectcaluma/ember-testing": "11.0.0-beta.40",
|
|
39
39
|
"broccoli-asset-rev": "3.0.0",
|
|
40
|
-
"
|
|
40
|
+
"concurrently": "7.6.0",
|
|
41
|
+
"ember-cli": "4.9.2",
|
|
41
42
|
"ember-cli-code-coverage": "1.0.3",
|
|
42
|
-
"ember-cli-dependency-checker": "3.
|
|
43
|
+
"ember-cli-dependency-checker": "3.3.1",
|
|
43
44
|
"ember-cli-inject-live-reload": "2.1.0",
|
|
44
|
-
"ember-cli-mirage": "
|
|
45
|
+
"ember-cli-mirage": "3.0.0-alpha.3",
|
|
45
46
|
"ember-cli-sri": "2.1.1",
|
|
46
47
|
"ember-cli-terser": "4.0.2",
|
|
47
|
-
"ember-disable-prototype-extensions": "1.1.3",
|
|
48
|
-
"ember-export-application-global": "2.0.1",
|
|
49
48
|
"ember-load-initializers": "2.1.2",
|
|
50
|
-
"ember-
|
|
51
|
-
"ember-qunit": "5.1.5",
|
|
49
|
+
"ember-qunit": "6.1.1",
|
|
52
50
|
"ember-resolver": "8.0.3",
|
|
53
|
-
"ember-source": "
|
|
51
|
+
"ember-source": "4.9.3",
|
|
54
52
|
"ember-source-channel-url": "3.0.0",
|
|
55
53
|
"ember-try": "2.0.0",
|
|
56
54
|
"loader.js": "4.7.0",
|
|
57
|
-
"
|
|
58
|
-
"qunit": "2.17.2",
|
|
55
|
+
"qunit": "2.19.3",
|
|
59
56
|
"qunit-dom": "2.0.0",
|
|
60
|
-
"webpack": "5.
|
|
57
|
+
"webpack": "5.75.0"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"ember-source": "^3.28.0 || ^4.0.0"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
|
-
"node": "
|
|
63
|
+
"node": "14.* || 16.* || >= 18"
|
|
64
64
|
},
|
|
65
65
|
"ember": {
|
|
66
66
|
"edition": "octane"
|
package/translations/de.yaml
CHANGED
|
@@ -3,8 +3,14 @@ caluma:
|
|
|
3
3
|
complete: "Abschliessen"
|
|
4
4
|
skip: "Überspringen"
|
|
5
5
|
cancel: "Abbrechen"
|
|
6
|
-
success:
|
|
7
|
-
|
|
6
|
+
success:
|
|
7
|
+
complete: "Die Aufgabe wurde erfolgreich abgeschlossen!"
|
|
8
|
+
skip: "Die Aufgabe wurde erfolgreich übersprungen!"
|
|
9
|
+
cancel: "Die Aufgabe wurde erfolgreich abgebrochen!"
|
|
10
|
+
error:
|
|
11
|
+
complete: "Hoppla, beim Abschliessen der Aufgabe ist etwas schief gelaufen..."
|
|
12
|
+
skip: "Hoppla, beim Überspringen der Aufgabe ist etwas schief gelaufen..."
|
|
13
|
+
cancel: "Hoppla, beim Abbrechen der Aufgabe ist etwas schief gelaufen..."
|
|
8
14
|
|
|
9
15
|
task-button:
|
|
10
|
-
error: "
|
|
16
|
+
error: "Fehler beim Laden der Aufgabe"
|
package/translations/en.yaml
CHANGED
|
@@ -3,8 +3,14 @@ caluma:
|
|
|
3
3
|
complete: "Complete"
|
|
4
4
|
skip: "Skip"
|
|
5
5
|
cancel: "Cancel"
|
|
6
|
-
success:
|
|
7
|
-
|
|
6
|
+
success:
|
|
7
|
+
complete: "Work item was successfully completed!"
|
|
8
|
+
skip: "Work item was successfully skipped!"
|
|
9
|
+
cancel: "Work item was successfully canceled!"
|
|
10
|
+
error:
|
|
11
|
+
complete: "Ooops, something went wrong while completing the work item..."
|
|
12
|
+
skip: "Ooops, something went wrong while skipping the work item..."
|
|
13
|
+
cancel: "Ooops, something went wrong while canceling the work item..."
|
|
8
14
|
|
|
9
15
|
task-button:
|
|
10
|
-
error: "
|
|
16
|
+
error: "Error while fetching the work item"
|
package/translations/fr.yaml
CHANGED
|
@@ -3,8 +3,14 @@ caluma:
|
|
|
3
3
|
complete: "Terminer"
|
|
4
4
|
skip: "Sauter"
|
|
5
5
|
cancel: "Annuler"
|
|
6
|
-
success:
|
|
7
|
-
|
|
6
|
+
success:
|
|
7
|
+
complete: "La tâche a été terminée avec succès !"
|
|
8
|
+
skip: "La tâche a été sautée avec succès !"
|
|
9
|
+
cancel: "La tâche a été annulée avec succès !"
|
|
10
|
+
error:
|
|
11
|
+
complete: "Oups, quelque chose s'est mal passé lors de la clôture de la tâche..."
|
|
12
|
+
skip: "Oups, quelque chose s'est mal passé lors du saut de la tâche..."
|
|
13
|
+
cancel: "Oups, quelque chose s'est mal passé lors de l'annulation de la tâche"
|
|
8
14
|
|
|
9
15
|
task-button:
|
|
10
|
-
error: "
|
|
16
|
+
error: "Erreur lors du chargement de la tâche"
|