@projectcaluma/ember-form 12.2.0 → 12.3.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,24 @@
|
|
8
8
|
@validateOnEnter={{this.validateOnEnter}}
|
9
9
|
as |isValid validate|
|
10
10
|
>
|
11
|
+
{{#if (and this.invalidFields.length @field.question.raw.showValidation)}}
|
12
|
+
<div class="uk-alert uk-alert-danger uk-animation-fade">
|
13
|
+
<div class="uk-flex-inline uk-flex-middle uk-text-bold">
|
14
|
+
<UkIcon @icon="warning" class="uk-margin-small-right" />
|
15
|
+
{{t "caluma.form.validation.error"}}
|
16
|
+
</div>
|
17
|
+
<ul class="uk-list uk-list-bullet">
|
18
|
+
{{#each this.invalidFields as |invalidField|}}
|
19
|
+
<li>
|
20
|
+
<LinkTo
|
21
|
+
@query={{hash displayedForm=invalidField.fieldset.form.slug}}
|
22
|
+
>{{invalidField.question.raw.label}}</LinkTo>
|
23
|
+
</li>
|
24
|
+
{{/each}}
|
25
|
+
</ul>
|
26
|
+
</div>
|
27
|
+
{{/if}}
|
28
|
+
|
11
29
|
<WorkItemButton
|
12
30
|
@workItemId={{this.workItem}}
|
13
31
|
@mutation={{this.action}}
|
@@ -12,8 +12,9 @@ if (macroCondition(dependencySatisfies("@projectcaluma/ember-workflow", ""))) {
|
|
12
12
|
super(...args);
|
13
13
|
|
14
14
|
assert(
|
15
|
-
"
|
16
|
-
this.args.field.document.workItemUuid
|
15
|
+
"`<CfField::Input::ActionButton />` did not find a `workItem` related to the `document` or passed via `context.actionButtonWorkItemId`.",
|
16
|
+
this.args.field.document.workItemUuid ||
|
17
|
+
this.args.context?.actionButtonWorkItemId,
|
17
18
|
);
|
18
19
|
}
|
19
20
|
|
@@ -39,6 +40,12 @@ if (macroCondition(dependencySatisfies("@projectcaluma/ember-workflow", ""))) {
|
|
39
40
|
);
|
40
41
|
}
|
41
42
|
|
43
|
+
get invalidFields() {
|
44
|
+
return this.args.field.document.fields.filter(
|
45
|
+
(field) => !field.hidden && field.isInvalid,
|
46
|
+
);
|
47
|
+
}
|
48
|
+
|
42
49
|
@action
|
43
50
|
async beforeMutate(validateFn) {
|
44
51
|
if (
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@projectcaluma/ember-form",
|
3
|
-
"version": "12.
|
3
|
+
"version": "12.3.0",
|
4
4
|
"description": "Ember addon for rendering Caluma forms.",
|
5
5
|
"keywords": [
|
6
6
|
"ember-addon"
|
@@ -10,8 +10,8 @@
|
|
10
10
|
"repository": "github:projectcaluma/ember-caluma",
|
11
11
|
"dependencies": {
|
12
12
|
"@ember/string": "^3.1.1",
|
13
|
-
"@embroider/macros": "^1.
|
14
|
-
"@embroider/util": "^1.
|
13
|
+
"@embroider/macros": "^1.13.0",
|
14
|
+
"@embroider/util": "^1.12.0",
|
15
15
|
"@glimmer/component": "^1.1.2",
|
16
16
|
"@glimmer/tracking": "^1.1.2",
|
17
17
|
"ember-apollo-client": "~4.0.2",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"ember-intl": "^5.7.2",
|
29
29
|
"ember-math-helpers": "^3.0.0",
|
30
30
|
"ember-power-select": "^7.1.0",
|
31
|
-
"ember-resources": "^6.
|
31
|
+
"ember-resources": "^6.3.1",
|
32
32
|
"ember-uikit": "^8.0.0",
|
33
33
|
"ember-validators": "^4.1.2",
|
34
34
|
"graphql": "^15.8.0",
|
@@ -36,7 +36,7 @@
|
|
36
36
|
"lodash.isequal": "^4.5.0",
|
37
37
|
"luxon": "^3.3.0",
|
38
38
|
"tracked-toolbox": "^2.0.0",
|
39
|
-
"@projectcaluma/ember-core": "^12.
|
39
|
+
"@projectcaluma/ember-core": "^12.3.0"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
42
|
"@ember/optional-features": "2.0.0",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"ember-cli-terser": "4.0.2",
|
54
54
|
"ember-load-initializers": "2.1.2",
|
55
55
|
"ember-qunit": "7.0.0",
|
56
|
-
"ember-resolver": "
|
56
|
+
"ember-resolver": "11.0.0",
|
57
57
|
"ember-source": "4.12.3",
|
58
58
|
"ember-source-channel-url": "3.0.0",
|
59
59
|
"ember-try": "2.0.0",
|
@@ -61,15 +61,15 @@
|
|
61
61
|
"miragejs": "0.1.47",
|
62
62
|
"qunit": "2.19.4",
|
63
63
|
"qunit-dom": "2.0.0",
|
64
|
-
"uikit": "3.16.
|
64
|
+
"uikit": "3.16.23",
|
65
65
|
"uuid": "9.0.0",
|
66
66
|
"webpack": "5.88.2",
|
67
|
-
"@projectcaluma/ember-testing": "12.
|
68
|
-
"@projectcaluma/ember-workflow": "12.
|
67
|
+
"@projectcaluma/ember-testing": "12.3.0",
|
68
|
+
"@projectcaluma/ember-workflow": "12.3.0"
|
69
69
|
},
|
70
70
|
"peerDependencies": {
|
71
71
|
"ember-source": "^4.0.0",
|
72
|
-
"@projectcaluma/ember-workflow": "^12.
|
72
|
+
"@projectcaluma/ember-workflow": "^12.3.0"
|
73
73
|
},
|
74
74
|
"peerDependenciesMeta": {
|
75
75
|
"@projectcaluma/ember-workflow": {
|
package/translations/de.yaml
CHANGED
package/translations/en.yaml
CHANGED
package/translations/fr.yaml
CHANGED