@projectcaluma/ember-form 14.14.0 → 14.14.2
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.
|
@@ -158,9 +158,9 @@ export default class CfContentComponent extends Component {
|
|
|
158
158
|
const Document = owner.factoryFor("caluma-model:document").class;
|
|
159
159
|
const Navigation = owner.factoryFor("caluma-model:navigation").class;
|
|
160
160
|
|
|
161
|
-
let answerDocument
|
|
162
|
-
let historicalDocument
|
|
163
|
-
let jexlContext
|
|
161
|
+
let answerDocument;
|
|
162
|
+
let historicalDocument;
|
|
163
|
+
let jexlContext;
|
|
164
164
|
|
|
165
165
|
if (!this.args.compare) {
|
|
166
166
|
const data = await this.apollo.query({
|
|
@@ -124,13 +124,19 @@
|
|
|
124
124
|
as |modal|
|
|
125
125
|
>
|
|
126
126
|
<modal.body>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
{{#if this.add.isRunning}}
|
|
128
|
+
<div class="uk-text-center">
|
|
129
|
+
<UkSpinner class="uk-animation-fade" @ratio={{2}} />
|
|
130
|
+
</div>
|
|
131
|
+
{{else}}
|
|
132
|
+
<CfFormWrapper
|
|
133
|
+
@document={{this.documentToEdit}}
|
|
134
|
+
@fieldset={{object-at 0 this.documentToEdit.fieldsets}}
|
|
135
|
+
@disabled={{@disabled}}
|
|
136
|
+
@context={{@context}}
|
|
137
|
+
@compare={{@compare}}
|
|
138
|
+
/>
|
|
139
|
+
{{/if}}
|
|
134
140
|
</modal.body>
|
|
135
141
|
|
|
136
142
|
<modal.footer class="uk-text-right">
|
|
@@ -89,7 +89,8 @@ export default class CfFieldInputTableComponent extends Component {
|
|
|
89
89
|
// removed again if the edit dialog is cancelled.
|
|
90
90
|
try {
|
|
91
91
|
const rows = this.args.field.answer.value ?? [];
|
|
92
|
-
|
|
92
|
+
this.args.field.answer.value = [...rows, newDocument];
|
|
93
|
+
await this.args.field.save.perform();
|
|
93
94
|
} catch {
|
|
94
95
|
this.notification.danger(
|
|
95
96
|
this.intl.t("caluma.form.notification.table.add.error"),
|
package/addon/lib/field.js
CHANGED
|
@@ -467,6 +467,7 @@ export default class Field extends Base {
|
|
|
467
467
|
} catch (error) {
|
|
468
468
|
throw new Error(
|
|
469
469
|
`Error while evaluating \`isHidden\` expression on Option\`${option.slug}\`: ${error.message}`,
|
|
470
|
+
{ cause: error },
|
|
470
471
|
);
|
|
471
472
|
}
|
|
472
473
|
})
|
|
@@ -646,6 +647,7 @@ export default class Field extends Base {
|
|
|
646
647
|
} catch (error) {
|
|
647
648
|
throw new Error(
|
|
648
649
|
`Error while evaluating \`isHidden\` expression on field \`${this.pk}\`: ${error.message}`,
|
|
650
|
+
{ cause: error },
|
|
649
651
|
);
|
|
650
652
|
}
|
|
651
653
|
}
|
|
@@ -681,6 +683,7 @@ export default class Field extends Base {
|
|
|
681
683
|
} catch (error) {
|
|
682
684
|
throw new Error(
|
|
683
685
|
`Error while evaluating \`isRequired\` expression on field \`${this.pk}\`: ${error.message}`,
|
|
686
|
+
{ cause: error },
|
|
684
687
|
);
|
|
685
688
|
}
|
|
686
689
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@projectcaluma/ember-form",
|
|
3
|
-
"version": "14.14.
|
|
3
|
+
"version": "14.14.2",
|
|
4
4
|
"description": "Ember addon for rendering Caluma forms.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"luxon": "^3.5.0",
|
|
40
40
|
"reactiveweb": "^1.3.0",
|
|
41
41
|
"tracked-toolbox": "^2.0.0",
|
|
42
|
-
"@projectcaluma/ember-core": "^14.14.
|
|
42
|
+
"@projectcaluma/ember-core": "^14.14.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@ember/optional-features": "
|
|
45
|
+
"@ember/optional-features": "3.0.0",
|
|
46
46
|
"@ember/test-helpers": "4.0.4",
|
|
47
47
|
"@embroider/test-setup": "4.0.0",
|
|
48
48
|
"@faker-js/faker": "10.2.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"ember-cli-sri": "2.1.1",
|
|
60
60
|
"ember-cli-terser": "4.0.2",
|
|
61
61
|
"ember-load-initializers": "3.0.1",
|
|
62
|
-
"ember-qunit": "9.0
|
|
62
|
+
"ember-qunit": "9.1.0",
|
|
63
63
|
"ember-resolver": "13.1.1",
|
|
64
64
|
"ember-sinon-qunit": "7.5.0",
|
|
65
65
|
"ember-source": "6.1.0",
|
|
@@ -67,19 +67,19 @@
|
|
|
67
67
|
"ember-try": "4.0.0",
|
|
68
68
|
"loader.js": "4.7.0",
|
|
69
69
|
"miragejs": "0.1.48",
|
|
70
|
-
"qunit": "2.
|
|
71
|
-
"qunit-dom": "3.
|
|
72
|
-
"sass": "1.
|
|
73
|
-
"sinon": "
|
|
70
|
+
"qunit": "2.26.0",
|
|
71
|
+
"qunit-dom": "3.6.0",
|
|
72
|
+
"sass": "1.102.0",
|
|
73
|
+
"sinon": "22.1.0",
|
|
74
74
|
"uikit": "3.25.6",
|
|
75
|
-
"uuid": "
|
|
76
|
-
"webpack": "5.
|
|
77
|
-
"@projectcaluma/ember-
|
|
78
|
-
"@projectcaluma/ember-
|
|
75
|
+
"uuid": "14.0.1",
|
|
76
|
+
"webpack": "5.109.2",
|
|
77
|
+
"@projectcaluma/ember-workflow": "14.14.2",
|
|
78
|
+
"@projectcaluma/ember-testing": "14.14.2"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"ember-source": ">= 4.0.0",
|
|
82
|
-
"@projectcaluma/ember-workflow": "^14.14.
|
|
82
|
+
"@projectcaluma/ember-workflow": "^14.14.2"
|
|
83
83
|
},
|
|
84
84
|
"dependenciesMeta": {
|
|
85
85
|
"@projectcaluma/ember-core": {
|