@projectcaluma/ember-form 14.9.2 → 14.10.1
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/lib/field.js
CHANGED
|
@@ -554,6 +554,7 @@ export default class Field extends Base {
|
|
|
554
554
|
* - `info.formMeta`: The meta of the form this question is attached to.
|
|
555
555
|
* - `info.parent.form`: The parent form if applicable.
|
|
556
556
|
* - `info.parent.formMeta`: The parent form meta if applicable.
|
|
557
|
+
* - `info.parent.question`: The parent field question if applicable.
|
|
557
558
|
* - `info.root.form`: The new property for the root form.
|
|
558
559
|
* - `info.root.formMeta`: The new property for the root form meta.
|
|
559
560
|
* - `info.case.form`: The cases' form (works for task forms and case forms).
|
|
@@ -564,7 +565,7 @@ export default class Field extends Base {
|
|
|
564
565
|
* @property {Object} jexlContext
|
|
565
566
|
*/
|
|
566
567
|
get jexlContext() {
|
|
567
|
-
const
|
|
568
|
+
const parentField = this.fieldset.field ?? this.document.parentField;
|
|
568
569
|
|
|
569
570
|
return {
|
|
570
571
|
...this.document.jexlContext,
|
|
@@ -572,10 +573,11 @@ export default class Field extends Base {
|
|
|
572
573
|
...this.document.jexlContext.info,
|
|
573
574
|
form: this.fieldset.form.slug,
|
|
574
575
|
formMeta: this.fieldset.form.raw.meta,
|
|
575
|
-
parent:
|
|
576
|
+
parent: parentField
|
|
576
577
|
? {
|
|
577
|
-
form:
|
|
578
|
-
formMeta:
|
|
578
|
+
form: parentField.fieldset.form.slug,
|
|
579
|
+
formMeta: parentField.fieldset.form.raw.meta,
|
|
580
|
+
question: parentField.question.slug,
|
|
579
581
|
}
|
|
580
582
|
: null,
|
|
581
583
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@projectcaluma/ember-form",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.10.1",
|
|
4
4
|
"description": "Ember addon for rendering Caluma forms.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"luxon": "^3.5.0",
|
|
40
40
|
"reactiveweb": "^1.3.0",
|
|
41
41
|
"tracked-toolbox": "^2.0.0",
|
|
42
|
-
"@projectcaluma/ember-core": "^14.
|
|
42
|
+
"@projectcaluma/ember-core": "^14.10.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@ember/optional-features": "2.3.0",
|
|
@@ -74,12 +74,12 @@
|
|
|
74
74
|
"uikit": "3.25.6",
|
|
75
75
|
"uuid": "13.0.0",
|
|
76
76
|
"webpack": "5.104.1",
|
|
77
|
-
"@projectcaluma/ember-testing": "14.
|
|
78
|
-
"@projectcaluma/ember-workflow": "14.
|
|
77
|
+
"@projectcaluma/ember-testing": "14.10.1",
|
|
78
|
+
"@projectcaluma/ember-workflow": "14.10.1"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"ember-source": ">= 4.0.0",
|
|
82
|
-
"@projectcaluma/ember-workflow": "^14.
|
|
82
|
+
"@projectcaluma/ember-workflow": "^14.10.1"
|
|
83
83
|
},
|
|
84
84
|
"dependenciesMeta": {
|
|
85
85
|
"@projectcaluma/ember-core": {
|