@scenid/react-formulator 0.1.9 → 0.1.10

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/dist/index.cjs.js CHANGED
@@ -29419,7 +29419,8 @@ var FormSelect = function FormSelect(_ref) {
29419
29419
  return l.label.localeCompare(r.label);
29420
29420
  })));
29421
29421
  return /*#__PURE__*/React__default["default"].createElement(core$1.TextField, _extends({
29422
- select: true
29422
+ select: true,
29423
+ required: required
29423
29424
  }, props), allOptions.map(function (_ref2) {
29424
29425
  var itemLabel = _ref2.label,
29425
29426
  itemValue = _ref2.value;
@@ -75512,6 +75513,7 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
75512
75513
  };
75513
75514
  } else {
75514
75515
  field = fieldEntry[0];
75516
+ if (!fieldEntry[1]) throw new Error("field \"".concat(field, "\" is defined in an array, but has no props definition"));
75515
75517
  specialProps = fieldEntry[1];
75516
75518
  }
75517
75519
  }
package/dist/index.esm.js CHANGED
@@ -29375,7 +29375,8 @@ var FormSelect = function FormSelect(_ref) {
29375
29375
  return l.label.localeCompare(r.label);
29376
29376
  })));
29377
29377
  return /*#__PURE__*/React__default.createElement(TextField, _extends({
29378
- select: true
29378
+ select: true,
29379
+ required: required
29379
29380
  }, props), allOptions.map(function (_ref2) {
29380
29381
  var itemLabel = _ref2.label,
29381
29382
  itemValue = _ref2.value;
@@ -75468,6 +75469,7 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
75468
75469
  };
75469
75470
  } else {
75470
75471
  field = fieldEntry[0];
75472
+ if (!fieldEntry[1]) throw new Error("field \"".concat(field, "\" is defined in an array, but has no props definition"));
75471
75473
  specialProps = fieldEntry[1];
75472
75474
  }
75473
75475
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scenid/react-formulator",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "repository": "https://dennykoch@bitbucket.org/scenid/react-formulator.git",
@@ -18,6 +18,7 @@ const FormSelect = ({ options, required, ...props }) => {
18
18
  return (
19
19
  <TextField
20
20
  select
21
+ required={required}
21
22
  {...props}
22
23
  >
23
24
  {
@@ -82,6 +82,7 @@ class FormulatorFormSection extends React.Component {
82
82
  })
83
83
  } else {
84
84
  field = fieldEntry[0]
85
+ if (!fieldEntry[1]) throw new Error(`field "${field}" is defined in an array, but has no props definition`)
85
86
  specialProps = fieldEntry[1]
86
87
  }
87
88
  }
@@ -141,22 +141,24 @@ RLP.args = {
141
141
  schema: schemas.rlp.validation,
142
142
  renderSchema: schemas.rlp.render,
143
143
  inputVariant: 'filled',
144
- textAlign: 'center',
144
+ textAlign: 'left',
145
145
  translations: schemas.rlp.translations,
146
146
  errorMessages: {
147
- "required": "Pflichtfeld",
148
- "IBAN": "IBAN bitte ohne Sonder- und Trennzeichen angeben",
149
- "Int": "Bitte geben Sie ein gültige Zahl ein",
150
- "URL": "Ungültiger Link",
151
- "Email": "Ungültige E-Mail Adresse",
152
- "Date": "Ungültiges Datum",
153
- "Length": "Länge muss zwischen {{min}} und {{max}} liegen",
154
- "RegExp": "Ungültiges Format oder Zeichen",
155
- "invalid-email": "Ungültige E-Mail Adresse",
156
- "invalid-phone": "Ungültige Telefonnummer",
157
- "invalid-fax": "Ungültige Faxnummer"
147
+ required: 'Pflichtfeld',
148
+ IBAN: 'IBAN bitte ohne Sonder- und Trennzeichen angeben',
149
+ Int: 'Bitte geben Sie ein gültige Zahl ein',
150
+ URL: "Ungültiger Link",
151
+ Email: "Ungültige E-Mail Adresse",
152
+ Date: "Ungültiges Datum",
153
+ Length: "Länge muss zwischen {{min}} und {{max}} liegen",
154
+ RegExp: "Ungültiges Format oder Zeichen",
155
+ 'invalid-email': "Ungültige E-Mail Adresse",
156
+ 'invalid-phone': "Ungültige Telefonnummer",
157
+ 'invalid-fax': "Ungültige Faxnummer"
158
+ },
159
+ data: {
160
+ ouType: 'private-medical-practice'
158
161
  },
159
- data: {},
160
162
  renderComponentMap: {
161
163
  // contacts: <RoleContactsRepeater />,
162
164
  // reporterId: <FormUnique entityType="ou" />,
@@ -13,30 +13,15 @@
13
13
  "action": "copy"
14
14
  }
15
15
  ],
16
- [
17
- "legalForm",
18
- {
19
- "noPreselected": true
20
- }
21
- ]
16
+ "legalForm"
22
17
  ]
