@projectcaluma/ember-form-builder 9.0.5 → 10.0.0

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/addon/components/cfb-float-input.hbs +14 -0
  3. package/addon/components/cfb-float-input.js +10 -4
  4. package/addon/components/cfb-form-editor/general.hbs +90 -86
  5. package/addon/components/cfb-form-editor/general.js +43 -45
  6. package/addon/components/cfb-form-editor/question/default.hbs +11 -9
  7. package/addon/components/cfb-form-editor/question/default.js +19 -29
  8. package/addon/components/cfb-form-editor/question/options.hbs +80 -82
  9. package/addon/components/cfb-form-editor/question/options.js +116 -105
  10. package/addon/components/cfb-form-editor/question/validation.hbs +14 -12
  11. package/addon/components/cfb-form-editor/question/validation.js +22 -31
  12. package/addon/components/cfb-form-editor/question-list/item.js +2 -4
  13. package/addon/components/cfb-form-editor/question.hbs +455 -380
  14. package/addon/components/cfb-form-editor/question.js +162 -138
  15. package/addon/components/cfb-form-list.hbs +1 -1
  16. package/addon/components/cfb-jexl-boolean-toggle-switch.hbs +12 -10
  17. package/addon/components/cfb-jexl-boolean-toggle-switch.js +11 -10
  18. package/addon/components/cfb-label.hbs +12 -4
  19. package/addon/components/cfb-toggle-switch.hbs +14 -12
  20. package/addon/gql/mutations/add-form-question.graphql +2 -2
  21. package/addon/gql/mutations/remove-form-question.graphql +2 -2
  22. package/addon/gql/mutations/reorder-form-questions.graphql +2 -2
  23. package/addon/gql/mutations/save-action-button-question.graphql +15 -0
  24. package/addon/gql/mutations/save-calculated-float-question.graphql +1 -1
  25. package/addon/gql/mutations/save-choice-question.graphql +1 -1
  26. package/addon/gql/mutations/save-date-question.graphql +1 -1
  27. package/addon/gql/mutations/save-default-date-answer.graphql +2 -6
  28. package/addon/gql/mutations/save-default-float-answer.graphql +2 -6
  29. package/addon/gql/mutations/save-default-integer-answer.graphql +2 -6
  30. package/addon/gql/mutations/save-default-list-answer.graphql +2 -6
  31. package/addon/gql/mutations/save-default-string-answer.graphql +2 -6
  32. package/addon/gql/mutations/save-default-table-answer.graphql +2 -6
  33. package/addon/gql/mutations/save-dynamic-choice-question.graphql +1 -1
  34. package/addon/gql/mutations/save-dynamic-multiple-choice-question.graphql +1 -1
  35. package/addon/gql/mutations/save-file-question.graphql +1 -1
  36. package/addon/gql/mutations/save-float-question.graphql +1 -1
  37. package/addon/gql/mutations/save-form-question.graphql +1 -1
  38. package/addon/gql/mutations/save-form.graphql +1 -1
  39. package/addon/gql/mutations/save-integer-question.graphql +1 -1
  40. package/addon/gql/mutations/save-multiple-choice-question.graphql +1 -1
  41. package/addon/gql/mutations/save-static-question.graphql +1 -1
  42. package/addon/gql/mutations/save-table-question.graphql +1 -1
  43. package/addon/gql/mutations/save-text-question.graphql +1 -1
  44. package/addon/gql/mutations/save-textarea-question.graphql +1 -1
  45. package/addon/gql/queries/form-editor-general.graphql +1 -1
  46. package/addon/gql/queries/form-editor-question.graphql +7 -3
  47. package/addon/gql/queries/form-list.graphql +1 -1
  48. package/addon/gql/queries/search-form-question.graphql +1 -1
  49. package/addon/gql/queries/search-question.graphql +1 -1
  50. package/addon/routes/edit/questions/edit.js +1 -1
  51. package/addon/routes/edit.js +1 -1
  52. package/package.json +21 -21
  53. package/translations/de.yaml +18 -4
  54. package/translations/en.yaml +18 -4
  55. package/addon/components/cfb-float-input/input.js +0 -12
  56. package/addon/components/cfb-label.js +0 -5
  57. package/addon/gql/fragments/field-answer.graphql +0 -57
  58. package/addon/gql/fragments/field-question.graphql +0 -159
  59. package/addon/gql/mutations/archive-form.graphql +0 -5
  60. package/addon/gql/mutations/remove-document.graphql +0 -5
  61. package/addon/gql/queries/all-format-validators.graphql +0 -12
  62. package/addon/gql/queries/all-work-items.graphql +0 -9
  63. package/addon/gql/queries/data-source.graphql +0 -10
  64. package/addon/gql/queries/get-document-answers.graphql +0 -21
  65. package/addon/gql/queries/get-document-forms.graphql +0 -20
  66. package/addon/gql/queries/get-document-used-dynamic-options.graphql +0 -12
  67. package/addon/gql/queries/get-dynamic-options.graphql +0 -29
  68. package/addon/gql/queries/get-fileanswer-info.graphql +0 -13
  69. package/app/components/cfb-float-input/input.js +0 -1
