@onehat/ui 0.3.74 → 0.3.76
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/package.json +1 -1
- package/src/Components/Form/Field/Combo/Combo.js +42 -37
- package/src/Components/Form/Field/Input.js +2 -0
- package/src/Components/Form/Form.js +29 -8
- package/src/Components/Hoc/withPdfButton.js +13 -9
- package/src/Components/Icons/Bookmark.js +20 -0
- package/src/Components/Icons/ClipboardList.js +20 -0
- package/src/Components/Messages/Loading.js +5 -1
- package/src/Constants/AppStates.js +3 -0
- package/src/Constants/MimeTypes.js +2126 -0
- package/src/PlatformImports/Web/Attachments.js +7 -2
|
@@ -203,8 +203,13 @@ function AttachmentsElement(props) {
|
|
|
203
203
|
let name,
|
|
204
204
|
mimetypes;
|
|
205
205
|
if (_.isString(accept)) {
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
if (accept.match(/,/)) {
|
|
207
|
+
name = 'mimetype IN';
|
|
208
|
+
mimetypes = accept.split(',');
|
|
209
|
+
} else {
|
|
210
|
+
name = 'mimetype LIKE';
|
|
211
|
+
mimetypes = accept.replace('*', '%');
|
|
212
|
+
}
|
|
208
213
|
} else if (_.isArray(accept)) {
|
|
209
214
|
name = 'mimetype IN';
|
|
210
215
|
mimetypes = accept;
|