@projectcaluma/ember-distribution 1.0.0-beta.1 → 1.0.0-beta.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. package/CHANGELOG.md +110 -0
  2. package/addon/abilities/distribution.js +41 -0
  3. package/addon/abilities/inquiry.js +20 -0
  4. package/addon/components/cd-document-header.hbs +20 -0
  5. package/addon/components/cd-icon-button.hbs +27 -0
  6. package/addon/components/{icon-button.js → cd-icon-button.js} +1 -1
  7. package/addon/components/cd-inquiry-answer-form.hbs +78 -0
  8. package/addon/components/{inquiry-answer-form.js → cd-inquiry-answer-form.js} +27 -13
  9. package/addon/components/cd-inquiry-dialog/inquiry-deadline.hbs +29 -0
  10. package/addon/components/{inquiry-dialog → cd-inquiry-dialog}/inquiry-deadline.js +5 -1
  11. package/addon/components/{inquiry-dialog → cd-inquiry-dialog}/inquiry-divider.hbs +2 -1
  12. package/addon/components/{inquiry-dialog → cd-inquiry-dialog}/inquiry-divider.js +1 -1
  13. package/addon/components/cd-inquiry-dialog/inquiry-part.hbs +101 -0
  14. package/addon/components/cd-inquiry-dialog/inquiry-part.js +66 -0
  15. package/addon/components/cd-inquiry-dialog/inquiry.hbs +16 -0
  16. package/addon/components/cd-inquiry-dialog/inquiry.js +11 -0
  17. package/addon/components/cd-inquiry-dialog.hbs +24 -0
  18. package/addon/components/cd-inquiry-dialog.js +93 -0
  19. package/addon/components/cd-inquiry-edit-form.hbs +41 -0
  20. package/addon/components/{inquiry-edit-form.js → cd-inquiry-edit-form.js} +5 -4
  21. package/addon/components/cd-inquiry-new-form.hbs +123 -0
  22. package/addon/components/cd-inquiry-new-form.js +116 -0
  23. package/addon/components/cd-navigation/controls.hbs +32 -0
  24. package/addon/components/cd-navigation/controls.js +95 -0
  25. package/addon/components/cd-navigation/item.hbs +15 -0
  26. package/addon/components/{distribution-navigation → cd-navigation}/item.js +2 -2
  27. package/addon/components/{distribution-navigation → cd-navigation}/section.hbs +9 -7
  28. package/addon/components/{distribution-navigation → cd-navigation}/section.js +1 -1
  29. package/addon/components/{distribution-navigation → cd-navigation}/status-indicator.hbs +2 -1
  30. package/addon/components/{distribution-navigation → cd-navigation}/status-indicator.js +1 -1
  31. package/addon/components/cd-navigation.hbs +14 -0
  32. package/addon/components/cd-navigation.js +53 -0
  33. package/addon/components/cd-notfound.hbs +12 -0
  34. package/addon/components/cd-truncated.hbs +8 -0
  35. package/addon/components/cd-truncated.js +32 -0
  36. package/addon/config.js +3 -1
  37. package/addon/controllers/application.js +10 -0
  38. package/addon/controllers/{distribution/new.js → new.js} +2 -2
  39. package/addon/engine.js +7 -1
  40. package/addon/gql/fragments/inquiry.graphql +21 -12
  41. package/addon/gql/mutations/complete-work-item.graphql +8 -0
  42. package/addon/gql/mutations/withdraw-inquiry.graphql +8 -0
  43. package/addon/gql/queries/control-work-items.graphql +18 -2
  44. package/addon/gql/queries/incomplete-inquiries.graphql +13 -0
  45. package/addon/gql/queries/inquiry-answer.graphql +15 -1
  46. package/addon/gql/queries/inquiry-dialog.graphql +2 -2
  47. package/addon/gql/queries/inquiry-edit.graphql +2 -0
  48. package/addon/gql/queries/inquiry-navigation.graphql +4 -1
  49. package/addon/modifiers/pikaday.js +2 -0
  50. package/addon/routes/{distribution.js → application.js} +1 -1
  51. package/addon/routes/{distribution/index.js → index.js} +2 -2
  52. package/addon/routes/inquiry/detail/answer.js +7 -0
  53. package/addon/routes/inquiry/detail/index.js +7 -0
  54. package/addon/routes/{distribution/inquiry → inquiry}/detail.js +1 -1
  55. package/addon/routes/inquiry/index.js +10 -0
  56. package/addon/routes/{distribution/inquiry.js → inquiry.js} +1 -1
  57. package/addon/routes/new.js +7 -0
  58. package/addon/routes/notfound.js +3 -0
  59. package/addon/routes.js +5 -6
  60. package/addon/services/distribution.js +112 -0
  61. package/addon/templates/application.hbs +18 -0
  62. package/addon/templates/index.hbs +11 -0
  63. package/addon/templates/inquiry/detail/answer.hbs +1 -0
  64. package/addon/templates/inquiry/detail/index.hbs +1 -0
  65. package/addon/templates/{distribution/inquiry → inquiry}/detail.hbs +0 -0
  66. package/addon/templates/{distribution/inquiry → inquiry}/index.hbs +1 -1
  67. package/addon/templates/{distribution/inquiry.hbs → inquiry.hbs} +0 -0
  68. package/addon/templates/{distribution/new.hbs → new.hbs} +1 -1
  69. package/addon/templates/notfound.hbs +1 -0
  70. package/addon/utils/inquiry-deadline.js +4 -7
  71. package/addon/utils/unique-by-groups.js +1 -0
  72. package/app/abilities/distribution.js +1 -0
  73. package/app/components/cd-document-header.js +1 -0
  74. package/app/components/{inquiry-dialog.js → cd-icon-button.js} +1 -1
  75. package/app/components/{inquiry-dialog/inquiry.js → cd-inquiry-answer-form.js} +1 -1
  76. package/app/components/{inquiry-dialog → cd-inquiry-dialog}/inquiry-deadline.js +1 -1
  77. package/app/components/{inquiry-dialog → cd-inquiry-dialog}/inquiry-divider.js +1 -1
  78. package/app/components/{inquiry-dialog → cd-inquiry-dialog}/inquiry-part.js +1 -1
  79. package/app/components/{distribution-navigation.js → cd-inquiry-dialog/inquiry.js} +1 -1
  80. package/app/components/{inquiry-edit-form.js → cd-inquiry-dialog.js} +1 -1
  81. package/app/components/cd-inquiry-edit-form.js +1 -0
  82. package/app/components/{inquiry-answer-form.js → cd-inquiry-new-form.js} +1 -1
  83. package/app/components/cd-navigation/controls.js +1 -0
  84. package/app/components/cd-navigation/item.js +1 -0
  85. package/app/components/cd-navigation/section.js +1 -0
  86. package/app/components/{distribution-navigation/item.js → cd-navigation/status-indicator.js} +1 -1
  87. package/app/components/{inquiry-new-form.js → cd-navigation.js} +1 -1
  88. package/app/components/{icon-button.js → cd-notfound.js} +1 -1
  89. package/app/components/cd-truncated.js +1 -0
  90. package/app/services/distribution.js +1 -0
  91. package/app/styles/@projectcaluma/ember-distribution.scss +2 -0
  92. package/app/styles/_answer-form.scss +4 -0
  93. package/app/styles/_inquiry-divider.scss +22 -0
  94. package/app/styles/_truncated.scss +3 -0
  95. package/index.js +14 -13
  96. package/package.json +31 -26
  97. package/public/assets/distribution.svg +1 -0
  98. package/translations/de.yaml +34 -4
  99. package/translations/en.yaml +35 -4
  100. package/translations/fr.yaml +34 -4
  101. package/addon/components/distribution-navigation/controls.hbs +0 -21
  102. package/addon/components/distribution-navigation/controls.js +0 -45
  103. package/addon/components/distribution-navigation/item.hbs +0 -18
  104. package/addon/components/distribution-navigation.hbs +0 -17
  105. package/addon/components/distribution-navigation.js +0 -81
  106. package/addon/components/icon-button.hbs +0 -20
  107. package/addon/components/inquiry-answer-form.hbs +0 -46
  108. package/addon/components/inquiry-dialog/inquiry-deadline.hbs +0 -6
  109. package/addon/components/inquiry-dialog/inquiry-part.hbs +0 -40
  110. package/addon/components/inquiry-dialog/inquiry-part.js +0 -20
  111. package/addon/components/inquiry-dialog/inquiry.hbs +0 -13
  112. package/addon/components/inquiry-dialog/inquiry.js +0 -7
  113. package/addon/components/inquiry-dialog.hbs +0 -9
  114. package/addon/components/inquiry-dialog.js +0 -42
  115. package/addon/components/inquiry-edit-form.hbs +0 -27
  116. package/addon/components/inquiry-new-form.hbs +0 -110
  117. package/addon/components/inquiry-new-form.js +0 -154
  118. package/addon/routes/distribution/inquiry/detail/answer.js +0 -7
  119. package/addon/routes/distribution/inquiry/detail/index.js +0 -7
  120. package/addon/routes/distribution/inquiry/index.js +0 -10
  121. package/addon/routes/distribution/new.js +0 -7
  122. package/addon/templates/distribution/inquiry/detail/answer.hbs +0 -1
  123. package/addon/templates/distribution/inquiry/detail/index.hbs +0 -1
  124. package/addon/templates/distribution.hbs +0 -8
  125. package/app/components/distribution-navigation/controls.js +0 -1
  126. package/app/components/distribution-navigation/section.js +0 -1
  127. package/app/components/distribution-navigation/status-indicator.js +0 -1
