@projectcaluma/ember-form-builder 11.0.0-beta.15 → 11.0.0-beta.16
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/CHANGELOG.md +11 -0
- package/addon/components/cfb-form-editor/question.js +3 -3
- package/addon/gql/fragments/field.graphql +3 -3
- package/addon/gql/mutations/{save-file-question.graphql → save-files-question.graphql} +3 -3
- package/addon/gql/queries/form-editor-question.graphql +1 -1
- package/addon/validations/question.js +1 -1
- package/package.json +7 -7
- package/translations/de.yaml +1 -1
- package/translations/en.yaml +1 -1
- package/translations/fr.yaml +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
# [@projectcaluma/ember-form-builder-v11.0.0-beta.16](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-form-builder-v11.0.0-beta.15...@projectcaluma/ember-form-builder-v11.0.0-beta.16) (2022-08-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
* feat!: add multi file upload (#2040) ([c4fd004](https://github.com/projectcaluma/ember-caluma/commit/c4fd0049654b2d2e5ea62e5909a45d89cb888b40)), closes [#2040](https://github.com/projectcaluma/ember-caluma/issues/2040)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### BREAKING CHANGES
|
|
8
|
+
|
|
9
|
+
* This requires the caluma backend version v8.0.0-beta.12
|
|
10
|
+
or later.
|
|
11
|
+
|
|
1
12
|
# [@projectcaluma/ember-form-builder-v11.0.0-beta.15](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-form-builder-v11.0.0-beta.14...@projectcaluma/ember-form-builder-v11.0.0-beta.15) (2022-08-02)
|
|
2
13
|
|
|
3
14
|
|
|
@@ -26,7 +26,7 @@ import saveDefaultStringAnswerMutation from "@projectcaluma/ember-form-builder/g
|
|
|
26
26
|
import saveDefaultTableAnswerMutation from "@projectcaluma/ember-form-builder/gql/mutations/save-default-table-answer.graphql";
|
|
27
27
|
import saveDynamicChoiceQuestionMutation from "@projectcaluma/ember-form-builder/gql/mutations/save-dynamic-choice-question.graphql";
|
|
28
28
|
import saveDynamicMultipleChoiceQuestionMutation from "@projectcaluma/ember-form-builder/gql/mutations/save-dynamic-multiple-choice-question.graphql";
|
|
29
|
-
import
|
|
29
|
+
import saveFilesQuestionMutation from "@projectcaluma/ember-form-builder/gql/mutations/save-files-question.graphql";
|
|
30
30
|
import saveFloatQuestionMutation from "@projectcaluma/ember-form-builder/gql/mutations/save-float-question.graphql";
|
|
31
31
|
import saveFormQuestionMutation from "@projectcaluma/ember-form-builder/gql/mutations/save-form-question.graphql";
|
|
32
32
|
import saveIntegerQuestionMutation from "@projectcaluma/ember-form-builder/gql/mutations/save-integer-question.graphql";
|
|
@@ -53,7 +53,7 @@ export const TYPES = {
|
|
|
53
53
|
DynamicChoiceQuestion: saveDynamicChoiceQuestionMutation,
|
|
54
54
|
TableQuestion: saveTableQuestionMutation,
|
|
55
55
|
FormQuestion: saveFormQuestionMutation,
|
|
56
|
-
|
|
56
|
+
FilesQuestion: saveFilesQuestionMutation,
|
|
57
57
|
StaticQuestion: saveStaticQuestionMutation,
|
|
58
58
|
DateQuestion: saveDateQuestionMutation,
|
|
59
59
|
CalculatedFloatQuestion: saveCalculatedFloatQuestionMutation,
|
|
@@ -335,7 +335,7 @@ export default class CfbFormEditorQuestion extends Component {
|
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
|
|
338
|
+
_getFilesQuestionInput(changeset) {
|
|
339
339
|
return {
|
|
340
340
|
hintText: changeset.get("hintText"),
|
|
341
341
|
};
|
|
@@ -99,7 +99,7 @@ fragment SimpleQuestion on Question {
|
|
|
99
99
|
calcExpression
|
|
100
100
|
hintText
|
|
101
101
|
}
|
|
102
|
-
... on
|
|
102
|
+
... on FilesQuestion {
|
|
103
103
|
hintText
|
|
104
104
|
}
|
|
105
105
|
... on ActionButtonQuestion {
|
|
@@ -216,8 +216,8 @@ fragment SimpleAnswer on Answer {
|
|
|
216
216
|
... on ListAnswer {
|
|
217
217
|
listValue: value
|
|
218
218
|
}
|
|
219
|
-
... on
|
|
220
|
-
|
|
219
|
+
... on FilesAnswer {
|
|
220
|
+
filesValue: value {
|
|
221
221
|
id
|
|
222
222
|
uploadUrl
|
|
223
223
|
downloadUrl
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#import QuestionInfo from '../fragments/question-info.graphql'
|
|
2
2
|
|
|
3
|
-
mutation
|
|
4
|
-
|
|
3
|
+
mutation SaveFilesQuestion($input: SaveFilesQuestionInput!) {
|
|
4
|
+
saveFilesQuestion(input: $input) {
|
|
5
5
|
question {
|
|
6
6
|
id
|
|
7
7
|
...QuestionInfo
|
|
8
|
-
... on
|
|
8
|
+
... on FilesQuestion {
|
|
9
9
|
hintText
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -19,7 +19,7 @@ export default {
|
|
|
19
19
|
hintText: or(
|
|
20
20
|
validateType("FormQuestion", true),
|
|
21
21
|
validateType("StaticQuestion", true),
|
|
22
|
-
validateType("
|
|
22
|
+
validateType("FilesQuestion", true),
|
|
23
23
|
validateLength({ max: 1024, allowBlank: true })
|
|
24
24
|
),
|
|
25
25
|
integerMinValue: or(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@projectcaluma/ember-form-builder",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.16",
|
|
4
4
|
"description": "Ember engine for building Caluma forms.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@embroider/macros": "^1.8.3",
|
|
24
24
|
"@glimmer/component": "^1.1.2",
|
|
25
25
|
"@glimmer/tracking": "^1.1.2",
|
|
26
|
-
"@projectcaluma/ember-core": "^11.0.0-beta.
|
|
27
|
-
"@projectcaluma/ember-form": "^11.0.0-beta.
|
|
26
|
+
"@projectcaluma/ember-core": "^11.0.0-beta.9",
|
|
27
|
+
"@projectcaluma/ember-form": "^11.0.0-beta.22",
|
|
28
28
|
"codejar": "^3.6.0",
|
|
29
29
|
"ember-apollo-client": "~4.0.2",
|
|
30
30
|
"ember-auto-import": "^2.4.2",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"ember-math-helpers": "^2.18.2",
|
|
41
41
|
"ember-pikaday": "^4.0.0",
|
|
42
42
|
"ember-power-select": "^5.0.4",
|
|
43
|
-
"ember-resources": "^5.
|
|
43
|
+
"ember-resources": "^5.1.1",
|
|
44
44
|
"ember-test-selectors": "^6.0.0",
|
|
45
45
|
"ember-uikit": "^5.1.3",
|
|
46
46
|
"ember-validated-form": "^5.3.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@ember/test-helpers": "2.8.1",
|
|
62
62
|
"@embroider/test-setup": "1.8.3",
|
|
63
63
|
"@faker-js/faker": "7.3.0",
|
|
64
|
-
"@projectcaluma/ember-testing": "11.0.0-beta.
|
|
64
|
+
"@projectcaluma/ember-testing": "11.0.0-beta.10",
|
|
65
65
|
"broccoli-asset-rev": "3.0.0",
|
|
66
66
|
"ember-autoresize-modifier": "^0.5.0",
|
|
67
67
|
"ember-cli": "3.28.5",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"ember-cli-terser": "4.0.2",
|
|
74
74
|
"ember-data": "3.28.10",
|
|
75
75
|
"ember-disable-prototype-extensions": "1.1.3",
|
|
76
|
-
"ember-engines": "0.8.
|
|
76
|
+
"ember-engines": "0.8.23",
|
|
77
77
|
"ember-export-application-global": "2.0.1",
|
|
78
78
|
"ember-load-initializers": "2.1.2",
|
|
79
79
|
"ember-maybe-import-regenerator": "1.0.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"npm-run-all": "4.1.5",
|
|
88
88
|
"qunit": "2.19.1",
|
|
89
89
|
"qunit-dom": "2.0.0",
|
|
90
|
-
"webpack": "5.
|
|
90
|
+
"webpack": "5.74.0"
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|
|
93
93
|
"node": "12.* || 14.* || >= 16"
|
package/translations/de.yaml
CHANGED
|
@@ -103,7 +103,7 @@ caluma:
|
|
|
103
103
|
TextareaQuestion: "Text (mehrzeilig)"
|
|
104
104
|
TableQuestion: "Tabelle"
|
|
105
105
|
FormQuestion: "Formular"
|
|
106
|
-
|
|
106
|
+
FilesQuestion: "Dateien"
|
|
107
107
|
StaticQuestion: "Nichtinteraktiver Inhalt"
|
|
108
108
|
DateQuestion: "Datum"
|
|
109
109
|
DynamicMultipleChoiceQuestion: "Dynamische Mehrfachauswahl"
|
package/translations/en.yaml
CHANGED
|
@@ -103,7 +103,7 @@ caluma:
|
|
|
103
103
|
TextareaQuestion: "Textarea"
|
|
104
104
|
TableQuestion: "Table"
|
|
105
105
|
FormQuestion: "Form"
|
|
106
|
-
|
|
106
|
+
FilesQuestion: "Files"
|
|
107
107
|
StaticQuestion: "Non-interactive content"
|
|
108
108
|
DateQuestion: "Date"
|
|
109
109
|
DynamicMultipleChoiceQuestion: "Dynamic choices"
|
package/translations/fr.yaml
CHANGED
|
@@ -102,7 +102,7 @@ caluma:
|
|
|
102
102
|
TextareaQuestion: "Texte (plusieurs lignes)"
|
|
103
103
|
TableQuestion: "Tableau"
|
|
104
104
|
FormQuestion: "Formulaire"
|
|
105
|
-
|
|
105
|
+
FilesQuestion: "Fichiers"
|
|
106
106
|
StaticQuestion: "Contenu non interactif"
|
|
107
107
|
DateQuestion: "Date"
|
|
108
108
|
DynamicMultipleChoiceQuestion: "Sélection multiple dynamique"
|