@scenid/react-formulator 0.1.11 → 0.1.12
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 +33 -17
- package/dist/index.esm.js +33 -17
- package/package.json +1 -1
- package/src/FormulatorForm.jsx +6 -4
- package/src/FormulatorFormSection.jsx +15 -9
- package/stories/Forms.stories.jsx +9 -1
package/dist/index.cjs.js
CHANGED
|
@@ -75612,7 +75612,7 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
|
|
|
75612
75612
|
nested = _this$props2$nested === void 0 ? 0 : _this$props2$nested,
|
|
75613
75613
|
schema = _this$props2.schema,
|
|
75614
75614
|
fields = _this$props2.fields,
|
|
75615
|
-
|
|
75615
|
+
obscuredFields = _this$props2.obscuredFields,
|
|
75616
75616
|
results = _this$props2.results,
|
|
75617
75617
|
data = _this$props2.data,
|
|
75618
75618
|
fieldStates = _this$props2.fieldStates,
|
|
@@ -75648,7 +75648,18 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
|
|
|
75648
75648
|
_errors = _fieldProps.errors,
|
|
75649
75649
|
_validating = _fieldProps.validating,
|
|
75650
75650
|
_dirty = _fieldProps.dirty;
|
|
75651
|
-
|
|
75651
|
+
|
|
75652
|
+
if (readOnly) {
|
|
75653
|
+
if (!_value) return false;
|
|
75654
|
+
|
|
75655
|
+
if (Array.isArray(obscuredFields) && obscuredFields.includes(_name)) {
|
|
75656
|
+
return /*#__PURE__*/React__default["default"].createElement(HiddenData, {
|
|
75657
|
+
subject: "Das Feld",
|
|
75658
|
+
label: _label
|
|
75659
|
+
});
|
|
75660
|
+
}
|
|
75661
|
+
}
|
|
75662
|
+
|
|
75652
75663
|
return /*#__PURE__*/React__default["default"].createElement(readOnly ? FormReadOnlyField$1 : FormField$1, {
|
|
75653
75664
|
key: "form-render-component-".concat(cKey),
|
|
75654
75665
|
variant: inputVariant,
|
|
@@ -75685,9 +75696,9 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
|
|
|
75685
75696
|
schema: schema,
|
|
75686
75697
|
label: fieldEntry.label,
|
|
75687
75698
|
fields: fieldEntry.fields,
|
|
75688
|
-
hideSensitiveData: hideSensitiveData,
|
|
75689
75699
|
results: results,
|
|
75690
75700
|
data: data,
|
|
75701
|
+
obscuredFields: obscuredFields,
|
|
75691
75702
|
fieldStates: fieldStates,
|
|
75692
75703
|
translations: translations,
|
|
75693
75704
|
errorMessages: errorMessages,
|
|
@@ -75713,7 +75724,18 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
|
|
|
75713
75724
|
errors = fieldProps.errors,
|
|
75714
75725
|
validating = fieldProps.validating,
|
|
75715
75726
|
dirty = fieldProps.dirty;
|
|
75716
|
-
|
|
75727
|
+
|
|
75728
|
+
if (readOnly) {
|
|
75729
|
+
if (!value) return false;
|
|
75730
|
+
|
|
75731
|
+
if (Array.isArray(obscuredFields) && obscuredFields.includes(name)) {
|
|
75732
|
+
return /*#__PURE__*/React__default["default"].createElement(HiddenData, {
|
|
75733
|
+
subject: "Das Feld",
|
|
75734
|
+
label: label
|
|
75735
|
+
});
|
|
75736
|
+
}
|
|
75737
|
+
}
|
|
75738
|
+
|
|
75717
75739
|
var apProps = {};
|
|
75718
75740
|
|
|
75719
75741
|
for (var i = 0; i < fields.length; i++) {
|
|
@@ -75747,14 +75769,6 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
|
|
|
75747
75769
|
}
|
|
75748
75770
|
|
|
75749
75771
|
var FormFieldComponent = readOnly ? FormReadOnlyField$1 : FormField$1;
|
|
75750
|
-
|
|
75751
|
-
if (hideSensitiveData && (name === 'reportingPin' || name === 'reportingAuthCode')) {
|
|
75752
|
-
return /*#__PURE__*/React__default["default"].createElement(HiddenData, {
|
|
75753
|
-
subject: "Das Feld",
|
|
75754
|
-
label: label
|
|
75755
|
-
});
|
|
75756
|
-
}
|
|
75757
|
-
|
|
75758
75772
|
return /*#__PURE__*/React__default["default"].createElement(FormFieldComponent, {
|
|
75759
75773
|
key: "form-".concat(id, "-").concat(name),
|
|
75760
75774
|
variant: inputVariant,
|
|
@@ -75851,7 +75865,7 @@ FormulatorFormSection.propTypes = {
|
|
|
75851
75865
|
nested: PropTypes__default["default"].number,
|
|
75852
75866
|
sectionId: PropTypes__default["default"].string.isRequired,
|
|
75853
75867
|
fields: PropTypes__default["default"].array.isRequired,
|
|
75854
|
-
|
|
75868
|
+
obscuredFields: PropTypes__default["default"].array,
|
|
75855
75869
|
schema: PropTypes__default["default"].object.isRequired,
|
|
75856
75870
|
results: PropTypes__default["default"].object.isRequired,
|
|
75857
75871
|
data: PropTypes__default["default"].object.isRequired,
|
|
@@ -76321,12 +76335,13 @@ var FormulatorForm = /*#__PURE__*/function (_React$Component) {
|
|
|
76321
76335
|
readOnly = _this$props7.readOnly,
|
|
76322
76336
|
listErrors = _this$props7.listErrors,
|
|
76323
76337
|
schema = _this$props7.schema,
|
|
76324
|
-
hideSensitiveData = _this$props7.hideSensitiveData,
|
|
76325
76338
|
renderSchema = _this$props7.renderSchema,
|
|
76326
76339
|
propDisabled = _this$props7.disabled,
|
|
76327
76340
|
translations = _this$props7.translations,
|
|
76328
76341
|
componentMap = _this$props7.componentMap,
|
|
76329
76342
|
renderComponentMap = _this$props7.renderComponentMap,
|
|
76343
|
+
obscuredFields = _this$props7.obscuredFields,
|
|
76344
|
+
obscuredGroups = _this$props7.obscuredGroups,
|
|
76330
76345
|
errorMessages = _this$props7.errorMessages,
|
|
76331
76346
|
_onReset = _this$props7.onReset;
|
|
76332
76347
|
var _this$state6 = this.state,
|
|
@@ -76358,7 +76373,7 @@ var FormulatorForm = /*#__PURE__*/function (_React$Component) {
|
|
|
76358
76373
|
description = _ref12.description,
|
|
76359
76374
|
fields = _ref12.fields;
|
|
76360
76375
|
|
|
76361
|
-
if (
|
|
76376
|
+
if (readOnly && Array.isArray(obscuredGroups) && obscuredGroups.includes(sectionId)) {
|
|
76362
76377
|
return /*#__PURE__*/React__default["default"].createElement(HiddenData, {
|
|
76363
76378
|
subject: "Der Bereich",
|
|
76364
76379
|
label: label
|
|
@@ -76380,10 +76395,10 @@ var FormulatorForm = /*#__PURE__*/function (_React$Component) {
|
|
|
76380
76395
|
label: label,
|
|
76381
76396
|
desc: description,
|
|
76382
76397
|
fields: fields,
|
|
76383
|
-
hideSensitiveData: hideSensitiveData,
|
|
76384
76398
|
results: results,
|
|
76385
76399
|
data: data,
|
|
76386
76400
|
fieldStates: fieldStates,
|
|
76401
|
+
obscuredFields: obscuredFields,
|
|
76387
76402
|
translations: translations,
|
|
76388
76403
|
errorMessages: errorMessages,
|
|
76389
76404
|
componentMap: componentMap,
|
|
@@ -76426,7 +76441,6 @@ FormulatorForm.propTypes = {
|
|
|
76426
76441
|
listErrors: PropTypes__default["default"].bool,
|
|
76427
76442
|
schema: PropTypes__default["default"].object.isRequired,
|
|
76428
76443
|
data: PropTypes__default["default"].object.isRequired,
|
|
76429
|
-
hideSensitiveData: PropTypes__default["default"].bool,
|
|
76430
76444
|
transientData: PropTypes__default["default"].object,
|
|
76431
76445
|
fieldStates: PropTypes__default["default"].object,
|
|
76432
76446
|
renderSchema: PropTypes__default["default"].object.isRequired,
|
|
@@ -76435,6 +76449,8 @@ FormulatorForm.propTypes = {
|
|
|
76435
76449
|
errorMessages: PropTypes__default["default"].object,
|
|
76436
76450
|
componentMap: PropTypes__default["default"].object,
|
|
76437
76451
|
renderComponentMap: PropTypes__default["default"].object,
|
|
76452
|
+
obscuredFields: PropTypes__default["default"].array,
|
|
76453
|
+
obscuredGroups: PropTypes__default["default"].array,
|
|
76438
76454
|
onSubmit: PropTypes__default["default"].func,
|
|
76439
76455
|
onReset: PropTypes__default["default"].func,
|
|
76440
76456
|
onStatusUpdate: PropTypes__default["default"].func,
|
package/dist/index.esm.js
CHANGED
|
@@ -75568,7 +75568,7 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
|
|
|
75568
75568
|
nested = _this$props2$nested === void 0 ? 0 : _this$props2$nested,
|
|
75569
75569
|
schema = _this$props2.schema,
|
|
75570
75570
|
fields = _this$props2.fields,
|
|
75571
|
-
|
|
75571
|
+
obscuredFields = _this$props2.obscuredFields,
|
|
75572
75572
|
results = _this$props2.results,
|
|
75573
75573
|
data = _this$props2.data,
|
|
75574
75574
|
fieldStates = _this$props2.fieldStates,
|
|
@@ -75604,7 +75604,18 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
|
|
|
75604
75604
|
_errors = _fieldProps.errors,
|
|
75605
75605
|
_validating = _fieldProps.validating,
|
|
75606
75606
|
_dirty = _fieldProps.dirty;
|
|
75607
|
-
|
|
75607
|
+
|
|
75608
|
+
if (readOnly) {
|
|
75609
|
+
if (!_value) return false;
|
|
75610
|
+
|
|
75611
|
+
if (Array.isArray(obscuredFields) && obscuredFields.includes(_name)) {
|
|
75612
|
+
return /*#__PURE__*/React__default.createElement(HiddenData, {
|
|
75613
|
+
subject: "Das Feld",
|
|
75614
|
+
label: _label
|
|
75615
|
+
});
|
|
75616
|
+
}
|
|
75617
|
+
}
|
|
75618
|
+
|
|
75608
75619
|
return /*#__PURE__*/React__default.createElement(readOnly ? FormReadOnlyField$1 : FormField$1, {
|
|
75609
75620
|
key: "form-render-component-".concat(cKey),
|
|
75610
75621
|
variant: inputVariant,
|
|
@@ -75641,9 +75652,9 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
|
|
|
75641
75652
|
schema: schema,
|
|
75642
75653
|
label: fieldEntry.label,
|
|
75643
75654
|
fields: fieldEntry.fields,
|
|
75644
|
-
hideSensitiveData: hideSensitiveData,
|
|
75645
75655
|
results: results,
|
|
75646
75656
|
data: data,
|
|
75657
|
+
obscuredFields: obscuredFields,
|
|
75647
75658
|
fieldStates: fieldStates,
|
|
75648
75659
|
translations: translations,
|
|
75649
75660
|
errorMessages: errorMessages,
|
|
@@ -75669,7 +75680,18 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
|
|
|
75669
75680
|
errors = fieldProps.errors,
|
|
75670
75681
|
validating = fieldProps.validating,
|
|
75671
75682
|
dirty = fieldProps.dirty;
|
|
75672
|
-
|
|
75683
|
+
|
|
75684
|
+
if (readOnly) {
|
|
75685
|
+
if (!value) return false;
|
|
75686
|
+
|
|
75687
|
+
if (Array.isArray(obscuredFields) && obscuredFields.includes(name)) {
|
|
75688
|
+
return /*#__PURE__*/React__default.createElement(HiddenData, {
|
|
75689
|
+
subject: "Das Feld",
|
|
75690
|
+
label: label
|
|
75691
|
+
});
|
|
75692
|
+
}
|
|
75693
|
+
}
|
|
75694
|
+
|
|
75673
75695
|
var apProps = {};
|
|
75674
75696
|
|
|
75675
75697
|
for (var i = 0; i < fields.length; i++) {
|
|
@@ -75703,14 +75725,6 @@ var FormulatorFormSection = /*#__PURE__*/function (_React$Component) {
|
|
|
75703
75725
|
}
|
|
75704
75726
|
|
|
75705
75727
|
var FormFieldComponent = readOnly ? FormReadOnlyField$1 : FormField$1;
|
|
75706
|
-
|
|
75707
|
-
if (hideSensitiveData && (name === 'reportingPin' || name === 'reportingAuthCode')) {
|
|
75708
|
-
return /*#__PURE__*/React__default.createElement(HiddenData, {
|
|
75709
|
-
subject: "Das Feld",
|
|
75710
|
-
label: label
|
|
75711
|
-
});
|
|
75712
|
-
}
|
|
75713
|
-
|
|
75714
75728
|
return /*#__PURE__*/React__default.createElement(FormFieldComponent, {
|
|
75715
75729
|
key: "form-".concat(id, "-").concat(name),
|
|
75716
75730
|
variant: inputVariant,
|
|
@@ -75807,7 +75821,7 @@ FormulatorFormSection.propTypes = {
|
|
|
75807
75821
|
nested: PropTypes__default.number,
|
|
75808
75822
|
sectionId: PropTypes__default.string.isRequired,
|
|
75809
75823
|
fields: PropTypes__default.array.isRequired,
|
|
75810
|
-
|
|
75824
|
+
obscuredFields: PropTypes__default.array,
|
|
75811
75825
|
schema: PropTypes__default.object.isRequired,
|
|
75812
75826
|
results: PropTypes__default.object.isRequired,
|
|
75813
75827
|
data: PropTypes__default.object.isRequired,
|
|
@@ -76277,12 +76291,13 @@ var FormulatorForm = /*#__PURE__*/function (_React$Component) {
|
|
|
76277
76291
|
readOnly = _this$props7.readOnly,
|
|
76278
76292
|
listErrors = _this$props7.listErrors,
|
|
76279
76293
|
schema = _this$props7.schema,
|
|
76280
|
-
hideSensitiveData = _this$props7.hideSensitiveData,
|
|
76281
76294
|
renderSchema = _this$props7.renderSchema,
|
|
76282
76295
|
propDisabled = _this$props7.disabled,
|
|
76283
76296
|
translations = _this$props7.translations,
|
|
76284
76297
|
componentMap = _this$props7.componentMap,
|
|
76285
76298
|
renderComponentMap = _this$props7.renderComponentMap,
|
|
76299
|
+
obscuredFields = _this$props7.obscuredFields,
|
|
76300
|
+
obscuredGroups = _this$props7.obscuredGroups,
|
|
76286
76301
|
errorMessages = _this$props7.errorMessages,
|
|
76287
76302
|
_onReset = _this$props7.onReset;
|
|
76288
76303
|
var _this$state6 = this.state,
|
|
@@ -76314,7 +76329,7 @@ var FormulatorForm = /*#__PURE__*/function (_React$Component) {
|
|
|
76314
76329
|
description = _ref12.description,
|
|
76315
76330
|
fields = _ref12.fields;
|
|
76316
76331
|
|
|
76317
|
-
if (
|
|
76332
|
+
if (readOnly && Array.isArray(obscuredGroups) && obscuredGroups.includes(sectionId)) {
|
|
76318
76333
|
return /*#__PURE__*/React__default.createElement(HiddenData, {
|
|
76319
76334
|
subject: "Der Bereich",
|
|
76320
76335
|
label: label
|
|
@@ -76336,10 +76351,10 @@ var FormulatorForm = /*#__PURE__*/function (_React$Component) {
|
|
|
76336
76351
|
label: label,
|
|
76337
76352
|
desc: description,
|
|
76338
76353
|
fields: fields,
|
|
76339
|
-
hideSensitiveData: hideSensitiveData,
|
|
76340
76354
|
results: results,
|
|
76341
76355
|
data: data,
|
|
76342
76356
|
fieldStates: fieldStates,
|
|
76357
|
+
obscuredFields: obscuredFields,
|
|
76343
76358
|
translations: translations,
|
|
76344
76359
|
errorMessages: errorMessages,
|
|
76345
76360
|
componentMap: componentMap,
|
|
@@ -76382,7 +76397,6 @@ FormulatorForm.propTypes = {
|
|
|
76382
76397
|
listErrors: PropTypes__default.bool,
|
|
76383
76398
|
schema: PropTypes__default.object.isRequired,
|
|
76384
76399
|
data: PropTypes__default.object.isRequired,
|
|
76385
|
-
hideSensitiveData: PropTypes__default.bool,
|
|
76386
76400
|
transientData: PropTypes__default.object,
|
|
76387
76401
|
fieldStates: PropTypes__default.object,
|
|
76388
76402
|
renderSchema: PropTypes__default.object.isRequired,
|
|
@@ -76391,6 +76405,8 @@ FormulatorForm.propTypes = {
|
|
|
76391
76405
|
errorMessages: PropTypes__default.object,
|
|
76392
76406
|
componentMap: PropTypes__default.object,
|
|
76393
76407
|
renderComponentMap: PropTypes__default.object,
|
|
76408
|
+
obscuredFields: PropTypes__default.array,
|
|
76409
|
+
obscuredGroups: PropTypes__default.array,
|
|
76394
76410
|
onSubmit: PropTypes__default.func,
|
|
76395
76411
|
onReset: PropTypes__default.func,
|
|
76396
76412
|
onStatusUpdate: PropTypes__default.func,
|
package/package.json
CHANGED
package/src/FormulatorForm.jsx
CHANGED
|
@@ -361,12 +361,13 @@ class FormulatorForm extends React.Component {
|
|
|
361
361
|
readOnly,
|
|
362
362
|
listErrors,
|
|
363
363
|
schema,
|
|
364
|
-
hideSensitiveData,
|
|
365
364
|
renderSchema,
|
|
366
365
|
disabled: propDisabled,
|
|
367
366
|
translations,
|
|
368
367
|
componentMap,
|
|
369
368
|
renderComponentMap,
|
|
369
|
+
obscuredFields,
|
|
370
|
+
obscuredGroups,
|
|
370
371
|
errorMessages,
|
|
371
372
|
onReset
|
|
372
373
|
} = this.props
|
|
@@ -408,7 +409,7 @@ class FormulatorForm extends React.Component {
|
|
|
408
409
|
{
|
|
409
410
|
renderSchema.groups
|
|
410
411
|
.map(({ id: sectionId, label, description, fields }) => {
|
|
411
|
-
if (
|
|
412
|
+
if (readOnly && Array.isArray(obscuredGroups) && obscuredGroups.includes(sectionId)) {
|
|
412
413
|
return <HiddenData subject="Der Bereich" label={label} />
|
|
413
414
|
}
|
|
414
415
|
|
|
@@ -428,10 +429,10 @@ class FormulatorForm extends React.Component {
|
|
|
428
429
|
label={label}
|
|
429
430
|
desc={description}
|
|
430
431
|
fields={fields}
|
|
431
|
-
hideSensitiveData={hideSensitiveData}
|
|
432
432
|
results={results}
|
|
433
433
|
data={data}
|
|
434
434
|
fieldStates={fieldStates}
|
|
435
|
+
obscuredFields={obscuredFields}
|
|
435
436
|
translations={translations}
|
|
436
437
|
errorMessages={errorMessages}
|
|
437
438
|
componentMap={componentMap}
|
|
@@ -513,7 +514,6 @@ FormulatorForm.propTypes = {
|
|
|
513
514
|
listErrors: PropTypes.bool,
|
|
514
515
|
schema: PropTypes.object.isRequired,
|
|
515
516
|
data: PropTypes.object.isRequired,
|
|
516
|
-
hideSensitiveData: PropTypes.bool,
|
|
517
517
|
transientData: PropTypes.object,
|
|
518
518
|
fieldStates: PropTypes.object,
|
|
519
519
|
renderSchema: PropTypes.object.isRequired,
|
|
@@ -522,6 +522,8 @@ FormulatorForm.propTypes = {
|
|
|
522
522
|
errorMessages: PropTypes.object,
|
|
523
523
|
componentMap: PropTypes.object,
|
|
524
524
|
renderComponentMap: PropTypes.object,
|
|
525
|
+
obscuredFields: PropTypes.array,
|
|
526
|
+
obscuredGroups: PropTypes.array,
|
|
525
527
|
onSubmit: PropTypes.func,
|
|
526
528
|
onReset: PropTypes.func,
|
|
527
529
|
onStatusUpdate: PropTypes.func,
|
|
@@ -170,7 +170,7 @@ class FormulatorFormSection extends React.Component {
|
|
|
170
170
|
nested = 0,
|
|
171
171
|
schema,
|
|
172
172
|
fields,
|
|
173
|
-
|
|
173
|
+
obscuredFields,
|
|
174
174
|
results,
|
|
175
175
|
data,
|
|
176
176
|
fieldStates,
|
|
@@ -213,7 +213,12 @@ class FormulatorFormSection extends React.Component {
|
|
|
213
213
|
dirty
|
|
214
214
|
} = fieldProps
|
|
215
215
|
|
|
216
|
-
if (readOnly
|
|
216
|
+
if (readOnly) {
|
|
217
|
+
if (!value) return false
|
|
218
|
+
if (Array.isArray(obscuredFields) && obscuredFields.includes(name)) {
|
|
219
|
+
return <HiddenData subject="Das Feld" label={label} />
|
|
220
|
+
}
|
|
221
|
+
}
|
|
217
222
|
|
|
218
223
|
return React.createElement(
|
|
219
224
|
readOnly ? FormReadOnlyField : FormField,
|
|
@@ -255,9 +260,9 @@ class FormulatorFormSection extends React.Component {
|
|
|
255
260
|
schema={schema}
|
|
256
261
|
label={fieldEntry.label}
|
|
257
262
|
fields={fieldEntry.fields}
|
|
258
|
-
hideSensitiveData={hideSensitiveData}
|
|
259
263
|
results={results}
|
|
260
264
|
data={data}
|
|
265
|
+
obscuredFields={obscuredFields}
|
|
261
266
|
fieldStates={fieldStates}
|
|
262
267
|
translations={translations}
|
|
263
268
|
errorMessages={errorMessages}
|
|
@@ -289,7 +294,12 @@ class FormulatorFormSection extends React.Component {
|
|
|
289
294
|
dirty
|
|
290
295
|
} = fieldProps
|
|
291
296
|
|
|
292
|
-
if (readOnly
|
|
297
|
+
if (readOnly) {
|
|
298
|
+
if (!value) return false
|
|
299
|
+
if (Array.isArray(obscuredFields) && obscuredFields.includes(name)) {
|
|
300
|
+
return <HiddenData subject="Das Feld" label={label} />
|
|
301
|
+
}
|
|
302
|
+
}
|
|
293
303
|
|
|
294
304
|
const apProps = {}
|
|
295
305
|
|
|
@@ -335,10 +345,6 @@ class FormulatorFormSection extends React.Component {
|
|
|
335
345
|
|
|
336
346
|
const FormFieldComponent = readOnly ? FormReadOnlyField : FormField
|
|
337
347
|
|
|
338
|
-
if (hideSensitiveData && (name === 'reportingPin' || name === 'reportingAuthCode')) {
|
|
339
|
-
return <HiddenData subject="Das Feld" label={label} />
|
|
340
|
-
}
|
|
341
|
-
|
|
342
348
|
return (
|
|
343
349
|
React.createElement(
|
|
344
350
|
FormFieldComponent,
|
|
@@ -485,7 +491,7 @@ FormulatorFormSection.propTypes = {
|
|
|
485
491
|
nested: PropTypes.number,
|
|
486
492
|
sectionId: PropTypes.string.isRequired,
|
|
487
493
|
fields: PropTypes.array.isRequired,
|
|
488
|
-
|
|
494
|
+
obscuredFields: PropTypes.array,
|
|
489
495
|
schema: PropTypes.object.isRequired,
|
|
490
496
|
results: PropTypes.object.isRequired,
|
|
491
497
|
data: PropTypes.object.isRequired,
|
|
@@ -156,10 +156,18 @@ RLP.args = {
|
|
|
156
156
|
'invalid-phone': "Ungültige Telefonnummer",
|
|
157
157
|
'invalid-fax': "Ungültige Faxnummer"
|
|
158
158
|
},
|
|
159
|
+
obscuredFields: [
|
|
160
|
+
'reportingPin',
|
|
161
|
+
'reportingAuthCode'
|
|
162
|
+
],
|
|
163
|
+
obscuredGroups: ['bankData'],
|
|
159
164
|
data: {
|
|
160
165
|
ouType: 'private-medical-practice',
|
|
161
166
|
hasBank: true,
|
|
162
|
-
bankValidFrom: '2022-08-14'
|
|
167
|
+
bankValidFrom: '2022-08-14',
|
|
168
|
+
isReporting: true,
|
|
169
|
+
reportingPin: '2554',
|
|
170
|
+
reportingAuthCode: '254hjx'
|
|
163
171
|
},
|
|
164
172
|
renderComponentMap: {
|
|
165
173
|
// contacts: <RoleContactsRepeater />,
|