@@ -1,9 +1,5 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/field-answer.graphql'
2
-
3
- mutation ($input: SaveDefaultDateAnswerInput!) {
1
+ mutation SaveDefaultDateAnswer($input: SaveDefaultDateAnswerInput!) {
4
2
  saveDefaultDateAnswer(input: $input) {
5
- answer {
6
- ...FieldAnswer
7
- }
3
+ clientMutationId
8
4
  }
9
5
  }
@@ -1,9 +1,5 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/field-answer.graphql'
2
-
3
- mutation ($input: SaveDefaultFloatAnswerInput!) {
1
+ mutation SaveDefaultFloatAnswer($input: SaveDefaultFloatAnswerInput!) {
4
2
  saveDefaultFloatAnswer(input: $input) {
5
- answer {
6
- ...FieldAnswer
7
- }
3
+ clientMutationId
8
4
  }
9
5
  }
@@ -1,9 +1,5 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/field-answer.graphql'
2
-
3
- mutation ($input: SaveDefaultIntegerAnswerInput!) {
1
+ mutation SaveDefaultIntegerAnswer($input: SaveDefaultIntegerAnswerInput!) {
4
2
  saveDefaultIntegerAnswer(input: $input) {
5
- answer {
6
- ...FieldAnswer
7
- }
3
+ clientMutationId
8
4
  }
9
5
  }
@@ -1,9 +1,5 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/field-answer.graphql'
2
-
3
- mutation ($input: SaveDefaultListAnswerInput!) {
1
+ mutation SaveDefaultListAnswer($input: SaveDefaultListAnswerInput!) {
4
2
  saveDefaultListAnswer(input: $input) {
5
- answer {
6
- ...FieldAnswer
7
- }
3
+ clientMutationId
8
4
  }
9
5
  }
@@ -1,9 +1,5 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/field-answer.graphql'
2
-
3
- mutation ($input: SaveDefaultStringAnswerInput!) {
1
+ mutation SaveDefaultStringAnswer($input: SaveDefaultStringAnswerInput!) {
4
2
  saveDefaultStringAnswer(input: $input) {
5
- answer {
6
- ...FieldAnswer
7
- }
3
+ clientMutationId
8
4
  }
9
5
  }
@@ -1,9 +1,5 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/field-answer.graphql'
2
-
3
- mutation ($input: SaveDefaultTableAnswerInput!) {
1
+ mutation SaveDefaultTableAnswer($input: SaveDefaultTableAnswerInput!) {
4
2
  saveDefaultTableAnswer(input: $input) {
5
- answer {
6
- ...FieldAnswer
7
- }
3
+ clientMutationId
8
4
  }
9
5
  }
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  mutation SaveDynamicChoiceQuestion($input: SaveDynamicChoiceQuestionInput!) {
4
4
  saveDynamicChoiceQuestion(input: $input) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  mutation SaveDynamicMultipleChoiceQuestion(
4
4
  $input: SaveDynamicMultipleChoiceQuestionInput!
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  mutation SaveFileQuestion($input: SaveFileQuestionInput!) {
4
4
  saveFileQuestion(input: $input) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  mutation SaveFloatQuestion($input: SaveFloatQuestionInput!) {
4
4
  saveFloatQuestion(input: $input) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  mutation SaveFormQuestion($input: SaveFormQuestionInput!) {
4
4
  saveFormQuestion(input: $input) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/form-info.graphql'
1
+ #import FormInfo from '../fragments/form-info.graphql'
2
2
 
3
3
  mutation SaveForm($input: SaveFormInput!) {
4
4
  saveForm(input: $input) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  mutation SaveIntegerQuestion($input: SaveIntegerQuestionInput!) {
4
4
  saveIntegerQuestion(input: $input) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  mutation SaveMultipleChoiceQuestion($input: SaveMultipleChoiceQuestionInput!) {
4
4
  saveMultipleChoiceQuestion(input: $input) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  mutation SaveStaticQuestion($input: SaveStaticQuestionInput!) {
4
4
  saveStaticQuestion(input: $input) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  mutation SaveTableQuestion($input: SaveTableQuestionInput!) {
4
4
  saveTableQuestion(input: $input) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  mutation SaveTextQuestion($input: SaveTextQuestionInput!) {
4
4
  saveTextQuestion(input: $input) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  mutation SaveTextareaQuestion($input: SaveTextareaQuestionInput!) {
4
4
  saveTextareaQuestion(input: $input) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/form-info.graphql'
1
+ #import FormInfo from '../fragments/form-info.graphql'
2
2
 
3
3
  query FormEditorGeneral($slug: String!) {
4
4
  allForms(filter: [{ slug: $slug }]) {
@@ -1,6 +1,5 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
2
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/field-question.graphql'
3
- # import SimpleAnswer from '@projectcaluma/ember-form-builder/gql/fragments/field-answer.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
+ #import FieldQuestion, FieldTableQuestion, SimpleAnswer, SimpleQuestion from '../fragments/field.graphql'
4
3
 
5
4
  query FormEditorQuestion($slug: String!) {
6
5
  allQuestions(filter: [{ slug: $slug }]) {
@@ -132,6 +131,11 @@ query FormEditorQuestion($slug: String!) {
132
131
  ... on CalculatedFloatQuestion {
133
132
  calcExpression
134
133
  }
134
+ ... on ActionButtonQuestion {
135
+ action
136
+ color
137
+ validateOnEnter
138
+ }
135
139
  }
136
140
  }
137
141
  }
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/form-info.graphql'
1
+ #import FormInfo from '../fragments/form-info.graphql'
2
2
 
3
3
  query FormList($filter: [FormFilterSetType], $order: [FormOrderSetType]) {
4
4
  allForms(filter: $filter, order: $order) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  query SearchFormQuestion($slug: String!, $search: String, $archived: Boolean) {
4
4
  allForms(filter: [{ slug: $slug }]) {
@@ -1,4 +1,4 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/question-info.graphql'
1
+ #import QuestionInfo from '../fragments/question-info.graphql'
2
2
 
3
3
  query SearchQuestion(
4
4
  $search: String
@@ -2,7 +2,7 @@ import Route from "@ember/routing/route";
2
2
  import { inject as service } from "@ember/service";
3
3
  import { queryManager } from "ember-apollo-client";
4
4
  import { lastValue, dropTask } from "ember-concurrency-decorators";
5
- import gql from "graphql-tag";
5
+ import { gql } from "graphql-tag";
6
6
 
7
7
  import { navigationTitle } from "@projectcaluma/ember-form-builder/decorators";
8
8
 
@@ -2,7 +2,7 @@ import Route from "@ember/routing/route";
2
2
  import { inject as service } from "@ember/service";
3
3
  import { queryManager } from "ember-apollo-client";
4
4
  import { lastValue, dropTask } from "ember-concurrency-decorators";
5
- import gql from "graphql-tag";
5
+ import { gql } from "graphql-tag";
6
6
 
7
7
  import { navigationTitle } from "@projectcaluma/ember-form-builder/decorators";
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form-builder",
3
- "version": "9.0.5",
3
+ "version": "10.0.0",
4
4
  "description": "Ember engine for building Caluma forms.",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -18,39 +18,39 @@
18
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.3",
22
- "@projectcaluma/ember-form": "9.1.1",
21
+ "@projectcaluma/ember-core": "^10.0.0",
22
+ "@projectcaluma/ember-form": "^10.0.0",
23
23
  "codejar": "^3.5.0",
24
24
  "ember-apollo-client": "^3.2.0",
25
- "ember-auto-import": "^2.2.0",
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": "^5.7.1",
29
+ "ember-cli-htmlbars": "^6.0.0",
30
30
  "ember-composable-helpers": "^4.5.0",
31
- "ember-concurrency": "^2.1.2",
31
+ "ember-concurrency": "^2.2.0",
32
32
  "ember-concurrency-decorators": "^2.0.3",
33
33
  "ember-engines-router-service": "^0.3.0",
34
34
  "ember-fetch": "^8.0.4",
35
- "ember-math-helpers": "^2.17.3",
35
+ "ember-math-helpers": "^2.18.0",
36
36
  "ember-pikaday": "^3.0.0",
37
- "ember-power-select": "^4.1.6",
37
+ "ember-power-select": "^4.1.7",
38
38
  "ember-test-selectors": "^6.0.0",
39
39
  "ember-uikit": "^4.0.0",
40
- "ember-validated-form": "^3.0.3",
41
- "graphql": "^15.6.0",
42
- "graphql-tag": "^2.12.5",
40
+ "ember-validated-form": "^5.0.0",
41
+ "graphql": "^15.6.1",
42
+ "graphql-tag": "^2.12.6",
43
43
  "jexl": "^2.3.0",
44
44
  "moment": "^2.29.1",
45
45
  "prismjs": "^1.25.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@ember/optional-features": "2.0.0",
49
- "@ember/test-helpers": "2.5.0",
50
- "@embroider/test-setup": "0.45.0",
51
- "@projectcaluma/ember-testing": "9.0.0",
49
+ "@ember/test-helpers": "2.6.0",
50
+ "@embroider/test-setup": "0.47.2",
51
+ "@projectcaluma/ember-testing": "9.1.0",
52
52
  "broccoli-asset-rev": "3.0.0",
53
- "ember-cli": "3.28.1",
53
+ "ember-cli": "3.28.4",
54
54
  "ember-cli-code-coverage": "1.0.3",
55
55
  "ember-cli-dependency-checker": "3.2.0",
56
56
  "ember-cli-inject-live-reload": "2.1.0",
@@ -59,24 +59,24 @@
59
59
  "ember-cli-terser": "4.0.2",
60
60
  "ember-data": "3.28.3",
61
61
  "ember-disable-prototype-extensions": "1.1.3",
62
- "ember-engines": "0.8.19",
62
+ "ember-engines": "0.8.20",
63
63
  "ember-export-application-global": "2.0.1",
64
64
  "ember-load-initializers": "2.1.2",
65
65
  "ember-maybe-import-regenerator": "1.0.0",
66
- "ember-qunit": "5.1.4",
66
+ "ember-qunit": "5.1.5",
67
67
  "ember-resolver": "8.0.3",
68
- "ember-source": "3.28.1",
68
+ "ember-source": "3.28.6",
69
69
  "ember-source-channel-url": "3.0.0",
70
- "ember-try": "1.4.0",
70
+ "ember-try": "2.0.0",
71
71
  "faker": "5.5.3",
72
72
  "loader.js": "4.7.0",
73
73
  "npm-run-all": "4.1.5",
74
74
  "qunit": "2.17.2",
75
75
  "qunit-dom": "2.0.0",
76
- "webpack": "5.58.0"
76
+ "webpack": "5.64.1"
77
77
  },
78
78
  "engines": {
79
- "node": "10.* || >= 12"
79
+ "node": "12.* || 14.* || >= 16"
80
80
  },
81
81
  "ember": {
82
82
  "edition": "octane"
@@ -52,6 +52,7 @@ caluma:
52
52
  isRequired: "Pflichtfeld"
53
53
  staticContent: "Statischer Inhalt"
54
54
  infoText: "Infotext"
55
+ confirmationText: "Bestätigungstext"
55
56
  placeholder: "Platzhalter"
56
57
  isHidden: "Versteckt (JEXL)"
57
58
  widgetOverride: "Anzeigetyp"
@@ -75,8 +76,8 @@ caluma:
75
76
  choose: "-- bitte wählen --"
76
77
  search-placeholder: "Hier tippen um zu suchen"
77
78
  search-empty: "Keine Formulare gefunden"
78
- columnsToDisplay: "Spalten zur Anzeige auswählen"
79
- calcExpression: "Berechnungsformel"
79
+ columnsToDisplay: "Spalten zur Anzeige im Formular"
80
+ calcExpression: "Berechnungsformel (JEXL)"
80
81
 
81
82
  new: "Neue Frage"
82
83
 
@@ -107,12 +108,25 @@ caluma:
107
108
  DynamicMultipleChoiceQuestion: "Dynamische Mehrfachauswahl"
108
109
  DynamicChoiceQuestion: "Dynamische Einzelauswahl"
109
110
  CalculatedFloatQuestion: "Berechnung (Gleitkommazahl)"
111
+ ActionButtonQuestion: "Aktionsbutton"
112
+
113
+ confirmText: "Bestätigungstext"
114
+ action: "Aktion"
115
+ color: "Farbe"
116
+ validateOnEnter: "Validierung beim Betreten des Fensters"
117
+
118
+ actions:
119
+ COMPLETE: "Abschliessen"
120
+ SKIP: "Überspringen"
121
+
122
+ colors:
123
+ PRIMARY: "Primär"
124
+ SECONDARY: "Sekundär"
125
+ DEFAULT: "Standard"
110
126
 
111
127
  widgetOverrides:
112
128
  powerselect: "Power Select"
113
129
  hidden: "Versteckt"
114
- dummy-one: "Dummy One"
115
- dummy-two: "Dummy Two"
116
130
 
117
131
  not-found: "Keine Frage mit dem Slug '{slug}' gefunden"
118
132
 
@@ -52,6 +52,7 @@ caluma:
52
52
  isRequired: "Required"
53
53
  staticContent: "Static content"
54
54
  infoText: "Information text"
55
+ confirmationText: "Confirmation text"
55
56
  placeholder: "Placeholder"
56
57
  isHidden: "Hidden (JEXL)"
57
58
  widgetOverride: "Widget type"
@@ -75,8 +76,8 @@ caluma:
75
76
  choose: "-- please choose --"
76
77
  search-placeholder: "Type here to search forms"
77
78
  search-empty: "Search didn't match any forms"
78
- columnsToDisplay: "Select columns to be shown"
79
- calcExpression: "Calculation formula"
79
+ columnsToDisplay: "Columns to be shown in the form"
80
+ calcExpression: "Calculation formula (JEXL)"
80
81
 
81
82
  new: "New question"
82
83
 
@@ -107,12 +108,25 @@ caluma:
107
108
  DynamicMultipleChoiceQuestion: "Dynamic choices"
108
109
  DynamicChoiceQuestion: "Dynamic choice"
109
110
  CalculatedFloatQuestion: "Calculation (float)"
111
+ ActionButtonQuestion: "Action button"
112
+
113
+ confirmText: "Confirm text"
114
+ action: "Action"
115
+ color: "Color"
116
+ validateOnEnter: "Validate on entering the viewport"
117
+
118
+ actions:
119
+ COMPLETE: "Complete"
120
+ SKIP: "Skip"
121
+
122
+ colors:
123
+ PRIMARY: "Primary"
124
+ SECONDARY: "Secondary"
125
+ DEFAULT: "Default"
110
126
 
111
127
  widgetOverrides:
112
128
  powerselect: "Power Select"
113
129
  hidden: "Hidden"
114
- dummy-one: "Dummy One"
115
- dummy-two: "Dummy Two"
116
130
 
117
131
  not-found: "No question with slug '{slug}' found"
118
132
 
@@ -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
- });
@@ -1,5 +0,0 @@
1
- import LabelComponent from "ember-validated-form/components/validated-input/-themes/uikit/label";
2
-
3
- export default LabelComponent.extend({
4
- classNames: ["uk-flex", "uk-flex-between"],
5
- });
@@ -1,57 +0,0 @@
1
- # import * from '@projectcaluma/ember-form-builder/gql/fragments/field-question.graphql'
2
-
3
- fragment SimpleAnswer on Answer {
4
- id
5
- question {
6
- slug
7
- }
8
- ... on StringAnswer {
9
- stringValue: value
10
- }
11
- ... on IntegerAnswer {
12
- integerValue: value
13
- }
14
- ... on FloatAnswer {
15
- floatValue: value
16
- }
17
- ... on ListAnswer {
18
- listValue: value
19
- }
20
- ... on FileAnswer {
21
- fileValue: value {
22
- uploadUrl
23
- downloadUrl
24
- metadata
25
- name
26
- }
27
- }
28
- ... on DateAnswer {
29
- dateValue: value
30
- }
31
- }
32
-
33
- fragment FieldAnswer on Answer {
34
- ...SimpleAnswer
35
- ... on TableAnswer {
36
- tableValue: value {
37
- id
38
- form {
39
- slug
40
- questions {
41
- edges {
42
- node {
43
- ...FieldQuestion
44
- }
45
- }
46
- }
47
- }
48
- answers {
49
- edges {
50
- node {
51
- ...SimpleAnswer
52
- }
53
- }
54
- }
55
- }
56
- }
57
- }
@@ -1,159 +0,0 @@
1
- fragment SimpleQuestion on Question {
2
- slug
3
- label
4
- isRequired
5
- isHidden
6
- meta
7
- infoText
8
- ... on TextQuestion {
9
- textMinLength: minLength
10
- textMaxLength: maxLength
11
- textDefaultAnswer: defaultAnswer {
12
- value
13
- }
14
- placeholder
15
- }
16
- ... on TextareaQuestion {
17
- textareaMinLength: minLength
18
- textareaMaxLength: maxLength
19
- textareaDefaultAnswer: defaultAnswer {
20
- value
21
- }
22
- placeholder
23
- }
24
- ... on IntegerQuestion {
25
- integerMinValue: minValue
26
- integerMaxValue: maxValue
27
- integerDefaultAnswer: defaultAnswer {
28
- value
29
- }
30
- placeholder
31
- }
32
- ... on FloatQuestion {
33
- floatMinValue: minValue
34
- floatMaxValue: maxValue
35
- floatDefaultAnswer: defaultAnswer {
36
- value
37
- }
38
- placeholder
39
- }
40
- ... on ChoiceQuestion {
41
- choiceOptions: options {
42
- edges {
43
- node {
44
- slug
45
- label
46
- isArchived
47
- }
48
- }
49
- }
50
- choiceDefaultAnswer: defaultAnswer {
51
- value
52
- }
53
- }
54
- ... on MultipleChoiceQuestion {
55
- multipleChoiceOptions: options {
56
- edges {
57
- node {
58
- slug
59
- label
60
- isArchived
61
- }
62
- }
63
- }
64
- multipleChoiceDefaultAnswer: defaultAnswer {
65
- value
66
- }
67
- }
68
- ... on DateQuestion {
69
- dateDefaultAnswer: defaultAnswer {
70
- value
71
- }
72
- }
73
- ... on StaticQuestion {
74
- staticContent
75
- }
76
- ... on CalculatedFloatQuestion {
77
- calcExpression
78
- }
79
- }
80
-
81
- fragment FieldTableQuestion on Question {
82
- ... on TableQuestion {
83
- rowForm {
84
- slug
85
- questions {
86
- edges {
87
- node {
88
- ...SimpleQuestion
89
- }
90
- }
91
- }
92
- }
93
- tableDefaultAnswer: defaultAnswer {
94
- value {
95
- id
96
- answers {
97
- edges {
98
- node {
99
- id
100
- question {
101
- slug
102
- }
103
- ... on StringAnswer {
104
- stringValue: value
105
- }
106
- ... on IntegerAnswer {
107
- integerValue: value
108
- }
109
- ... on FloatAnswer {
110
- floatValue: value
111
- }
112
- ... on ListAnswer {
113
- listValue: value
114
- }
115
- ... on DateAnswer {
116
- dateValue: value
117
- }
118
- }
119
- }
120
- }
121
- }
122
- }
123
- }
124
- }
125
-
126
- fragment FieldQuestion on Question {
127
- ...SimpleQuestion
128
- ...FieldTableQuestion
129
- ... on FormQuestion {
130
- subForm {
131
- slug
132
- name
133
- questions {
134
- edges {
135
- node {
136
- # This part here limits our query to 2 level deep nested forms. This
137
- # has to be solved in another way!
138
- ...SimpleQuestion
139
- ...FieldTableQuestion
140
- ... on FormQuestion {
141
- subForm {
142
- slug
143
- name
144
- questions {
145
- edges {
146
- node {
147
- ...SimpleQuestion
148
- ...FieldTableQuestion
149
- }
150
- }
151
- }
152
- }
153
- }
154
- }
155
- }
156
- }
157
- }
158
- }
159
- }