@@ -1,4 +1,4 @@
1
- <InquiryDialog
1
+ <CdInquiryDialog
2
2
  @from={{@model.from}}
3
3
  @to={{@model.to}}
4
4
  @caseId={{@model.case}}
@@ -1,4 +1,4 @@
1
- <InquiryNewForm
1
+ <CdInquiryNewForm
2
2
  @selectedTypes={{this.selectedTypes}}
3
3
  @search={{this.search}}
4
4
  @caseId={{@model}}
@@ -0,0 +1 @@
1
+ <CdNotfound />
@@ -1,6 +1,6 @@
1
1
  import { assert } from "@ember/debug";
2
2
  import { get } from "@ember/object";
3
- import moment from "moment";
3
+ import { DateTime } from "luxon";
4
4
 
5
5
  import { createDecorator } from "@projectcaluma/ember-distribution/-private/decorator";
6
6
 
@@ -21,13 +21,10 @@ function decorator(
21
21
  const value = inquiry.document?.deadline.edges[0]?.node.value;
22
22
  const isAnswered = inquiry.status === "COMPLETED";
23
23
 
24
- const deadline = moment.utc(value);
25
- const now = moment.utc();
24
+ const { days: diff } = DateTime.fromISO(value).diffNow("days").toObject();
26
25
 
27
- const isOverdue = !isAnswered && now.isAfter(deadline, "day");
28
- const isWarning =
29
- !isAnswered &&
30
- now.add(this.config.warningPeriod, "days").isAfter(deadline, "day");
26
+ const isOverdue = !isAnswered && diff <= 0;
27
+ const isWarning = !isAnswered && diff <= this.config.warningPeriod;
31
28
 
32
29
  return {
33
30
  value,
@@ -2,6 +2,7 @@ export default function uniqueByGroups(workItems) {
2
2
  return [
3
3
  ...new Map(
4
4
  workItems
5
+ .filter((workItem) => workItem.status !== "CANCELED")
5
6
  .map((workItem) => {
6
7
  return [
7
8
  JSON.stringify({
@@ -0,0 +1 @@
1
+ export { default } from "@projectcaluma/ember-distribution/abilities/distribution";
@@ -0,0 +1 @@
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-document-header";
@@ -1 +1 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/inquiry-dialog";
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-icon-button";
@@ -1 +1 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/inquiry-dialog/inquiry";
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-answer-form";
@@ -1 +1 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/inquiry-dialog/inquiry-deadline";
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-dialog/inquiry-deadline";
@@ -1 +1 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/inquiry-dialog/inquiry-divider";
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-dialog/inquiry-divider";
@@ -1 +1 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/inquiry-dialog/inquiry-part";
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-dialog/inquiry-part";
@@ -1 +1 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/distribution-navigation";
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-dialog/inquiry";
@@ -1 +1 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/inquiry-edit-form";
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-dialog";
@@ -0,0 +1 @@
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-edit-form";
@@ -1 +1 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/inquiry-answer-form";
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-new-form";
@@ -0,0 +1 @@
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-navigation/controls";
@@ -0,0 +1 @@
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-navigation/item";
@@ -0,0 +1 @@
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-navigation/section";
@@ -1 +1 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/distribution-navigation/item";
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-navigation/status-indicator";
@@ -1 +1 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/inquiry-new-form";
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-navigation";
@@ -1 +1 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/icon-button";
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-notfound";
@@ -0,0 +1 @@
1
+ export { default } from "@projectcaluma/ember-distribution/components/cd-truncated";
@@ -0,0 +1 @@
1
+ export { default } from "@projectcaluma/ember-distribution/services/distribution";
@@ -1,3 +1,5 @@
1
+ @import "../answer-form";
1
2
  @import "../icon-button";
2
3
  @import "../inquiry-divider";
3
4
  @import "../status-indicator";
5
+ @import "../truncated";
@@ -0,0 +1,4 @@
1
+ .inquiry-answer-form__request {
2
+ border-left: 5px solid $global-border;
3
+ padding-left: $global-gutter - 5px;
4
+ }
@@ -3,6 +3,9 @@
3
3
  $size: 36px;
4
4
  $iconSize: $size * 0.6;
5
5
 
6
+ $sizeSmall: 24px;
7
+ $iconSizeSmall: $sizeSmall * 0.6;
8
+
6
9
  $colors: (
7
10
  muted: $text-muted-color,
8
11
  emphasis: $text-emphasis-color,
@@ -47,3 +50,22 @@ $colors: (
47
50
  }
48
51
  }
49
52
  }
53
+ .inquiry-divider--small {
54
+ &::before,
55
+ &::after {
56
+ height: 1px;
57
+ width: calc(50% - #{$sizeSmall * 0.5});
58
+ }
59
+
60
+ .inquiry-divider__icon {
61
+ width: $sizeSmall;
62
+ height: $sizeSmall;
63
+
64
+ border-width: 1px;
65
+
66
+ > svg {
67
+ width: $iconSizeSmall;
68
+ height: $iconSizeSmall;
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,3 @@
1
+ .cd-truncated {
2
+ white-space: pre-line;
3
+ }
package/index.js CHANGED
@@ -3,20 +3,21 @@
3
3
  // eslint-disable-next-line node/no-unpublished-require
4
4
  const { buildEngine } = require("ember-engines/lib/engine-addon");
5
5
 
6
- const ioniconsBase = require
7
- .resolve("ionicons")
8
- .split("/")
9
- .slice(0, -1)
10
- .join("/");
6
+ const name = require("./package").name;
11
7
 
12
- module.exports = buildEngine({
13
- name: require("./package").name,
8
+ const ioniconAssets = [
9
+ ...require.resolve("ionicons").split("/").slice(0, -1),
10
+ "svg",
11
+ ].join("/");
14
12
 
15
- lazyLoading: {
16
- enabled: false,
17
- },
13
+ const publicAssets = [
14
+ ...require.resolve(name).split("/").slice(0, -1),
15
+ "public",
16
+ "assets",
17
+ ].join("/");
18
18
 
19
- svgJar: {
20
- sourceDirs: [`${ioniconsBase}/svg`],
21
- },
19
+ module.exports = buildEngine({
20
+ name,
21
+ lazyLoading: { enabled: false },
22
+ svgJar: { sourceDirs: [ioniconAssets, publicAssets] },
22
23
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-distribution",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.10",
4
4
  "description": "Ember engine for the Caluma distribution module.",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -18,61 +18,66 @@
18
18
  "ember-engines": ">= 0.8"
19
19
  },
20
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",
21
+ "@ember/string": "^3.0.0",
22
+ "@embroider/macros": "^1.6.0",
23
+ "@glimmer/component": "^1.1.2",
24
+ "@glimmer/tracking": "^1.1.2",
25
+ "@projectcaluma/ember-core": "^11.0.0-beta.7",
26
+ "@projectcaluma/ember-form": "^11.0.0-beta.19",
27
+ "@projectcaluma/ember-workflow": "^11.0.0-beta.7",
28
+ "ember-apollo-client": "^4.0.2",
29
+ "ember-auto-import": "^2.4.1",
30
+ "ember-can": "^4.2.0",
29
31
  "ember-cli-babel": "^7.26.11",
30
32
  "ember-cli-htmlbars": "^6.0.1",
31
- "ember-concurrency": "^2.2.0",
33
+ "ember-concurrency": "^2.2.1",
32
34
  "ember-engines-router-service": "^0.3.0",
33
35
  "ember-fetch": "^8.1.1",
34
36
  "ember-intl": "^5.7.2",
35
- "ember-resources": "^4.1.3",
37
+ "ember-pikaday": "^4.0.0",
38
+ "ember-resources": "^4.7.1",
36
39
  "ember-svg-jar": "^2.3.4",
37
40
  "ember-test-selectors": "^6.0.0",
38
- "ember-uikit": "^4.0.0",
41
+ "ember-uikit": "^5.1.3",
39
42
  "graphql": "^15.8.0",
40
- "ionicons": "^6.0.0",
43
+ "graphql-tag": "^2.12.6",
44
+ "ionicons": "^6.0.1",
41
45
  "lodash.merge": "^4.6.2",
42
- "moment": "^2.29.1",
46
+ "luxon": "^2.4.0",
43
47
  "tracked-toolbox": "^1.2.3"
44
48
  },
45
49
  "devDependencies": {
46
50
  "@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
+ "@ember/test-helpers": "2.7.0",
52
+ "@embroider/test-setup": "1.6.0",
53
+ "@faker-js/faker": "6.3.1",
54
+ "@projectcaluma/ember-testing": "11.0.0-beta.7",
51
55
  "broccoli-asset-rev": "3.0.0",
52
56
  "ember-cli": "3.28.5",
53
- "ember-cli-dependency-checker": "3.2.0",
57
+ "ember-cli-code-coverage": "1.0.3",
58
+ "ember-cli-dependency-checker": "3.3.1",
54
59
  "ember-cli-inject-live-reload": "2.1.0",
55
- "ember-cli-mirage": "2.3.1",
56
- "ember-cli-sass": "10.0.1",
60
+ "ember-cli-mirage": "3.0.0-alpha.3",
61
+ "ember-cli-sass": "11.0.1",
57
62
  "ember-cli-sri": "2.1.1",
58
63
  "ember-cli-terser": "4.0.2",
59
64
  "ember-disable-prototype-extensions": "1.1.3",
60
- "ember-engines": "0.8.20",
65
+ "ember-engines": "0.8.22",
61
66
  "ember-export-application-global": "2.0.1",
62
67
  "ember-load-initializers": "2.1.2",
63
68
  "ember-maybe-import-regenerator": "1.0.0",
64
69
  "ember-qunit": "5.1.5",
65
70
  "ember-resolver": "8.0.3",
66
- "ember-source": "3.28.8",
71
+ "ember-source": "3.28.9",
67
72
  "ember-source-channel-url": "3.0.0",
68
73
  "ember-try": "2.0.0",
69
74
  "loader.js": "4.7.0",
70
75
  "miragejs": "0.1.43",
71
76
  "npm-run-all": "4.1.5",
72
- "qunit": "2.17.2",
77
+ "qunit": "2.19.1",
73
78
  "qunit-dom": "2.0.0",
74
- "sass": "1.48.0",
75
- "webpack": "5.66.0"
79
+ "sass": "1.51.0",
80
+ "webpack": "5.72.0"
76
81
  },
77
82
  "engines": {
78
83
  "node": "12.* || 14.* || >= 16"
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="enable-background:new 0 0 512 512" viewBox="0 0 512 512"><path d="M477.867 102.4c-18.825 0-34.133 15.309-34.133 34.133s15.309 34.133 34.133 34.133S512 155.358 512 136.533c0-18.824-15.309-34.133-34.133-34.133zm0 51.2c-9.412 0-17.067-7.654-17.067-17.067 0-9.412 7.654-17.067 17.067-17.067s17.067 7.654 17.067 17.067c-.001 9.413-7.655 17.067-17.067 17.067zM34.133 384C15.309 384 0 399.309 0 418.133s15.309 34.133 34.133 34.133c18.825 0 34.133-15.309 34.133-34.133S52.958 384 34.133 384zm0 51.2c-9.412 0-17.067-7.654-17.067-17.067s7.654-17.067 17.067-17.067c9.412 0 17.067 7.654 17.067 17.067S43.546 435.2 34.133 435.2z"/><path d="m461.321 113.186-73.617-35.541c-4.25-2.057-9.344-.265-11.392 3.977-2.048 4.241-.265 9.344 3.977 11.392l73.617 35.541c1.195.58 2.458.853 3.703.853 3.174 0 6.221-1.775 7.688-4.83 2.048-4.241.265-9.344-3.976-11.392zM384 443.733c-18.825 0-34.133 15.309-34.133 34.133S365.175 512 384 512c18.825 0 34.133-15.309 34.133-34.133S402.825 443.733 384 443.733zm0 51.2c-9.412 0-17.067-7.654-17.067-17.067S374.588 460.8 384 460.8c9.412 0 17.067 7.654 17.067 17.067s-7.655 17.066-17.067 17.066z"/><path d="m367.454 454.52-73.617-35.541c-4.25-2.057-9.344-.273-11.392 3.977-2.048 4.241-.265 9.344 3.977 11.392l73.617 35.541c1.195.58 2.458.853 3.703.853 3.174 0 6.221-1.775 7.689-4.83 2.047-4.242.264-9.344-3.977-11.392zM256 230.4c-18.825 0-34.133 15.309-34.133 34.133 0 18.825 15.309 34.133 34.133 34.133 18.825 0 34.133-15.309 34.133-34.133 0-18.824-15.308-34.133-34.133-34.133zm0 51.2c-9.412 0-17.067-7.654-17.067-17.067 0-9.412 7.654-17.067 17.067-17.067 9.412 0 17.067 7.654 17.067 17.067S265.412 281.6 256 281.6z"/><path d="m240.998 242.142-56.55-44.075c-3.721-2.876-9.079-2.236-11.981 1.485-2.893 3.721-2.236 9.079 1.485 11.981l56.55 44.075c1.562 1.212 3.405 1.801 5.24 1.801 2.543 0 5.052-1.126 6.741-3.285 2.893-3.722 2.236-9.081-1.485-11.982zM409.6 221.867c-51.755 0-93.867 42.112-93.867 93.867s42.112 93.867 93.867 93.867 93.867-42.112 93.867-93.867-42.112-93.867-93.867-93.867zm0 170.666c-42.351 0-76.8-34.449-76.8-76.8s34.449-76.8 76.8-76.8 76.8 34.449 76.8 76.8-34.449 76.8-76.8 76.8z"/><path d="M409.6 256c-18.825 0-34.133 15.309-34.133 34.133 0 18.825 15.309 34.133 34.133 34.133 18.825 0 34.133-15.309 34.133-34.133S428.425 256 409.6 256zm0 51.2c-9.412 0-17.067-7.654-17.067-17.067 0-9.412 7.654-17.067 17.067-17.067 9.412 0 17.067 7.654 17.067 17.067S419.012 307.2 409.6 307.2zM434.355 341.333h-49.51c-14.583 0-26.445 11.546-26.445 25.728v22.494c0 3.046 1.621 5.862 4.258 7.39C376.96 405.222 393.19 409.6 409.6 409.6s32.64-4.378 46.942-12.655c2.637-1.519 4.258-4.344 4.258-7.381V367.07c0-14.191-11.861-25.737-26.445-25.737zm9.378 43.136c-21.239 10.581-47.027 10.581-68.267 0V367.07c0-4.779 4.207-8.67 9.378-8.67h49.51c5.171 0 9.378 3.891 9.378 8.67v17.399zM204.8 324.267c-51.755 0-93.867 42.112-93.867 93.867S153.045 512 204.8 512s93.867-42.112 93.867-93.867-42.112-93.866-93.867-93.866zm0 170.666c-42.351 0-76.8-34.449-76.8-76.8s34.449-76.8 76.8-76.8 76.8 34.449 76.8 76.8-34.449 76.8-76.8 76.8z"/><path d="M204.8 358.4c-18.825 0-34.133 15.309-34.133 34.133 0 18.825 15.309 34.133 34.133 34.133s34.133-15.309 34.133-34.133c0-18.824-15.308-34.133-34.133-34.133zm0 51.2c-9.412 0-17.067-7.654-17.067-17.067 0-9.412 7.654-17.067 17.067-17.067 9.412 0 17.067 7.654 17.067 17.067S214.212 409.6 204.8 409.6zM229.555 443.733h-49.51c-14.583 0-26.445 11.546-26.445 25.728v22.494c0 3.046 1.621 5.862 4.258 7.39C172.16 507.622 188.39 512 204.8 512s32.64-4.378 46.942-12.655c2.637-1.519 4.258-4.343 4.258-7.381V469.47c0-14.191-11.861-25.737-26.445-25.737zm9.378 43.136c-21.24 10.581-47.027 10.581-68.267 0V469.47c0-4.779 4.207-8.67 9.378-8.67h49.51c5.171 0 9.378 3.891 9.378 8.67v17.399zM93.867 110.933C42.112 110.933 0 153.045 0 204.8s42.112 93.867 93.867 93.867 93.867-42.112 93.867-93.867c-.001-51.755-42.113-93.867-93.867-93.867zm0 170.667c-42.351 0-76.8-34.449-76.8-76.8s34.449-76.8 76.8-76.8 76.8 34.449 76.8 76.8-34.449 76.8-76.8 76.8z"/><path d="M93.867 145.067c-18.825 0-34.133 15.309-34.133 34.133s15.309 34.133 34.133 34.133c18.825 0 34.133-15.309 34.133-34.133s-15.309-34.133-34.133-34.133zm0 51.2c-9.412 0-17.067-7.654-17.067-17.067s7.654-17.067 17.067-17.067c9.412 0 17.067 7.654 17.067 17.067s-7.655 17.067-17.067 17.067zM118.622 230.4h-49.51c-14.583 0-26.445 11.546-26.445 25.728v22.494c0 3.046 1.621 5.862 4.258 7.39 14.302 8.277 30.532 12.655 46.942 12.655s32.64-4.378 46.942-12.655c2.637-1.519 4.258-4.344 4.258-7.381v-22.494c0-14.191-11.862-25.737-26.445-25.737zM128 273.536c-21.239 10.581-47.027 10.581-68.267 0v-17.399c0-4.779 4.207-8.67 9.378-8.67h49.51c5.171 0 9.378 3.891 9.378 8.67v17.399zM298.667 0C246.912 0 204.8 42.112 204.8 93.867s42.112 93.867 93.867 93.867 93.867-42.112 93.867-93.867C392.533 42.112 350.421 0 298.667 0zm0 170.667c-42.351 0-76.8-34.449-76.8-76.8s34.449-76.8 76.8-76.8 76.8 34.449 76.8 76.8-34.449 76.8-76.8 76.8z"/><path d="M298.667 34.133c-18.825 0-34.133 15.309-34.133 34.133s15.309 34.133 34.133 34.133S332.8 87.091 332.8 68.267s-15.309-34.134-34.133-34.134zm0 51.2c-9.412 0-17.067-7.654-17.067-17.067 0-9.412 7.654-17.067 17.067-17.067s17.067 7.654 17.067 17.067c-.001 9.413-7.655 17.067-17.067 17.067zM323.422 119.467h-49.51c-14.583 0-26.445 11.546-26.445 25.728v22.494c0 3.046 1.621 5.862 4.258 7.39 14.302 8.277 30.532 12.655 46.942 12.655s32.64-4.378 46.942-12.655c2.637-1.519 4.258-4.344 4.258-7.381v-22.494c0-14.192-11.862-25.737-26.445-25.737zm9.378 43.136c-21.239 10.581-47.027 10.581-68.267 0v-17.399c0-4.779 4.207-8.67 9.378-8.67h49.51c5.171 0 9.378 3.891 9.378 8.67v17.399zM219.827 88.311c-3.063-3.567-8.448-3.994-12.032-.93l-59.136 50.603c-3.584 3.063-4.002 8.448-.939 12.032 1.69 1.971 4.079 2.987 6.485 2.987 1.963 0 3.934-.674 5.547-2.057l59.136-50.603c3.585-3.063 4.003-8.448.939-12.032z"/><path d="m407.893 225.289-51.2-68.267c-2.825-3.78-8.175-4.523-11.947-1.707-3.772 2.825-4.531 8.175-1.707 11.938l51.2 68.267c1.681 2.236 4.241 3.413 6.835 3.413 1.775 0 3.576-.555 5.112-1.707 3.772-2.824 4.532-8.174 1.707-11.937zM337.86 343.953c-2.825-3.772-8.175-4.531-11.947-1.707l-47.667 35.746c-3.772 2.825-4.531 8.175-1.707 11.938 1.681 2.236 4.241 3.413 6.835 3.413 1.783 0 3.575-.563 5.112-1.707l47.667-35.746c3.772-2.823 4.532-8.174 1.707-11.937zM119.467 409.6H59.733c-4.71 0-8.533 3.814-8.533 8.533s3.823 8.533 8.533 8.533h59.733c4.71 0 8.533-3.814 8.533-8.533s-3.822-8.533-8.532-8.533zM93.867 0C75.042 0 59.733 15.309 59.733 34.133c0 18.825 15.309 34.133 34.133 34.133 18.825 0 34.133-15.309 34.133-34.133C128 15.309 112.691 0 93.867 0zm0 51.2c-9.412 0-17.067-7.654-17.067-17.067 0-9.412 7.654-17.067 17.067-17.067 9.412 0 17.067 7.654 17.067 17.067-.001 9.413-7.655 17.067-17.067 17.067z"/><path d="M93.867 51.2c-4.71 0-8.533 3.814-8.533 8.533v59.733c0 4.719 3.823 8.533 8.533 8.533 4.71 0 8.533-3.814 8.533-8.533V59.733c0-4.719-3.823-8.533-8.533-8.533z"/></svg>
@@ -1,22 +1,40 @@
1
1
  caluma:
2
2
  distribution:
3
+ empty: "Es wurden noch keine Anfragen erstellt."
4
+ start: "Starten"
5
+ send: "Offene Anfragen versenden"
6
+ send-confirm: "Wollen Sie wirklich alle offenen Anfragen versenden?"
7
+ complete-confirm:
8
+ "Es gibt noch <b>{count} offene {count, plural, =1 {Anfrage} other {Anfragen}}</b>
9
+ in der aktuellen Zirkulation. Wenn Sie die Zirkulation abschliessen, werden
10
+ alle verbleibenden offenen Anfragen abgebrochen. Möchten Sie fortfahren?"
11
+ send-error: "Fehler beim Versenden der offenen Anfragen"
12
+ complete-error: "Fehler beim Abschliessen der Zirkulation"
13
+
14
+ more: "mehr"
15
+ less: "weniger"
16
+
17
+ last-modified: "Zuletzt bearbeitet von {user} am {date} um {time}"
18
+ details: "Details"
19
+ not-allowed-hint:
20
+ "Sie können jedoch das Formular bearbeiten und die Eingabedaten werden
21
+ automatisch gespeichert."
22
+
3
23
  edit:
4
- title: "Anfrage bearbeiten"
5
24
  link: "Bearbeiten"
6
-
7
25
  send: "Senden"
8
26
  send-error: "Fehler beim Senden der Anfrage"
27
+ send-not-allowed: "Sie sind nicht berechtigt diese Anfrage zu versenden."
9
28
 
10
29
  answer:
11
- title: "Anfrage beantworten"
12
30
  link: "Beantworten"
13
-
14
31
  release-for-review: "Zur Kontrolle freigeben"
15
32
  release-adjustment-for-review: "Anpassung zur Kontrolle freigeben"
16
33
  confirm: "Bestätigen"
17
34
  revise: "Überarbeiten"
18
35
 
19
36
  complete-error: "Fehler beim Abschliessen der Aufgabe"
37
+ complete-not-allowed: "Sie sind nicht berechtigt diese Antwort zu versenden."
20
38
 
21
39
  new:
22
40
  title: "Neue Anfrage"
@@ -40,3 +58,15 @@ caluma:
40
58
  positive: "Positiv"
41
59
  negative: "Negativ"
42
60
  needs-interaction: "Aktion erforderlich"
61
+
62
+ notfound:
63
+ title: "404"
64
+ subtitle: "Seite nicht gefunden!"
65
+ back: "Zurück zur"
66
+ link: "Startseite"
67
+
68
+ withdraw:
69
+ link: "Zurückziehen"
70
+ confirm: "Wollen Sie die Anfrage wirklich zurückziehen?"
71
+ error: "Fehler beim Zurückziehen der Anfrage"
72
+ status: "Zurückgezogen"
@@ -1,22 +1,41 @@
1
1
  caluma:
2
2
  distribution:
3
+ empty: "No inquiries have been created yet."
4
+ start: "Start"
5
+ send: "Send pending inquiries"
6
+ send-confirm: "Do you really want to send all pending inquiries?"
7
+ complete-confirm:
8
+ "There {count, plural, =1 {is} other {are}} <b>{count} pending
9
+ {count, plural, =1 {inquiry} other {inquiries}}</b> on the current
10
+ distribution. Completing the distribution will cause all remaining
11
+ pending inquiries to be canceled. Would you like to continue?"
12
+ send-error: "Error while sending pending inquiries"
13
+ complete-error: "Error while completing distribution"
14
+
15
+ more: "more"
16
+ less: "less"
17
+
18
+ last-modified: "Last modified by {user} on {date} at {time}"
19
+ details: "Details"
20
+ not-allowed-hint:
21
+ "However, you can edit the form and the input will be saved
22
+ automatically."
23
+
3
24
  edit:
4
- title: "Edit inquiry"
5
25
  link: "Edit"
6
-
7
26
  send: "Send"
8
27
  send-error: "Error while sending the inquiry"
28
+ send-not-allowed: "You are not allowed to send this inquiry."
9
29
 
10
30
  answer:
11
- title: "Answer inquiry"
12
31
  link: "Answer"
13
-
14
32
  release-for-review: "Release for review"
15
33
  release-adjustment-for-review: "Release adjustment for review"
16
34
  confirm: "Confirm"
17
35
  revise: "Revise"
18
36
 
19
37
  complete-error: "Error while completing the work item"
38
+ complete-not-allowed: "You are not allowed to send this inquiry answer."
20
39
 
21
40
  new:
22
41
  title: "New inquiry"
@@ -40,3 +59,15 @@ caluma:
40
59
  positive: "Positive"
41
60
  negative: "Negative"
42
61
  needs-interaction: "Needs interaction"
62
+
63
+ notfound:
64
+ title: "404"
65
+ subtitle: "Page not found!"
66
+ back: "Go back to the"
67
+ link: "landing page"
68
+
69
+ withdraw:
70
+ link: "Withdraw"
71
+ confirm: "Do you really want to withdraw the inquiry?"
72
+ error: "Error while withdrawing the inquiry"
73
+ status: "Withdrawn"
@@ -1,22 +1,40 @@
1
1
  caluma:
2
2
  distribution:
3
+ empty: "Aucune demande n'a encore été créée."
4
+ start: "Lancer"
5
+ send: "Envoyer les demandes ouvertes"
6
+ send-confirm: "Voulez-vous vraiment envoyer toutes les demandes ouvertes ?"
7
+ complete-confirm:
8
+ "Il y a <b>{count} {count, plural, =1 {demande} other {demandes}} en
9
+ attente</b> sur la distribution actuelle. Si vous terminez la distribution,
10
+ toutes les demandes en attente seront annulées. Voulez-vous continuer ?"
11
+ send-error: "Erreur lors de l'envoi des demandes ouvertes"
12
+ complete-error: "Erreur lors de la terminaison de la distribution"
13
+
14
+ more: "plus"
15
+ less: "moins"
16
+
17
+ last-modified: "Dernière modification par {user} le {date} à {time}"
18
+ details: "Détails"
19
+ not-allowed-hint:
20
+ "Vous pouvez toutefois modifier le formulaire et les données seront
21
+ automatiquement enregistrées."
22
+
3
23
  edit:
4
- title: "Modifier la demande"
5
24
  link: "Modifier"
6
-
7
25
  send: "Envoyer"
8
26
  send-error: "Erreur lors de l'envoi de la demande"
27
+ send-not-allowed: "Vous n'êtes pas autorisé à envoyer cette demande."
9
28
 
10
29
  answer:
11
- title: "Répondre à la demande"
12
30
  link: "Répondre"
13
-
14
31
  release-for-review: "Valider pour vérification"
15
32
  release-adjustment-for-review: "Valider la révision pour vérification"
16
33
  confirm: "Confirmer"
17
34
  revise: "Réviser"
18
35
 
19
36
  complete-error: "Erreur lors de la clôture de la tâche"
37
+ complete-not-allowed: "Vous n'êtes pas autorisé à envoyer cette réponse."
20
38
 
21
39
  new:
22
40
  title: "Nouvelle demande"
@@ -40,3 +58,15 @@ caluma:
40
58
  positive: "Positif"
41
59
  negative: "Negatif"
42
60
  needs-interaction: "Action nécessaire"
61
+
62
+ notfound:
63
+ title: "404"
64
+ subtitle: "Page non trouvée !"
65
+ back: "Retour à"
66
+ link: "la page d'accueil"
67
+
68
+ withdraw:
69
+ link: "Retirer"
70
+ confirm: "Voulez-vous vraiment retirer la demande ?"
71
+ error: "Erreur lors du retrait de la demande"
72
+ status: "Retirée"
@@ -1,21 +0,0 @@
1
- <div class="uk-text-center uk-margin-small-top">
2
- {{#if this.canCreate}}
3
- <IconButton @route="distribution.new" @icon="plus" />
4
- {{/if}}
5
- <IconButton
6
- @icon="paper-plane-outline"
7
- @fromSvgJar={{true}}
8
- @gutterTop={{4}}
9
- @gutterRight={{6}}
10
- @gutterLeft={{4}}
11
- @gutterBottom={{4}}
12
- @onClick={{this.noop}}
13
- />
14
- {{#if this.canComplete}}
15
- <IconButton
16
- @icon="lock-closed-outline"
17
- @fromSvgJar={{true}}
18
- @onClick={{this.noop}}
19
- />
20
- {{/if}}
21
- </div>
@@ -1,45 +0,0 @@
1
- import { action } from "@ember/object";
2
- import { inject as service } from "@ember/service";
3
- import Component from "@glimmer/component";
4
- import { queryManager } from "ember-apollo-client";
5
- import { dropTask } from "ember-concurrency";
6
- import { useTask } from "ember-resources";
7
-
8
- import config from "@projectcaluma/ember-distribution/config";
9
- import controlWorkItemsQuery from "@projectcaluma/ember-distribution/gql/queries/control-work-items.graphql";
10
-
11
- export default class DistributionNavigationControlsComponent extends Component {
12
- @service calumaOptions;
13
-
14
- @queryManager apollo;
15
-
16
- @config config;
17
-
18
- workItems = useTask(this, this.fetchWorkItems, () => []);
19
-
20
- get canCreate() {
21
- return this.workItems.value?.create.edges.length > 0;
22
- }
23
-
24
- get canComplete() {
25
- return this.workItems.value?.complete.edges.length > 0;
26
- }
27
-
28
- @action
29
- noop(e) {
30
- e.preventDefault();
31
- }
32
-
33
- @dropTask
34
- *fetchWorkItems() {
35
- return yield this.apollo.watchQuery({
36
- query: controlWorkItemsQuery,
37
- variables: {
38
- caseId: this.args.caseId,
39
- currentGroup: String(this.calumaOptions.currentGroupId),
40
- createTask: this.config.controls.createTask,
41
- completeTask: this.config.controls.completeTask,
42
- },
43
- });
44
- }
45
- }
@@ -1,18 +0,0 @@
1
- <li class={{if this.isActive "uk-active"}}>
2
- <LinkTo @route="distribution.inquiry" @model={{this.model}}>
3
- <div class="uk-flex uk-flex-middle uk-width-1-1">
4
- <div class="uk-width-expand uk-text-truncate">
5
- {{#if (eq @type "addressed")}}
6
- {{group-name @inquiry.controllingGroups}}
7
- {{else}}
8
- {{group-name @inquiry.addressedGroups}}
9
- {{/if}}
10
- </div>
11
-
12
- <DistributionNavigation::StatusIndicator
13
- @inquiry={{@inquiry}}
14
- @type={{@type}}
15
- />
16
- </div>
17
- </LinkTo>
18
- </li>
@@ -1,17 +0,0 @@
1
- <aside>
2
- <ul class="uk-tab uk-tab-left">
3
- <DistributionNavigation::Section
4
- @type="controlling"
5
- @inquiries={{this.inquiries.controlling}}
6
- @caseId={{@caseId}}
7
- />
8
- <DistributionNavigation::Section
9
- @type="addressed"
10
- @inquiries={{this.inquiries.addressed}}
11
- />
12
- <DistributionNavigation::Section
13
- @type="more"
14
- @inquiries={{this.inquiries.more}}
15
- />
16
- </ul>
17
- </aside>