@projectcaluma/ember-form-builder 11.0.0-beta.33 → 11.0.0-beta.35
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#import QuestionInfo from '../fragments/question-info.graphql'
|
|
2
|
-
#import FieldQuestion, FieldTableQuestion, SimpleAnswer, SimpleQuestion from '
|
|
2
|
+
#import FieldQuestion, FieldTableQuestion, SimpleAnswer, SimpleQuestion from '@projectcaluma/ember-form/gql/fragments/field.graphql'
|
|
3
3
|
|
|
4
4
|
query FormEditorQuestion($slug: String!) {
|
|
5
5
|
allQuestions(filter: [{ slugs: [$slug] }]) {
|
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.35",
|
|
4
4
|
"description": "Ember engine for building Caluma forms.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"@embroider/macros": "^1.9.0",
|
|
25
25
|
"@glimmer/component": "^1.1.2",
|
|
26
26
|
"@glimmer/tracking": "^1.1.2",
|
|
27
|
-
"@projectcaluma/ember-core": "^11.0.0-beta.
|
|
28
|
-
"@projectcaluma/ember-form": "^11.0.0-beta.
|
|
27
|
+
"@projectcaluma/ember-core": "^11.0.0-beta.35",
|
|
28
|
+
"@projectcaluma/ember-form": "^11.0.0-beta.35",
|
|
29
29
|
"codejar": "^3.6.0",
|
|
30
30
|
"ember-apollo-client": "~4.0.2",
|
|
31
31
|
"ember-auto-import": "^2.4.3",
|
|
32
|
-
"ember-changeset": "^4.1.
|
|
32
|
+
"ember-changeset": "^4.1.2",
|
|
33
33
|
"ember-changeset-validations": "^4.1.0",
|
|
34
34
|
"ember-cli-babel": "^7.26.11",
|
|
35
35
|
"ember-cli-htmlbars": "^6.1.1",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"ember-fetch": "^8.1.2",
|
|
40
40
|
"ember-flatpickr": "^3.2.3",
|
|
41
41
|
"ember-intl": "^5.7.2",
|
|
42
|
-
"ember-math-helpers": "^
|
|
42
|
+
"ember-math-helpers": "^3.0.0",
|
|
43
43
|
"ember-power-select": "^6.0.1",
|
|
44
|
-
"ember-resources": "^5.
|
|
44
|
+
"ember-resources": "^5.5.0",
|
|
45
45
|
"ember-test-selectors": "^6.0.0",
|
|
46
46
|
"ember-uikit": "^6.1.0",
|
|
47
47
|
"ember-validated-form": "^6.1.2",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@ember/test-helpers": "2.7.0",
|
|
63
63
|
"@embroider/test-setup": "1.8.3",
|
|
64
64
|
"@faker-js/faker": "7.6.0",
|
|
65
|
-
"@projectcaluma/ember-testing": "11.0.0-beta.
|
|
65
|
+
"@projectcaluma/ember-testing": "11.0.0-beta.35",
|
|
66
66
|
"broccoli-asset-rev": "3.0.0",
|
|
67
67
|
"ember-autoresize-modifier": "^0.6.0",
|
|
68
68
|
"ember-cli": "4.8.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"loader.js": "4.7.0",
|
|
85
85
|
"miragejs": "0.1.45",
|
|
86
86
|
"npm-run-all": "4.1.5",
|
|
87
|
-
"qunit": "2.19.
|
|
87
|
+
"qunit": "2.19.3",
|
|
88
88
|
"qunit-dom": "2.0.0",
|
|
89
89
|
"webpack": "5.74.0"
|
|
90
90
|
},
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
# We can not symlink this file so an exact copy exists in another package:
|
|
2
|
-
# packages/form-builder/addon/gql/fragments/field.graphql
|
|
3
|
-
#
|
|
4
|
-
# When changing this file the other must also receive the same changes.
|
|
5
|
-
|
|
6
|
-
fragment SimpleQuestion on Question {
|
|
7
|
-
id
|
|
8
|
-
slug
|
|
9
|
-
label
|
|
10
|
-
isRequired
|
|
11
|
-
isHidden
|
|
12
|
-
meta
|
|
13
|
-
infoText
|
|
14
|
-
... on TextQuestion {
|
|
15
|
-
textMinLength: minLength
|
|
16
|
-
textMaxLength: maxLength
|
|
17
|
-
textDefaultAnswer: defaultAnswer {
|
|
18
|
-
id
|
|
19
|
-
value
|
|
20
|
-
}
|
|
21
|
-
placeholder
|
|
22
|
-
hintText
|
|
23
|
-
}
|
|
24
|
-
... on TextareaQuestion {
|
|
25
|
-
textareaMinLength: minLength
|
|
26
|
-
textareaMaxLength: maxLength
|
|
27
|
-
textareaDefaultAnswer: defaultAnswer {
|
|
28
|
-
id
|
|
29
|
-
value
|
|
30
|
-
}
|
|
31
|
-
placeholder
|
|
32
|
-
hintText
|
|
33
|
-
}
|
|
34
|
-
... on IntegerQuestion {
|
|
35
|
-
integerMinValue: minValue
|
|
36
|
-
integerMaxValue: maxValue
|
|
37
|
-
integerDefaultAnswer: defaultAnswer {
|
|
38
|
-
id
|
|
39
|
-
value
|
|
40
|
-
}
|
|
41
|
-
placeholder
|
|
42
|
-
hintText
|
|
43
|
-
}
|
|
44
|
-
... on FloatQuestion {
|
|
45
|
-
floatMinValue: minValue
|
|
46
|
-
floatMaxValue: maxValue
|
|
47
|
-
floatDefaultAnswer: defaultAnswer {
|
|
48
|
-
id
|
|
49
|
-
value
|
|
50
|
-
}
|
|
51
|
-
placeholder
|
|
52
|
-
hintText
|
|
53
|
-
}
|
|
54
|
-
... on ChoiceQuestion {
|
|
55
|
-
choiceOptions: options {
|
|
56
|
-
edges {
|
|
57
|
-
node {
|
|
58
|
-
id
|
|
59
|
-
slug
|
|
60
|
-
label
|
|
61
|
-
isArchived
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
choiceDefaultAnswer: defaultAnswer {
|
|
66
|
-
id
|
|
67
|
-
value
|
|
68
|
-
}
|
|
69
|
-
hintText
|
|
70
|
-
}
|
|
71
|
-
... on MultipleChoiceQuestion {
|
|
72
|
-
multipleChoiceOptions: options {
|
|
73
|
-
edges {
|
|
74
|
-
node {
|
|
75
|
-
id
|
|
76
|
-
slug
|
|
77
|
-
label
|
|
78
|
-
isArchived
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
multipleChoiceDefaultAnswer: defaultAnswer {
|
|
83
|
-
id
|
|
84
|
-
value
|
|
85
|
-
}
|
|
86
|
-
hintText
|
|
87
|
-
}
|
|
88
|
-
... on DateQuestion {
|
|
89
|
-
dateDefaultAnswer: defaultAnswer {
|
|
90
|
-
id
|
|
91
|
-
value
|
|
92
|
-
}
|
|
93
|
-
hintText
|
|
94
|
-
}
|
|
95
|
-
... on StaticQuestion {
|
|
96
|
-
staticContent
|
|
97
|
-
}
|
|
98
|
-
... on CalculatedFloatQuestion {
|
|
99
|
-
calcExpression
|
|
100
|
-
hintText
|
|
101
|
-
}
|
|
102
|
-
... on FilesQuestion {
|
|
103
|
-
hintText
|
|
104
|
-
}
|
|
105
|
-
... on ActionButtonQuestion {
|
|
106
|
-
action
|
|
107
|
-
color
|
|
108
|
-
validateOnEnter
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
fragment FieldTableQuestion on Question {
|
|
113
|
-
id
|
|
114
|
-
... on TableQuestion {
|
|
115
|
-
rowForm {
|
|
116
|
-
id
|
|
117
|
-
slug
|
|
118
|
-
questions {
|
|
119
|
-
edges {
|
|
120
|
-
node {
|
|
121
|
-
...SimpleQuestion
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
hintText
|
|
127
|
-
tableDefaultAnswer: defaultAnswer {
|
|
128
|
-
id
|
|
129
|
-
value {
|
|
130
|
-
id
|
|
131
|
-
answers {
|
|
132
|
-
edges {
|
|
133
|
-
node {
|
|
134
|
-
id
|
|
135
|
-
question {
|
|
136
|
-
id
|
|
137
|
-
slug
|
|
138
|
-
}
|
|
139
|
-
... on StringAnswer {
|
|
140
|
-
stringValue: value
|
|
141
|
-
}
|
|
142
|
-
... on IntegerAnswer {
|
|
143
|
-
integerValue: value
|
|
144
|
-
}
|
|
145
|
-
... on FloatAnswer {
|
|
146
|
-
floatValue: value
|
|
147
|
-
}
|
|
148
|
-
... on ListAnswer {
|
|
149
|
-
listValue: value
|
|
150
|
-
}
|
|
151
|
-
... on DateAnswer {
|
|
152
|
-
dateValue: value
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
fragment FieldQuestion on Question {
|
|
163
|
-
id
|
|
164
|
-
...SimpleQuestion
|
|
165
|
-
...FieldTableQuestion
|
|
166
|
-
... on FormQuestion {
|
|
167
|
-
subForm {
|
|
168
|
-
id
|
|
169
|
-
slug
|
|
170
|
-
name
|
|
171
|
-
questions {
|
|
172
|
-
edges {
|
|
173
|
-
node {
|
|
174
|
-
# This part here limits our query to 2 level deep nested forms. This
|
|
175
|
-
# has to be solved in another way!
|
|
176
|
-
id
|
|
177
|
-
...SimpleQuestion
|
|
178
|
-
...FieldTableQuestion
|
|
179
|
-
... on FormQuestion {
|
|
180
|
-
subForm {
|
|
181
|
-
id
|
|
182
|
-
slug
|
|
183
|
-
name
|
|
184
|
-
questions {
|
|
185
|
-
edges {
|
|
186
|
-
node {
|
|
187
|
-
...SimpleQuestion
|
|
188
|
-
...FieldTableQuestion
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
fragment SimpleAnswer on Answer {
|
|
202
|
-
id
|
|
203
|
-
question {
|
|
204
|
-
id
|
|
205
|
-
slug
|
|
206
|
-
}
|
|
207
|
-
... on StringAnswer {
|
|
208
|
-
stringValue: value
|
|
209
|
-
}
|
|
210
|
-
... on IntegerAnswer {
|
|
211
|
-
integerValue: value
|
|
212
|
-
}
|
|
213
|
-
... on FloatAnswer {
|
|
214
|
-
floatValue: value
|
|
215
|
-
}
|
|
216
|
-
... on ListAnswer {
|
|
217
|
-
listValue: value
|
|
218
|
-
}
|
|
219
|
-
... on FilesAnswer {
|
|
220
|
-
filesValue: value {
|
|
221
|
-
id
|
|
222
|
-
uploadUrl
|
|
223
|
-
downloadUrl
|
|
224
|
-
metadata
|
|
225
|
-
name
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
... on DateAnswer {
|
|
229
|
-
dateValue: value
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
fragment FieldAnswer on Answer {
|
|
234
|
-
id
|
|
235
|
-
...SimpleAnswer
|
|
236
|
-
... on TableAnswer {
|
|
237
|
-
tableValue: value {
|
|
238
|
-
id
|
|
239
|
-
form {
|
|
240
|
-
id
|
|
241
|
-
slug
|
|
242
|
-
questions {
|
|
243
|
-
edges {
|
|
244
|
-
node {
|
|
245
|
-
...FieldQuestion
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
answers {
|
|
251
|
-
edges {
|
|
252
|
-
node {
|
|
253
|
-
...SimpleAnswer
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|