@bigbinary/neeto-form-frontend 1.3.3 → 2.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.
package/README.md CHANGED
@@ -77,12 +77,17 @@ The engine adds setup for form on backend and allows us to attach forms to any m
77
77
  ```
78
78
 
79
79
  ### Customizability
80
- The engine supports customizing the default behavior of `Questions::UpdateService`. The supported methods/constants can be overridden by defining them in the concern `NeetoFormEngine::Customizable::Questions::Updateable`
80
+
81
+ #### `NeetoFormEngine::Customizable::Questions::Createable`
82
+ The engine supports customizing the default behavior of `Questions::CreateService` by overriding the supported methods in this concern.
81
83
 
82
84
  #### Available methods:
83
- 1. `create_question!`: This takes 2 arguments: `params` and `question`. The `params` argument contains the question parameters passed from the front-end, and the `question` argument contains the current question. This argument is required if you need translation support.
85
+ 1. `create_question!`: This method receives one argument `params` that contains the question parameters passed from the front-end.
84
86
  2. `additional_question_params`: If you want to include additional attributes while creating questions, you can specify them using this method. It takes one argument `params` which will be the question parameters passed from the front-end.
85
87
 
88
+ #### `NeetoFormEngine::Customizable::Questions::Updateable`
89
+ The engine supports customizing the default behavior of `Questions::UpdateService` by overriding the supported constants in this concern.
90
+
86
91
  #### Available constants:
87
92
  1. `EXCLUDED_UPDATE_PARAMS`: If you have included extra parameters other than `kind` for additional use cases that are not valid entity attributes, they need to be specified as `EXCLUDED_UPDATE_PARAMS`.
88
93
 
@@ -4,6 +4,8 @@
4
4
  "fieldReq": "{{field}} is required",
5
5
  "thisFieldIsRequired": "This Field is required",
6
6
  "somethingWentWrong": "Something went wrong!",
7
+ "edit": "Edit",
8
+ "clone": "Clone",
7
9
  "delete": "Delete",
8
10
  "agreeTermsAndConditions": "I agree to terms & conditions mentioned below",
9
11
  "agreeCondition": "I agree",
@@ -42,7 +44,10 @@
42
44
  "addGuests": "Add guests",
43
45
  "addGuestsHelper": "Enter emails separated by comma.",
44
46
  "start": "Start",
45
- "end": "End"
47
+ "end": "End",
48
+ "settings": "Settings",
49
+ "advancedProperties": "Advanced properties",
50
+ "clonedElementLabel": "Copy of {{label, anyCase}}"
46
51
  },
47
52
  "fields": {
48
53
  "mcf": "Multiple choice",
@@ -92,9 +97,10 @@
92
97
  "common": {
93
98
  "notFound": "No questions found",
94
99
  "primaryPanel": {
95
- "addNewQuestion": "Add new question",
100
+ "addQuestion": "Add question",
96
101
  "noQuestionLeft": "No more question fields to add"
97
102
  },
103
+ "editQuestion": "Edit question",
98
104
  "cloneBtn": "Clone",
99
105
  "questionFields": {
100
106
  "field": {
@@ -107,8 +113,10 @@
107
113
  "options": "Options",
108
114
  "labelExample": "Eg: {{what}}",
109
115
  "label": "Label",
116
+ "fieldCodeTitle": "Advanced settings",
110
117
  "fieldCode": "Field code",
111
- "fieldCodeHelpDescription": "If you change the field code, any existing shared URLs containing the old field code as query parameter, will not work correctly. <Link>View help article</Link> for more information."
118
+ "fieldCodeHelpDescription": "If you change the field code, any existing shared links containing the old field code as query parameter, will not work correctly. <Link>View help article</Link> for more information.",
119
+ "questionType": "Question type"
112
120
  }
113
121
  }
114
122
  },
@@ -121,7 +129,8 @@
121
129
  "selectMin": "Please select {{min}} {{entity}}",
122
130
  "invalidType": "{{label}} should be a valid {{type}}",
123
131
  "minCount": "{{field}} must be greater than or equal to {{value}}",
124
- "maxCount": "{{field}} must be less than or equal to {{value}}"
132
+ "maxCount": "{{field}} must be less than or equal to {{value}}",
133
+ "fieldCantBeEmpty": "{{field, anyCase}} can't be empty"
125
134
  },
126
135
  "fileTypes": {
127
136
  "documents": "Documents",