@projectcaluma/ember-form 12.0.1 → 12.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/addon/lib/document.js +6 -1
- package/package.json +6 -6
package/addon/lib/document.js
CHANGED
@@ -5,7 +5,11 @@ import jexl from "jexl";
|
|
5
5
|
import { cached } from "tracked-toolbox";
|
6
6
|
|
7
7
|
import { decodeId } from "@projectcaluma/ember-core/helpers/decode-id";
|
8
|
-
import {
|
8
|
+
import {
|
9
|
+
intersects,
|
10
|
+
mapby,
|
11
|
+
flatten,
|
12
|
+
} from "@projectcaluma/ember-core/utils/jexl";
|
9
13
|
import Base from "@projectcaluma/ember-form/lib/base";
|
10
14
|
|
11
15
|
const onlyNumbers = (nums) =>
|
@@ -180,6 +184,7 @@ export default class Document extends Base {
|
|
180
184
|
return nums.length ? sum(nums) / nums.length : null;
|
181
185
|
});
|
182
186
|
documentJexl.addTransform("stringify", (input) => JSON.stringify(input));
|
187
|
+
documentJexl.addTransform("flatten", flatten);
|
183
188
|
|
184
189
|
return documentJexl;
|
185
190
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@projectcaluma/ember-form",
|
3
|
-
"version": "12.0
|
3
|
+
"version": "12.1.0",
|
4
4
|
"description": "Ember addon for rendering Caluma forms.",
|
5
5
|
"keywords": [
|
6
6
|
"ember-addon"
|
@@ -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.0
|
39
|
+
"@projectcaluma/ember-core": "^12.1.0"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
42
|
"@ember/optional-features": "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.22",
|
65
65
|
"uuid": "9.0.0",
|
66
66
|
"webpack": "5.87.0",
|
67
|
-
"@projectcaluma/ember-testing": "12.0
|
68
|
-
"@projectcaluma/ember-workflow": "12.0
|
67
|
+
"@projectcaluma/ember-testing": "12.1.0",
|
68
|
+
"@projectcaluma/ember-workflow": "12.1.0"
|
69
69
|
},
|
70
70
|
"peerDependencies": {
|
71
71
|
"ember-source": "^4.0.0",
|
72
|
-
"@projectcaluma/ember-workflow": "^12.0
|
72
|
+
"@projectcaluma/ember-workflow": "^12.1.0"
|
73
73
|
},
|
74
74
|
"peerDependenciesMeta": {
|
75
75
|
"@projectcaluma/ember-workflow": {
|