@projectcaluma/ember-distribution 14.1.0 → 14.2.0
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/addon/components/cd-inquiry-answer-form.js +1 -1
- package/addon/components/cd-inquiry-dialog/inquiry-part.js +3 -3
- package/addon/components/cd-inquiry-edit-form.js +1 -1
- package/addon/components/cd-inquiry-new-form/bulk-edit.js +6 -4
- package/addon/components/cd-navigation/controls.js +3 -3
- package/addon/services/distribution.js +2 -2
- package/index.js +0 -1
- package/package.json +13 -13
@@ -105,7 +105,7 @@ export default class CdInquiryAnswerFormComponent extends Component {
|
|
105
105
|
});
|
106
106
|
|
107
107
|
yield this.router.transitionTo("inquiry.index");
|
108
|
-
} catch
|
108
|
+
} catch {
|
109
109
|
this.notification.danger(
|
110
110
|
this.intl.t("caluma.distribution.answer.complete-error"),
|
111
111
|
);
|
@@ -97,7 +97,7 @@ export default class CdInquiryDialogInquiryPartComponent extends Component {
|
|
97
97
|
workItem: decodeId(this.args.inquiry.id),
|
98
98
|
},
|
99
99
|
});
|
100
|
-
} catch
|
100
|
+
} catch {
|
101
101
|
this.notification.danger(
|
102
102
|
this.intl.t("caluma.distribution.withdraw.error"),
|
103
103
|
);
|
@@ -126,7 +126,7 @@ export default class CdInquiryDialogInquiryPartComponent extends Component {
|
|
126
126
|
buttonTasks: Object.keys(this.config.inquiry.answer.buttons),
|
127
127
|
},
|
128
128
|
});
|
129
|
-
} catch
|
129
|
+
} catch {
|
130
130
|
this.notification.danger(
|
131
131
|
this.intl.t("caluma.distribution.reopen-inquiry.error"),
|
132
132
|
);
|
@@ -163,7 +163,7 @@ export default class CdInquiryDialogInquiryPartComponent extends Component {
|
|
163
163
|
}),
|
164
164
|
},
|
165
165
|
});
|
166
|
-
} catch
|
166
|
+
} catch {
|
167
167
|
this.notification.danger(
|
168
168
|
this.intl.t("caluma.distribution.reminder.error"),
|
169
169
|
);
|
@@ -5,7 +5,6 @@ import { inject as service } from "@ember/service";
|
|
5
5
|
import Component from "@glimmer/component";
|
6
6
|
import { queryManager } from "ember-apollo-client";
|
7
7
|
import { dropTask } from "ember-concurrency";
|
8
|
-
import { DateTime } from "luxon";
|
9
8
|
import { trackedFunction } from "reactiveweb/function";
|
10
9
|
|
11
10
|
import { decodeId } from "@projectcaluma/ember-core/helpers/decode-id";
|
@@ -16,6 +15,7 @@ import { parseDocument } from "@projectcaluma/ember-form/lib/parsers";
|
|
16
15
|
export default class CdInquiryNewFormBulkEditComponent extends Component {
|
17
16
|
@service router;
|
18
17
|
@service distribution;
|
18
|
+
@service calumaOptions;
|
19
19
|
|
20
20
|
@queryManager apollo;
|
21
21
|
|
@@ -38,9 +38,11 @@ export default class CdInquiryNewFormBulkEditComponent extends Component {
|
|
38
38
|
// deadline that should be displayed in the form per default and add it to
|
39
39
|
// the fake document data
|
40
40
|
if (this.config.new.defaultDeadlineLeadTime) {
|
41
|
-
const deadline =
|
42
|
-
|
43
|
-
|
41
|
+
const deadline =
|
42
|
+
await this.calumaOptions.calculateDistributionDefaultDeadline(
|
43
|
+
this.config.new.defaultDeadlineLeadTime,
|
44
|
+
this.args.selectedGroups,
|
45
|
+
);
|
44
46
|
|
45
47
|
answers.edges.push({
|
46
48
|
node: {
|
@@ -62,7 +62,7 @@ export default class CdNavigationControlsComponent extends Component {
|
|
62
62
|
|
63
63
|
yield this.distribution.refetch();
|
64
64
|
this.router.transitionTo("index");
|
65
|
-
} catch
|
65
|
+
} catch {
|
66
66
|
this.notification.danger(
|
67
67
|
this.intl.t("caluma.distribution.complete-error"),
|
68
68
|
);
|
@@ -88,7 +88,7 @@ export default class CdNavigationControlsComponent extends Component {
|
|
88
88
|
});
|
89
89
|
|
90
90
|
yield this.distribution.refetchControls();
|
91
|
-
} catch
|
91
|
+
} catch {
|
92
92
|
this.notification.danger(this.intl.t("caluma.distribution.reopen-error"));
|
93
93
|
}
|
94
94
|
}
|
@@ -104,7 +104,7 @@ export default class CdNavigationControlsComponent extends Component {
|
|
104
104
|
),
|
105
105
|
},
|
106
106
|
});
|
107
|
-
} catch
|
107
|
+
} catch {
|
108
108
|
this.notification.danger(
|
109
109
|
this.intl.t("caluma.distribution.check-inquiries-error"),
|
110
110
|
);
|
@@ -123,7 +123,7 @@ export default class DistributionService extends Service {
|
|
123
123
|
|
124
124
|
// refetch navigation and controls data
|
125
125
|
yield this.refetch();
|
126
|
-
} catch
|
126
|
+
} catch {
|
127
127
|
this.notification.danger(
|
128
128
|
this.intl.t("caluma.distribution.new.error", { count: groups.length }),
|
129
129
|
);
|
@@ -205,7 +205,7 @@ export default class DistributionService extends Service {
|
|
205
205
|
const mutation = gql`mutation SendInquiries {${mutations.join("\n")}}`;
|
206
206
|
|
207
207
|
yield this.apollo.mutate({ mutation });
|
208
|
-
} catch
|
208
|
+
} catch {
|
209
209
|
this.notification.danger(this.intl.t("caluma.distribution.send-error"));
|
210
210
|
}
|
211
211
|
}
|
package/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@projectcaluma/ember-distribution",
|
3
|
-
"version": "14.
|
3
|
+
"version": "14.2.0",
|
4
4
|
"description": "Ember engine for the Caluma distribution module.",
|
5
5
|
"keywords": [
|
6
6
|
"ember-addon",
|
@@ -39,15 +39,15 @@
|
|
39
39
|
"luxon": "^3.5.0",
|
40
40
|
"reactiveweb": "^1.3.0",
|
41
41
|
"tracked-toolbox": "^2.0.0",
|
42
|
-
"@projectcaluma/ember-core": "^14.
|
43
|
-
"@projectcaluma/ember-form": "^14.
|
44
|
-
"@projectcaluma/ember-workflow": "^14.
|
42
|
+
"@projectcaluma/ember-core": "^14.2.0",
|
43
|
+
"@projectcaluma/ember-form": "^14.2.0",
|
44
|
+
"@projectcaluma/ember-workflow": "^14.2.0"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"@ember/optional-features": "2.2.0",
|
48
48
|
"@ember/test-helpers": "4.0.4",
|
49
49
|
"@embroider/test-setup": "4.0.0",
|
50
|
-
"@faker-js/faker": "9.
|
50
|
+
"@faker-js/faker": "9.7.0",
|
51
51
|
"broccoli-asset-rev": "3.0.0",
|
52
52
|
"ember-cli": "6.1.0",
|
53
53
|
"ember-cli-clean-css": "3.0.0",
|
@@ -58,19 +58,19 @@
|
|
58
58
|
"ember-cli-sass": "11.0.1",
|
59
59
|
"ember-cli-sri": "2.1.1",
|
60
60
|
"ember-cli-terser": "4.0.2",
|
61
|
-
"ember-engines": "0.
|
62
|
-
"ember-qunit": "9.0.
|
61
|
+
"ember-engines": "0.12.0",
|
62
|
+
"ember-qunit": "9.0.2",
|
63
63
|
"ember-source": "6.1.0",
|
64
64
|
"ember-source-channel-url": "3.0.0",
|
65
|
-
"ember-try": "
|
65
|
+
"ember-try": "4.0.0",
|
66
66
|
"loader.js": "4.7.0",
|
67
67
|
"miragejs": "0.1.48",
|
68
|
-
"qunit": "2.
|
68
|
+
"qunit": "2.24.1",
|
69
69
|
"qunit-dom": "3.4.0",
|
70
|
-
"sass": "1.
|
71
|
-
"uikit": "3.
|
72
|
-
"webpack": "5.
|
73
|
-
"@projectcaluma/ember-testing": "14.
|
70
|
+
"sass": "1.88.0",
|
71
|
+
"uikit": "3.23.7",
|
72
|
+
"webpack": "5.99.8",
|
73
|
+
"@projectcaluma/ember-testing": "14.2.0"
|
74
74
|
},
|
75
75
|
"peerDependencies": {
|
76
76
|
"ember-engines": "^0.11.0",
|