@projectcaluma/ember-distribution 12.15.5 → 13.0.0

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/components/cd-inquiry-dialog.js +2 -1
  2. package/addon/services/distribution.js +7 -2
  3. package/app/styles/_inquiry-divider.scss +1 -0
  4. package/package.json +29 -29
  5. package/app/abilities/distribution.js +0 -1
  6. package/app/abilities/inquiry.js +0 -1
  7. package/app/components/cd-document-header.js +0 -1
  8. package/app/components/cd-inquiry-answer-form.js +0 -1
  9. package/app/components/cd-inquiry-dialog/inquiry-deadline.js +0 -1
  10. package/app/components/cd-inquiry-dialog/inquiry-divider.js +0 -1
  11. package/app/components/cd-inquiry-dialog/inquiry-part.js +0 -1
  12. package/app/components/cd-inquiry-dialog/inquiry.js +0 -1
  13. package/app/components/cd-inquiry-dialog.js +0 -1
  14. package/app/components/cd-inquiry-edit-form.js +0 -1
  15. package/app/components/cd-inquiry-new-form/bulk-edit.js +0 -1
  16. package/app/components/cd-inquiry-new-form/group-type.js +0 -1
  17. package/app/components/cd-inquiry-new-form/group.js +0 -1
  18. package/app/components/cd-inquiry-new-form/select.js +0 -1
  19. package/app/components/cd-inquiry-new-form.js +0 -1
  20. package/app/components/cd-navigation/controls.js +0 -1
  21. package/app/components/cd-navigation/item.js +0 -1
  22. package/app/components/cd-navigation/section.js +0 -1
  23. package/app/components/cd-navigation/status-indicator.js +0 -1
  24. package/app/components/cd-navigation.js +0 -1
  25. package/app/components/cd-notfound.js +0 -1
  26. package/app/components/cd-truncated.js +0 -1
  27. package/app/services/distribution.js +0 -1
  28. package/app/utils/inquiry-answer-status.js +0 -1
  29. package/app/utils/inquiry-deadline.js +0 -1
  30. package/app/utils/inquiry-status.js +0 -1
  31. package/app/utils/unique-by-groups.js +0 -1
  32. package/tsconfig.declarations.json +0 -10
@@ -1,4 +1,5 @@
1
1
  import { inject as service } from "@ember/service";
2
+ import { waitForPromise } from "@ember/test-waiters";
2
3
  import Component from "@glimmer/component";
3
4
  import { queryManager, getObservable } from "ember-apollo-client";
4
5
  import { dropTask } from "ember-concurrency";