23
18
  },
24
19
  {
25
20
  "label": "Einrichtungsdetails",
26
21
  "id": "miscData",
27
22
  "fields": [
28
- [
29
- "medicalField",
30
- {
31
- "noPreselected": true
32
- }
33
- ],
34
- [
35
- "typeOfPractice",
36
- {
37
- "noPreselected": true
38
- }
39
- ],
23
+ "medicalField",
24
+ "typeOfPractice",
40
25
  "numTumorPatients",
41
26
  "openingHours",
42
27
  "website"
@@ -66,12 +51,7 @@
66
51
  "@@render",
67
52
  "bsnr"
68
53
  ],
69
- [
70
- "locationType",
71
- {
72
- "noPreselected": true
73
- }
74
- ],
54
+ "locationType",
75
55
  "creditorNumber"
76
56
  ]
77
57
  },
@@ -88,50 +68,15 @@
88
68
  "reportingPin",
89
69
  "reportingAuthCode",
90
70
  "hasPortalAccessTest",
91
- [
92
- "hasPortalTestGroup",
93
- {
94
- "noPreselected": true
95
- }
96
- ],
97
- [
98
- "hasPortalTestVersion",
99
- {
100
- "noPreselected": true
101
- }
102
- ],
71
+ "hasPortalTestGroup",
72
+ "hasPortalTestVersion",
103
73
  "hasPortalAccessProd",
104
- [
105
- "hasPortalProdGroup",
106
- {
107
- "noPreselected": true
108
- }
109
- ],
110
- [
111
- "hasPortalProdVersion",
112
- {
113
- "noPreselected": true
114
- }
115
- ],
116
- [
117
- "reportingChannel",
118
- {
119
- "noPreselected": true
120
- }
121
- ],
122
- [
123
- "reportingSoftware",
124
- {
125
- "noPreselected": true
126
- }
127
- ],
74
+ "hasPortalProdGroup",
75
+ "hasPortalProdVersion",
76
+ "reportingChannel",
77
+ "reportingSoftware",
128
78
  "reporterCertified",
129
- [
130
- "certifiedVersion",
131
- {
132
- "noPreselected": true
133
- }
134
- ]
79
+ "certifiedVersion"
135
80
  ]
136
81
  },
137
82
  {
@@ -139,19 +84,11 @@
139
84
  "id": "oncologyCenterData",
140
85
  "fields": [
141
86
  [
142
- "oncologyCenterType",
143
- {
144
- "noPreselected": true
145
- }
87
+ "oncologyCenterType"
146
88
  ],
147
89
  "oncologyCenterId",
148
90
  "isCertifiedOncologyCenter",
149
- [
150
- "oncologyCenterCertificate",
151
- {
152
- "noPreselected": true
153
- }
154
- ],
91
+ "oncologyCenterCertificate",
155
92
  "oncologyCenterDateCertified"
156
93
  ]
157
94
  },
@@ -175,12 +112,7 @@
175
112
  "id": "developerData",
176
113
  "fields": [
177
114
  "certified",
178
- [
179
- "products",
180
- {
181
- "noPreselected": true
182
- }
183
- ],
115
+ "products",
184
116
  "version"
185
117
  ]
186
118
  },
@@ -188,12 +120,7 @@
188
120
  "label": "Kostenträger",
189
121
  "id": "healthInsuranceData",
190
122
  "fields": [
191
- [
192
- "typeOfInsuranceCompany",
193
- {
194
- "noPreselected": true
195
- }
196
- ],
123
+ "typeOfInsuranceCompany",
197
124
  "debitNumber"
198
125
  ]
199
126
  },