@awell-health/ui-library 0.1.125 → 0.1.126
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.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48467,13 +48467,13 @@ var Kr=[{
|
|
|
48467
48467
|
|
|
48468
48468
|
} },
|
|
48469
48469
|
render: function (_a) {
|
|
48470
|
-
var _b;
|
|
48471
|
-
var
|
|
48470
|
+
var _b, _c, _d;
|
|
48471
|
+
var _e = _a.field,onControllerChange = _e.onChange,onBlur = _e.onBlur,value = _e.value;
|
|
48472
48472
|
return jsxRuntime.exports.jsx(SingleFileInputField, { id: question.id, value: custom_json_parser(value, ''), onChange: function (attachment) {
|
|
48473
48473
|
console.log('attachment', attachment === null || attachment === void 0 ? void 0 : attachment.contentType);
|
|
48474
48474
|
onControllerChange(JSON.stringify(attachment));
|
|
48475
48475
|
onAnswerChange();
|
|
48476
|
-
}, onBlur: onBlur, accept:
|
|
48476
|
+
}, onBlur: onBlur, accept: (_c = (_b = config === null || config === void 0 ? void 0 : config.file_storage) === null || _b === void 0 ? void 0 : _b.accepted_file_types) !== null && _c !== void 0 ? _c : undefined, configSlug: (_d = config === null || config === void 0 ? void 0 : config.file_storage) === null || _d === void 0 ? void 0 : _d.file_storage_config_slug, onFileUpload: onFileUpload, label: question.title, mandatory: config === null || config === void 0 ? void 0 : config.mandatory });
|
|
48477
48477
|
} });
|
|
48478
48478
|
case exports.UserQuestionType.Image:
|
|
48479
48479
|
return jsxRuntime.exports.jsx(Controller, { name: question.id, control: control, defaultValue: [], rules: {
|