@panneau/field-upload 3.0.56 → 3.0.57
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/es/index.js +34 -31
- package/lib/index.js +33 -30
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
4
4
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
5
5
|
import { faTimes, faFileVideo, faFileImage, faFileAudio } from '@fortawesome/free-solid-svg-icons';
|
|
6
6
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
7
|
-
import { Dashboard } from '@uppy/react';
|
|
7
|
+
import { Dashboard, DashboardModal } from '@uppy/react';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
9
|
import get from 'lodash/get';
|
|
10
10
|
import isArray from 'lodash/isArray';
|
|
@@ -188,7 +188,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
188
188
|
var closeModal = useCallback(function () {
|
|
189
189
|
setModalOpened(false);
|
|
190
190
|
}, [setModalOpened]);
|
|
191
|
-
|
|
191
|
+
useCallback(function () {
|
|
192
192
|
closeModal();
|
|
193
193
|
if (uppy !== null) {
|
|
194
194
|
uppy.cancelAll();
|
|
@@ -393,41 +393,44 @@ var UploadField = function UploadField(_ref) {
|
|
|
393
393
|
showProgressDetails: true,
|
|
394
394
|
areInsidesReadyToBeVisible: true,
|
|
395
395
|
proudlyDisplayPoweredByUppy: false
|
|
396
|
-
}))) : null, !showResourceModal && !disabled && withButton && uppy !== null
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
// open={modalOpened}
|
|
403
|
-
// isHidden={!modalOpened}
|
|
404
|
-
// {...(width !== null ? { width } : null)}
|
|
405
|
-
// {...(height !== null ? { height } : null)}
|
|
406
|
-
// onRequestClose={closeModal}
|
|
407
|
-
// proudlyDisplayPoweredByUppy={false}
|
|
408
|
-
// closeModalOnClickOutside
|
|
409
|
-
// />
|
|
410
|
-
React.createElement(Dialog, {
|
|
411
|
-
size: "lg",
|
|
412
|
-
onClose: closeModal,
|
|
413
|
-
title: addButtonLabel
|
|
414
|
-
}, /*#__PURE__*/React.createElement(Dashboard, Object.assign({
|
|
415
|
-
uppy: uppy
|
|
416
|
-
// {...(containerWidth !== null && height !== null
|
|
417
|
-
// ? { width: containerWidth }
|
|
418
|
-
// : null)}
|
|
396
|
+
}))) : null, !showResourceModal && !disabled && withButton && uppy !== null ? /*#__PURE__*/React.createElement(DashboardModal, Object.assign({
|
|
397
|
+
uppy: uppy,
|
|
398
|
+
className: styles.dashboardModal,
|
|
399
|
+
plugins: sources,
|
|
400
|
+
open: modalOpened,
|
|
401
|
+
isHidden: !modalOpened
|
|
419
402
|
}, width !== null ? {
|
|
420
403
|
width: width
|
|
421
404
|
} : null, height !== null ? {
|
|
422
405
|
height: height
|
|
423
406
|
} : null, {
|
|
424
|
-
|
|
425
|
-
inline: true,
|
|
426
|
-
showProgressDetails: true,
|
|
427
|
-
areInsidesReadyToBeVisible: true,
|
|
407
|
+
onRequestClose: closeModal,
|
|
428
408
|
proudlyDisplayPoweredByUppy: false,
|
|
429
|
-
|
|
430
|
-
|
|
409
|
+
closeModalOnClickOutside: true,
|
|
410
|
+
areInsidesReadyToBeVisible: true,
|
|
411
|
+
isDashboardVisible: true,
|
|
412
|
+
showProgressDetailss: true,
|
|
413
|
+
showAddFilesPanel: true
|
|
414
|
+
})) :
|
|
415
|
+
// <Dialog size="lg" onClose={closeModal} title={addButtonLabel}>
|
|
416
|
+
// <Dashboard
|
|
417
|
+
// uppy={uppy}
|
|
418
|
+
// // {...(containerWidth !== null && height !== null
|
|
419
|
+
// // ? { width: containerWidth }
|
|
420
|
+
// // : null)}
|
|
421
|
+
// {...(width !== null ? { width } : null)}
|
|
422
|
+
// {...(height !== null ? { height } : null)}
|
|
423
|
+
// plugins={sources}
|
|
424
|
+
// inline
|
|
425
|
+
// showProgressDetails
|
|
426
|
+
// areInsidesReadyToBeVisible
|
|
427
|
+
// isDashboardVisible
|
|
428
|
+
// showAddFilesPanel
|
|
429
|
+
// proudlyDisplayPoweredByUppy={false}
|
|
430
|
+
// doneButtonHandler={closeModalAndClear}
|
|
431
|
+
// />
|
|
432
|
+
// </Dialog>
|
|
433
|
+
null, showResourceModal ? /*#__PURE__*/React.createElement(Dialog, {
|
|
431
434
|
title: /*#__PURE__*/React.createElement(Label, null, searchButtonLabel),
|
|
432
435
|
size: "lg",
|
|
433
436
|
onClose: closeResourceModal
|
package/lib/index.js
CHANGED
|
@@ -210,7 +210,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
210
210
|
var closeModal = React.useCallback(function () {
|
|
211
211
|
setModalOpened(false);
|
|
212
212
|
}, [setModalOpened]);
|
|
213
|
-
|
|
213
|
+
React.useCallback(function () {
|
|
214
214
|
closeModal();
|
|
215
215
|
if (uppy$1 !== null) {
|
|
216
216
|
uppy$1.cancelAll();
|
|
@@ -415,41 +415,44 @@ var UploadField = function UploadField(_ref) {
|
|
|
415
415
|
showProgressDetails: true,
|
|
416
416
|
areInsidesReadyToBeVisible: true,
|
|
417
417
|
proudlyDisplayPoweredByUppy: false
|
|
418
|
-
}))) : null, !showResourceModal && !disabled && withButton && uppy$1 !== null
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
// open={modalOpened}
|
|
425
|
-
// isHidden={!modalOpened}
|
|
426
|
-
// {...(width !== null ? { width } : null)}
|
|
427
|
-
// {...(height !== null ? { height } : null)}
|
|
428
|
-
// onRequestClose={closeModal}
|
|
429
|
-
// proudlyDisplayPoweredByUppy={false}
|
|
430
|
-
// closeModalOnClickOutside
|
|
431
|
-
// />
|
|
432
|
-
React__default["default"].createElement(Dialog__default["default"], {
|
|
433
|
-
size: "lg",
|
|
434
|
-
onClose: closeModal,
|
|
435
|
-
title: addButtonLabel
|
|
436
|
-
}, /*#__PURE__*/React__default["default"].createElement(react.Dashboard, Object.assign({
|
|
437
|
-
uppy: uppy$1
|
|
438
|
-
// {...(containerWidth !== null && height !== null
|
|
439
|
-
// ? { width: containerWidth }
|
|
440
|
-
// : null)}
|
|
418
|
+
}))) : null, !showResourceModal && !disabled && withButton && uppy$1 !== null ? /*#__PURE__*/React__default["default"].createElement(react.DashboardModal, Object.assign({
|
|
419
|
+
uppy: uppy$1,
|
|
420
|
+
className: styles.dashboardModal,
|
|
421
|
+
plugins: sources,
|
|
422
|
+
open: modalOpened,
|
|
423
|
+
isHidden: !modalOpened
|
|
441
424
|
}, width !== null ? {
|
|
442
425
|
width: width
|
|
443
426
|
} : null, height !== null ? {
|
|
444
427
|
height: height
|
|
445
428
|
} : null, {
|
|
446
|
-
|
|
447
|
-
inline: true,
|
|
448
|
-
showProgressDetails: true,
|
|
449
|
-
areInsidesReadyToBeVisible: true,
|
|
429
|
+
onRequestClose: closeModal,
|
|
450
430
|
proudlyDisplayPoweredByUppy: false,
|
|
451
|
-
|
|
452
|
-
|
|
431
|
+
closeModalOnClickOutside: true,
|
|
432
|
+
areInsidesReadyToBeVisible: true,
|
|
433
|
+
isDashboardVisible: true,
|
|
434
|
+
showProgressDetailss: true,
|
|
435
|
+
showAddFilesPanel: true
|
|
436
|
+
})) :
|
|
437
|
+
// <Dialog size="lg" onClose={closeModal} title={addButtonLabel}>
|
|
438
|
+
// <Dashboard
|
|
439
|
+
// uppy={uppy}
|
|
440
|
+
// // {...(containerWidth !== null && height !== null
|
|
441
|
+
// // ? { width: containerWidth }
|
|
442
|
+
// // : null)}
|
|
443
|
+
// {...(width !== null ? { width } : null)}
|
|
444
|
+
// {...(height !== null ? { height } : null)}
|
|
445
|
+
// plugins={sources}
|
|
446
|
+
// inline
|
|
447
|
+
// showProgressDetails
|
|
448
|
+
// areInsidesReadyToBeVisible
|
|
449
|
+
// isDashboardVisible
|
|
450
|
+
// showAddFilesPanel
|
|
451
|
+
// proudlyDisplayPoweredByUppy={false}
|
|
452
|
+
// doneButtonHandler={closeModalAndClear}
|
|
453
|
+
// />
|
|
454
|
+
// </Dialog>
|
|
455
|
+
null, showResourceModal ? /*#__PURE__*/React__default["default"].createElement(Dialog__default["default"], {
|
|
453
456
|
title: /*#__PURE__*/React__default["default"].createElement(Label__default["default"], null, searchButtonLabel),
|
|
454
457
|
size: "lg",
|
|
455
458
|
onClose: closeResourceModal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/field-upload",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.57",
|
|
4
4
|
"description": "An Upload field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "336779835a337f6ba502b74595b3733f6288d3c2"
|
|
86
86
|
}
|