@projectcaluma/ember-form-builder 9.0.2 → 9.0.6
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/cfb-float-input.hbs +14 -0
- package/addon/components/cfb-float-input.js +10 -4
- package/addon/components/cfb-form-editor/general.hbs +90 -86
- package/addon/components/cfb-form-editor/general.js +43 -45
- package/addon/components/cfb-form-editor/question/default/table.js +12 -0
- package/addon/components/cfb-form-editor/question/default.hbs +11 -9
- package/addon/components/cfb-form-editor/question/default.js +19 -29
- package/addon/components/cfb-form-editor/question/options.hbs +80 -82
- package/addon/components/cfb-form-editor/question/options.js +116 -105
- package/addon/components/cfb-form-editor/question/validation.hbs +14 -12
- package/addon/components/cfb-form-editor/question/validation.js +21 -30
- package/addon/components/cfb-form-editor/question-list/item.js +2 -4
- package/addon/components/cfb-form-editor/question.hbs +386 -360
- package/addon/components/cfb-form-editor/question.js +136 -145
- package/addon/components/cfb-form-list.hbs +1 -1
- package/addon/components/cfb-jexl-boolean-toggle-switch.hbs +12 -10
- package/addon/components/cfb-jexl-boolean-toggle-switch.js +11 -10
- package/addon/components/cfb-label.hbs +12 -4
- package/addon/components/cfb-navigation.js +1 -1
- package/addon/components/cfb-toggle-switch.hbs +14 -12
- package/addon/controllers/edit/questions/edit.js +4 -1
- package/addon/controllers/edit/questions/new.js +4 -1
- package/addon/controllers/edit.js +4 -4
- package/addon/controllers/index.js +5 -2
- package/addon/controllers/new.js +4 -1
- package/addon/engine.js +1 -8
- package/addon/validators/gt-lt.js +3 -2
- package/app/components/{cfb-float-input/input.js → cfb-form-editor/question/default/table.js} +1 -1
- package/package.json +18 -16
- package/translations/de.yaml +2 -2
- package/translations/en.yaml +2 -2
- package/addon/components/cfb-float-input/input.js +0 -12
- package/addon/components/cfb-label.js +0 -5
package/addon/controllers/new.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import Controller from "@ember/controller";
|
|
2
2
|
import { action } from "@ember/object";
|
|
3
|
+
import { inject as service } from "@ember/service";
|
|
3
4
|
|
|
4
5
|
export default class NewController extends Controller {
|
|
6
|
+
@service router;
|
|
7
|
+
|
|
5
8
|
@action
|
|
6
9
|
afterSubmit({ slug }) {
|
|
7
|
-
this.
|
|
10
|
+
this.router.transitionTo("edit", slug);
|
|
8
11
|
}
|
|
9
12
|
}
|
package/addon/engine.js
CHANGED
|
@@ -12,14 +12,7 @@ const Eng = Engine.extend({
|
|
|
12
12
|
Resolver,
|
|
13
13
|
|
|
14
14
|
dependencies: {
|
|
15
|
-
services: [
|
|
16
|
-
"apollo",
|
|
17
|
-
"notification",
|
|
18
|
-
"router",
|
|
19
|
-
"intl",
|
|
20
|
-
"caluma-options",
|
|
21
|
-
"validator",
|
|
22
|
-
],
|
|
15
|
+
services: ["apollo", "notification", "intl", "caluma-options", "validator"],
|
|
23
16
|
},
|
|
24
17
|
});
|
|
25
18
|
|
|
@@ -10,9 +10,10 @@ export default function validateGtLt(options = { gt: null, lt: null }) {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
const messages = getMessages();
|
|
13
|
+
const data = { ...content, ...changes };
|
|
13
14
|
|
|
14
15
|
if (options.gt) {
|
|
15
|
-
const dependentValue =
|
|
16
|
+
const dependentValue = data[options.gt];
|
|
16
17
|
|
|
17
18
|
return dependentValue
|
|
18
19
|
? Number(newValue) > Number(dependentValue) ||
|
|
@@ -27,7 +28,7 @@ export default function validateGtLt(options = { gt: null, lt: null }) {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
if (options.lt) {
|
|
30
|
-
const dependentValue =
|
|
31
|
+
const dependentValue = data[options.lt];
|
|
31
32
|
|
|
32
33
|
return dependentValue
|
|
33
34
|
? Number(newValue) < Number(dependentValue) ||
|
package/app/components/{cfb-float-input/input.js → cfb-form-editor/question/default/table.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "@projectcaluma/ember-form-builder/components/cfb-
|
|
1
|
+
export { default } from "@projectcaluma/ember-form-builder/components/cfb-form-editor/question/default/table";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@projectcaluma/ember-form-builder",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.6",
|
|
4
4
|
"description": "Ember engine for building Caluma forms.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -15,29 +15,30 @@
|
|
|
15
15
|
"test:ember-compatibility": "ember try:each"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@ember/render-modifiers": "^
|
|
18
|
+
"@ember/render-modifiers": "^2.0.0",
|
|
19
19
|
"@glimmer/component": "^1.0.4",
|
|
20
20
|
"@glimmer/tracking": "^1.0.4",
|
|
21
|
-
"@projectcaluma/ember-core": "9.0
|
|
22
|
-
"@projectcaluma/ember-form": "9.
|
|
21
|
+
"@projectcaluma/ember-core": "9.1.0",
|
|
22
|
+
"@projectcaluma/ember-form": "9.1.2",
|
|
23
23
|
"codejar": "^3.5.0",
|
|
24
24
|
"ember-apollo-client": "^3.2.0",
|
|
25
|
-
"ember-auto-import": "^2.2.
|
|
25
|
+
"ember-auto-import": "^2.2.3",
|
|
26
26
|
"ember-changeset": "^3.15.0",
|
|
27
27
|
"ember-changeset-validations": "^3.16.0",
|
|
28
28
|
"ember-cli-babel": "^7.26.6",
|
|
29
|
-
"ember-cli-htmlbars": "^
|
|
29
|
+
"ember-cli-htmlbars": "^6.0.0",
|
|
30
30
|
"ember-composable-helpers": "^4.5.0",
|
|
31
|
-
"ember-concurrency": "^2.
|
|
31
|
+
"ember-concurrency": "^2.2.0",
|
|
32
32
|
"ember-concurrency-decorators": "^2.0.3",
|
|
33
|
+
"ember-engines-router-service": "^0.3.0",
|
|
33
34
|
"ember-fetch": "^8.0.4",
|
|
34
35
|
"ember-math-helpers": "^2.17.3",
|
|
35
36
|
"ember-pikaday": "^3.0.0",
|
|
36
37
|
"ember-power-select": "^4.1.6",
|
|
37
38
|
"ember-test-selectors": "^6.0.0",
|
|
38
39
|
"ember-uikit": "^4.0.0",
|
|
39
|
-
"ember-validated-form": "^
|
|
40
|
-
"graphql": "^15.6.
|
|
40
|
+
"ember-validated-form": "^5.0.0",
|
|
41
|
+
"graphql": "^15.6.1",
|
|
41
42
|
"graphql-tag": "^2.12.5",
|
|
42
43
|
"jexl": "^2.3.0",
|
|
43
44
|
"moment": "^2.29.1",
|
|
@@ -45,11 +46,12 @@
|
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@ember/optional-features": "2.0.0",
|
|
48
|
-
"@ember/test-helpers": "2.
|
|
49
|
-
"@embroider/test-setup": "0.
|
|
49
|
+
"@ember/test-helpers": "2.6.0",
|
|
50
|
+
"@embroider/test-setup": "0.47.1",
|
|
50
51
|
"@projectcaluma/ember-testing": "9.0.0",
|
|
51
52
|
"broccoli-asset-rev": "3.0.0",
|
|
52
|
-
"ember-cli": "3.28.
|
|
53
|
+
"ember-cli": "3.28.3",
|
|
54
|
+
"ember-cli-code-coverage": "1.0.3",
|
|
53
55
|
"ember-cli-dependency-checker": "3.2.0",
|
|
54
56
|
"ember-cli-inject-live-reload": "2.1.0",
|
|
55
57
|
"ember-cli-mirage": "2.2.0",
|
|
@@ -57,13 +59,13 @@
|
|
|
57
59
|
"ember-cli-terser": "4.0.2",
|
|
58
60
|
"ember-data": "3.28.3",
|
|
59
61
|
"ember-disable-prototype-extensions": "1.1.3",
|
|
60
|
-
"ember-engines": "0.8.
|
|
62
|
+
"ember-engines": "0.8.20",
|
|
61
63
|
"ember-export-application-global": "2.0.1",
|
|
62
64
|
"ember-load-initializers": "2.1.2",
|
|
63
65
|
"ember-maybe-import-regenerator": "1.0.0",
|
|
64
|
-
"ember-qunit": "5.1.
|
|
66
|
+
"ember-qunit": "5.1.5",
|
|
65
67
|
"ember-resolver": "8.0.3",
|
|
66
|
-
"ember-source": "3.28.
|
|
68
|
+
"ember-source": "3.28.6",
|
|
67
69
|
"ember-source-channel-url": "3.0.0",
|
|
68
70
|
"ember-try": "1.4.0",
|
|
69
71
|
"faker": "5.5.3",
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
"npm-run-all": "4.1.5",
|
|
72
74
|
"qunit": "2.17.2",
|
|
73
75
|
"qunit-dom": "2.0.0",
|
|
74
|
-
"webpack": "5.
|
|
76
|
+
"webpack": "5.61.0"
|
|
75
77
|
},
|
|
76
78
|
"engines": {
|
|
77
79
|
"node": "10.* || >= 12"
|
package/translations/de.yaml
CHANGED
|
@@ -75,8 +75,8 @@ caluma:
|
|
|
75
75
|
choose: "-- bitte wählen --"
|
|
76
76
|
search-placeholder: "Hier tippen um zu suchen"
|
|
77
77
|
search-empty: "Keine Formulare gefunden"
|
|
78
|
-
columnsToDisplay: "Spalten zur Anzeige
|
|
79
|
-
calcExpression: "Berechnungsformel"
|
|
78
|
+
columnsToDisplay: "Spalten zur Anzeige im Formular"
|
|
79
|
+
calcExpression: "Berechnungsformel (JEXL)"
|
|
80
80
|
|
|
81
81
|
new: "Neue Frage"
|
|
82
82
|
|
package/translations/en.yaml
CHANGED
|
@@ -75,8 +75,8 @@ caluma:
|
|
|
75
75
|
choose: "-- please choose --"
|
|
76
76
|
search-placeholder: "Type here to search forms"
|
|
77
77
|
search-empty: "Search didn't match any forms"
|
|
78
|
-
columnsToDisplay: "
|
|
79
|
-
calcExpression: "Calculation formula"
|
|
78
|
+
columnsToDisplay: "Columns to be shown in the form"
|
|
79
|
+
calcExpression: "Calculation formula (JEXL)"
|
|
80
80
|
|
|
81
81
|
new: "New question"
|
|
82
82
|
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import InputComponent from "ember-validated-form/components/validated-input/types/-themes/uikit/input";
|
|
2
|
-
|
|
3
|
-
export default InputComponent.extend({
|
|
4
|
-
init(...args) {
|
|
5
|
-
this._super(...args);
|
|
6
|
-
|
|
7
|
-
this.set("type", "number");
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
attributeBindings: ["step"],
|
|
11
|
-
step: "any",
|
|
12
|
-
});
|