@@ -84,7 +85,7 @@ export default class CdInquiryDialogComponent extends Component {
84
85
 
85
86
  yield this.distribution.createInquiry.perform([this.args.to]);
86
87
 
87
- yield getObservable(this._inquiries.value).refetch();
88
+ yield waitForPromise(getObservable(this._inquiries.value).refetch());
88
89
 
89
90
  this.router.transitionTo(
90
91
  "inquiry.detail.index",
@@ -1,4 +1,5 @@
1
1
  import Service, { inject as service } from "@ember/service";
2
+ import { waitForPromise } from "@ember/test-waiters";
2
3
  import { tracked } from "@glimmer/tracking";
3
4
  import { queryManager, getObservable } from "ember-apollo-client";
4
5
  import { dropTask } from "ember-concurrency";
@@ -44,11 +45,15 @@ export default class DistributionService extends Service {
44
45
  }
45
46
 
46
47
  async refetchNavigation() {
47
- await getObservable(this.navigation.value)?.refetch();
48
+ await waitForPromise(
49
+ getObservable(this.navigation.value)?.refetch() ?? Promise.resolve(),
50
+ );
48
51
  }
49
52
 
50
53
  async refetchControls() {
51
- await getObservable(this.controls.value)?.refetch();
54
+ await waitForPromise(
55
+ getObservable(this.controls.value)?.refetch() ?? Promise.resolve(),
56
+ );
52
57
  }
53
58
 
54
59
  @dropTask
@@ -40,6 +40,7 @@ $colors: (
40
40
  border-color: $color;
41
41
  }
42
42
 
43
+ // stylelint-disable-next-line no-duplicate-selectors
43
44
  &::before,
44
45
  &::after {
45
46
  background-color: $color;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-distribution",
3
- "version": "12.15.5",
3
+ "version": "13.0.0",
4
4
  "description": "Ember engine for the Caluma distribution module.",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -10,43 +10,43 @@
10
10
  "homepage": "https://docs.caluma.io/ember-caluma",
11
11
  "repository": "github:projectcaluma/ember-caluma",
12
12
  "dependencies": {
13
- "@babel/core": "^7.24.7",
13
+ "@babel/core": "^7.25.2",
14
14
  "@ember/legacy-built-in-components": "^0.5.0",
15
- "@ember/string": "^3.1.1",
16
- "@embroider/macros": "^1.15.0",
15
+ "@ember/string": "^4.0.0",
16
+ "@embroider/macros": "^1.16.5",
17
17
  "@glimmer/component": "^1.1.2",
18
18
  "@glimmer/tracking": "^1.1.2",
19
19
  "ember-apollo-client": "~4.0.2",
20
- "ember-auto-import": "^2.7.2",
21
- "ember-can": "^4.2.0",
20
+ "ember-auto-import": "^2.7.4",
21
+ "ember-can": "^5.0.4",
22
22
  "ember-cli-babel": "^8.2.0",
23
23
  "ember-cli-htmlbars": "^6.3.0",
24
24
  "ember-concurrency": "^4.0.2",
25
- "ember-engines-router-service": "^0.5.1",
25
+ "ember-engines-router-service": "^0.6.0",
26
26
  "ember-fetch": "^8.1.2",
27
27
  "ember-flatpickr": "^8.0.0",
28
- "ember-intl": "^6.5.3",
28
+ "ember-intl": "^7.0.4",
29
29
  "ember-svg-jar": "^2.4.9",
30
- "ember-test-selectors": "^6.0.0",
30
+ "ember-test-selectors": "^7.0.0",
31
31
  "ember-uikit": "^9.1.2",
32
32
  "flatpickr": "^4.6.13",
33
- "graphql": "^15.8.0",
33
+ "graphql": "^15.9.0",
34
34
  "graphql-tag": "^2.12.6",
35
35
  "lodash.merge": "^4.6.2",
36
- "luxon": "^3.4.4",
37
- "reactiveweb": "^1.2.3",
36
+ "luxon": "^3.5.0",
37
+ "reactiveweb": "^1.3.0",
38
38
  "tracked-toolbox": "^2.0.0",
39
- "@projectcaluma/ember-workflow": "^12.15.5",
40
- "@projectcaluma/ember-form": "^12.15.5",
41
- "@projectcaluma/ember-core": "^12.15.5"
39
+ "@projectcaluma/ember-form": "^13.0.0",
40
+ "@projectcaluma/ember-workflow": "^13.0.0",
41
+ "@projectcaluma/ember-core": "^13.0.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@ember/optional-features": "2.1.0",
45
- "@ember/test-helpers": "3.3.0",
45
+ "@ember/test-helpers": "3.3.1",
46
46
  "@embroider/test-setup": "4.0.0",
47
47
  "@faker-js/faker": "8.4.1",
48
48
  "broccoli-asset-rev": "3.0.0",
49
- "ember-cli": "5.7.0",
49
+ "ember-cli": "5.10.0",
50
50
  "ember-cli-clean-css": "3.0.0",
51
51
  "ember-cli-code-coverage": "3.0.0",
52
52
  "ember-cli-dependency-checker": "3.3.2",
@@ -55,25 +55,25 @@
55
55
  "ember-cli-sass": "11.0.1",
56
56
  "ember-cli-sri": "2.1.1",
57
57
  "ember-cli-terser": "4.0.2",
58
- "ember-engines": "0.9.0",
58
+ "ember-engines": "0.11.0",
59
59
  "ember-load-initializers": "2.1.2",
60
- "ember-qunit": "8.0.2",
61
- "ember-resolver": "11.0.1",
62
- "ember-source": "5.7.0",
60
+ "ember-qunit": "8.1.0",
61
+ "ember-resolver": "12.0.1",
62
+ "ember-source": "5.10.1",
63
63
  "ember-source-channel-url": "3.0.0",
64
64
  "ember-try": "3.0.0",
65
65
  "loader.js": "4.7.0",
66
66
  "miragejs": "0.1.48",
67
- "qunit": "2.20.1",
68
- "qunit-dom": "3.1.2",
69
- "sass": "1.75.0",
70
- "uikit": "3.21.5",
71
- "webpack": "5.91.0",
72
- "@projectcaluma/ember-testing": "12.15.5"
67
+ "qunit": "2.21.1",
68
+ "qunit-dom": "3.2.0",
69
+ "sass": "1.77.8",
70
+ "uikit": "3.21.9",
71
+ "webpack": "5.93.0",
72
+ "@projectcaluma/ember-testing": "13.0.0"
73
73
  },
74
74
  "peerDependencies": {
75
- "ember-engines": "^0.9.0",
76
- "ember-source": "^4.0.0"
75
+ "ember-engines": "^0.11.0",
76
+ "ember-source": ">= 4.0.0"
77
77
  },
78
78
  "dependenciesMeta": {
79
79
  "@projectcaluma/ember-core": {
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/abilities/distribution";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/abilities/inquiry";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-document-header";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-answer-form";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-dialog/inquiry-deadline";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-dialog/inquiry-divider";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-dialog/inquiry-part";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-dialog/inquiry";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-dialog";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-edit-form";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-new-form/bulk-edit";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-new-form/group-type";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-new-form/group";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-new-form/select";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-inquiry-new-form";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-navigation/controls";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-navigation/item";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-navigation/section";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-navigation/status-indicator";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-navigation";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-notfound";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/components/cd-truncated";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/services/distribution";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/utils/inquiry-answer-status";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/utils/inquiry-deadline";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/utils/inquiry-status";
@@ -1 +0,0 @@
1
- export { default } from "@projectcaluma/ember-distribution/utils/unique-by-groups";
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "declarationDir": "declarations",
5
- "emitDeclarationOnly": true,
6
- "noEmit": false,
7
- "rootDir": "."
8
- },
9
- "include": ["addon", "addon-test-support"]
10
- }