@projectcaluma/ember-distribution 13.0.2 → 13.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,4 @@
1
1
  import { inject as service } from "@ember/service";
2
- import { waitForPromise } from "@ember/test-waiters";
3
2
  import Component from "@glimmer/component";
4
3
  import { queryManager, getObservable } from "ember-apollo-client";
5
4
  import { dropTask } from "ember-concurrency";
@@ -85,7 +84,7 @@ export default class CdInquiryDialogComponent extends Component {
85
84
 
86
85
  yield this.distribution.createInquiry.perform([this.args.to]);
87
86
 
88
- yield waitForPromise(getObservable(this._inquiries.value).refetch());
87
+ yield getObservable(this._inquiries.value).refetch();
89
88
 
90
89
  this.router.transitionTo(
91
90
  "inquiry.detail.index",
@@ -4,6 +4,7 @@
4
4
  (can "create inquiry of distribution")
5
5
  (can "complete distribution")
6
6
  (can "reopen distribution")
7
+ (can "check inquiries of distribution")
7
8
  )
8
9
  }}
9
10
  {{#if @useButtons}}
@@ -1,5 +1,4 @@
1
1
  import Service, { inject as service } from "@ember/service";
2
- import { waitForPromise } from "@ember/test-waiters";
3
2
  import { tracked } from "@glimmer/tracking";
4
3
  import { queryManager, getObservable } from "ember-apollo-client";
5
4
  import { dropTask } from "ember-concurrency";
@@ -45,15 +44,11 @@ export default class DistributionService extends Service {
45
44
  }
46
45
 
47
46
  async refetchNavigation() {
48
- await waitForPromise(
49
- getObservable(this.navigation.value)?.refetch() ?? Promise.resolve(),
50
- );
47
+ await getObservable(this.navigation.value)?.refetch();
51
48
  }
52
49
 
53
50
  async refetchControls() {
54
- await waitForPromise(
55
- getObservable(this.controls.value)?.refetch() ?? Promise.resolve(),
56
- );
51
+ await getObservable(this.controls.value)?.refetch();
57
52
  }
58
53
 
59
54
  @dropTask
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-distribution",
3
- "version": "13.0.2",
3
+ "version": "13.1.1",
4
4
  "description": "Ember engine for the Caluma distribution module.",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -10,23 +10,23 @@
10
10
  "homepage": "https://docs.caluma.io/ember-caluma",
11
11
  "repository": "github:projectcaluma/ember-caluma",
12
12
  "dependencies": {
13
- "@babel/core": "^7.25.2",
13
+ "@babel/core": "^7.25.7",
14
14
  "@ember/legacy-built-in-components": "^0.5.0",
15
15
  "@ember/string": "^4.0.0",
16
- "@embroider/macros": "^1.16.5",
16
+ "@embroider/macros": "^1.16.6",
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.4",
21
- "ember-can": "^5.0.4",
20
+ "ember-auto-import": "^2.8.1",
21
+ "ember-can": "^6.0.0",
22
22
  "ember-cli-babel": "^8.2.0",
23
23
  "ember-cli-htmlbars": "^6.3.0",
24
24
  "ember-concurrency": "^4.0.2",
25
25
  "ember-engines-router-service": "^0.6.0",
26
26
  "ember-fetch": "^8.1.2",
27
- "ember-flatpickr": "^8.0.0",
28
- "ember-intl": "^7.0.4",
29
- "ember-svg-jar": "^2.4.9",
27
+ "ember-flatpickr": "^8.0.1",
28
+ "ember-intl": "^7.0.5",
29
+ "ember-svg-jar": "^2.6.0",
30
30
  "ember-test-selectors": "^7.0.0",
31
31
  "ember-uikit": "^9.1.2",
32
32
  "flatpickr": "^4.6.13",
@@ -36,22 +36,22 @@
36
36
  "luxon": "^3.5.0",
37
37
  "reactiveweb": "^1.3.0",
38
38
  "tracked-toolbox": "^2.0.0",
39
- "@projectcaluma/ember-core": "^13.0.2",
40
- "@projectcaluma/ember-form": "^13.0.2",
41
- "@projectcaluma/ember-workflow": "^13.0.2"
39
+ "@projectcaluma/ember-form": "^13.1.1",
40
+ "@projectcaluma/ember-core": "^13.1.1",
41
+ "@projectcaluma/ember-workflow": "^13.1.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@ember/optional-features": "2.1.0",
45
45
  "@ember/test-helpers": "3.3.1",
46
46
  "@embroider/test-setup": "4.0.0",
47
- "@faker-js/faker": "8.4.1",
47
+ "@faker-js/faker": "9.0.3",
48
48
  "broccoli-asset-rev": "3.0.0",
49
- "ember-cli": "5.10.0",
49
+ "ember-cli": "5.11.0",
50
50
  "ember-cli-clean-css": "3.0.0",
51
- "ember-cli-code-coverage": "3.0.0",
51
+ "ember-cli-code-coverage": "3.1.0",
52
52
  "ember-cli-dependency-checker": "3.3.2",
53
53
  "ember-cli-inject-live-reload": "2.1.0",
54
- "ember-cli-mirage": "3.0.3",
54
+ "ember-cli-mirage": "3.0.4",
55
55
  "ember-cli-sass": "11.0.1",
56
56
  "ember-cli-sri": "2.1.1",
57
57
  "ember-cli-terser": "4.0.2",
@@ -59,17 +59,17 @@
59
59
  "ember-load-initializers": "2.1.2",
60
60
  "ember-qunit": "8.1.0",
61
61
  "ember-resolver": "12.0.1",
62
- "ember-source": "5.10.1",
62
+ "ember-source": "5.11.0",
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.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.2"
67
+ "qunit": "2.22.0",
68
+ "qunit-dom": "3.2.1",
69
+ "sass": "1.79.4",
70
+ "uikit": "3.21.13",
71
+ "webpack": "5.95.0",
72
+ "@projectcaluma/ember-testing": "13.1.1"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "ember-engines": "^0.11.0",
@@ -5,17 +5,17 @@ caluma:
5
5
  start: "Avvia circolazione"
6
6
  send: "Invia richieste in corso"
7
7
  complete: "Concludi circolazione"
8
- skip: "Tralascia circolazione"
8
+ skip: "Ignora circolazione"
9
9
  reopen: "Riavvia circolazione"
10
10
  check-inquiries: "Segna le prese di posizione come verificate"
11
11
  send-confirm: "Inviare davvero <b>{count, plural, =1 {una richiesta in corso} other {{count} richieste in corso}}</b>?"
12
12
  complete-confirm: "Nella circolazione attuale <b>{count, plural, =1 {vi è una richiesta in corso} other {vi sono {count} richieste in corso}}</b. Concludendo la circolazione vengono interrotte tutte le rimanenti richieste in corso. Desidera continuare?"
13
13
  complete-confirm-empty: "Concludere davvero la circolazione?"
14
- skip-confirm: "Desidera davvero tralasciare la circolazione?"
14
+ skip-confirm: "Desidera davvero ignorare la circolazione?"
15
15
  reopen-confirm: "Desidera davvero riaprire la circolazione?"
16
16
  send-error: "Errore nel tentativo di inviare le richieste in corso"
17
17
  complete-error: "Errore nel tentativo di concludere la circolazione"
18
- skip-error: "Errore nel tentativo di tralasciare la circolazione"
18
+ skip-error: "Errore nel tentativo di ignorare la circolazione"
19
19
  reopen-error: "Errore nel tentativo di riaprire la circolazione"
20
20
  check-inquiries-error: "Errore nel tentativo di segnare le prese di posizione come verificate"
21
21