@panneau/field-upload 3.0.105 → 3.0.107
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 +28 -36
- package/lib/index.js +27 -35
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
5
|
-
import { Dashboard
|
|
5
|
+
import { Dashboard } from '@uppy/react';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import isArray from 'lodash/isArray';
|
|
8
8
|
import isObject from 'lodash/isObject';
|
|
@@ -311,6 +311,12 @@ var UploadField = function UploadField(_ref) {
|
|
|
311
311
|
onListPageChange = _useResourceQuery.onPageChange,
|
|
312
312
|
onListQueryChange = _useResourceQuery.onQueryChange,
|
|
313
313
|
onListQueryReset = _useResourceQuery.onQueryReset;
|
|
314
|
+
|
|
315
|
+
// console.log(
|
|
316
|
+
// 'modalOpened',
|
|
317
|
+
// !showResourceModal && !disabled && withButton && uppy !== null && modalOpened,
|
|
318
|
+
// );
|
|
319
|
+
|
|
314
320
|
return /*#__PURE__*/React.createElement("div", {
|
|
315
321
|
className: classNames([styles.container, _defineProperty({}, className, className !== null)])
|
|
316
322
|
// ref={containerRef}
|
|
@@ -365,43 +371,29 @@ var UploadField = function UploadField(_ref) {
|
|
|
365
371
|
showProgressDetails: true,
|
|
366
372
|
areInsidesReadyToBeVisible: true,
|
|
367
373
|
proudlyDisplayPoweredByUppy: false
|
|
368
|
-
}))) : null, !showResourceModal && !disabled && withButton && uppy !== null ? /*#__PURE__*/React.createElement(
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
374
|
+
}))) : null, !showResourceModal && !disabled && withButton && uppy !== null && modalOpened ? /*#__PURE__*/React.createElement(Dialog, {
|
|
375
|
+
size: "lg",
|
|
376
|
+
onClose: closeModal,
|
|
377
|
+
title: addButtonLabel
|
|
378
|
+
}, /*#__PURE__*/React.createElement(Dashboard, Object.assign({
|
|
379
|
+
uppy: uppy
|
|
380
|
+
// {...(containerWidth !== null && height !== null
|
|
381
|
+
// ? { width: containerWidth }
|
|
382
|
+
// : null)}
|
|
383
|
+
}, width !== null ? {
|
|
384
|
+
width: width
|
|
385
|
+
} : null, height !== null ? {
|
|
386
|
+
height: height
|
|
387
|
+
} : null, {
|
|
388
|
+
plugins: sources,
|
|
389
|
+
inline: true,
|
|
390
|
+
showProgressDetails: true,
|
|
380
391
|
areInsidesReadyToBeVisible: true,
|
|
381
392
|
isDashboardVisible: true,
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
// <Dialog size="lg" onClose={closeModal} title={addButtonLabel}>
|
|
387
|
-
// <Dashboard
|
|
388
|
-
// uppy={uppy}
|
|
389
|
-
// // {...(containerWidth !== null && height !== null
|
|
390
|
-
// // ? { width: containerWidth }
|
|
391
|
-
// // : null)}
|
|
392
|
-
// {...(width !== null ? { width } : null)}
|
|
393
|
-
// {...(height !== null ? { height } : null)}
|
|
394
|
-
// plugins={sources}
|
|
395
|
-
// inline
|
|
396
|
-
// showProgressDetails
|
|
397
|
-
// // areInsidesReadyToBeVisible
|
|
398
|
-
// // isDashboardVisible
|
|
399
|
-
// showAddFilesPanel
|
|
400
|
-
// proudlyDisplayPoweredByUppy={false}
|
|
401
|
-
// doneButtonHandler={closeModalAndClear}
|
|
402
|
-
// />
|
|
403
|
-
// </Dialog>
|
|
404
|
-
null, showResourceModal ? /*#__PURE__*/React.createElement(Dialog, {
|
|
393
|
+
showAddFilesPanel: true,
|
|
394
|
+
proudlyDisplayPoweredByUppy: false,
|
|
395
|
+
doneButtonHandler: closeModal
|
|
396
|
+
}))) : null, showResourceModal ? /*#__PURE__*/React.createElement(Dialog, {
|
|
405
397
|
title: /*#__PURE__*/React.createElement(Label, null, findButtonLabel),
|
|
406
398
|
size: "xl",
|
|
407
399
|
onClose: closeResourceModal
|
package/lib/index.js
CHANGED
|
@@ -331,6 +331,12 @@ var UploadField = function UploadField(_ref) {
|
|
|
331
331
|
onListPageChange = _useResourceQuery.onPageChange,
|
|
332
332
|
onListQueryChange = _useResourceQuery.onQueryChange,
|
|
333
333
|
onListQueryReset = _useResourceQuery.onQueryReset;
|
|
334
|
+
|
|
335
|
+
// console.log(
|
|
336
|
+
// 'modalOpened',
|
|
337
|
+
// !showResourceModal && !disabled && withButton && uppy !== null && modalOpened,
|
|
338
|
+
// );
|
|
339
|
+
|
|
334
340
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
335
341
|
className: classNames__default["default"]([styles.container, _defineProperty__default["default"]({}, className, className !== null)])
|
|
336
342
|
// ref={containerRef}
|
|
@@ -385,43 +391,29 @@ var UploadField = function UploadField(_ref) {
|
|
|
385
391
|
showProgressDetails: true,
|
|
386
392
|
areInsidesReadyToBeVisible: true,
|
|
387
393
|
proudlyDisplayPoweredByUppy: false
|
|
388
|
-
}))) : null, !showResourceModal && !disabled && withButton && uppy$1 !== null ? /*#__PURE__*/React__default["default"].createElement(
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
394
|
+
}))) : null, !showResourceModal && !disabled && withButton && uppy$1 !== null && modalOpened ? /*#__PURE__*/React__default["default"].createElement(Dialog__default["default"], {
|
|
395
|
+
size: "lg",
|
|
396
|
+
onClose: closeModal,
|
|
397
|
+
title: addButtonLabel
|
|
398
|
+
}, /*#__PURE__*/React__default["default"].createElement(react.Dashboard, Object.assign({
|
|
399
|
+
uppy: uppy$1
|
|
400
|
+
// {...(containerWidth !== null && height !== null
|
|
401
|
+
// ? { width: containerWidth }
|
|
402
|
+
// : null)}
|
|
403
|
+
}, width !== null ? {
|
|
404
|
+
width: width
|
|
405
|
+
} : null, height !== null ? {
|
|
406
|
+
height: height
|
|
407
|
+
} : null, {
|
|
408
|
+
plugins: sources,
|
|
409
|
+
inline: true,
|
|
410
|
+
showProgressDetails: true,
|
|
400
411
|
areInsidesReadyToBeVisible: true,
|
|
401
412
|
isDashboardVisible: true,
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
// <Dialog size="lg" onClose={closeModal} title={addButtonLabel}>
|
|
407
|
-
// <Dashboard
|
|
408
|
-
// uppy={uppy}
|
|
409
|
-
// // {...(containerWidth !== null && height !== null
|
|
410
|
-
// // ? { width: containerWidth }
|
|
411
|
-
// // : null)}
|
|
412
|
-
// {...(width !== null ? { width } : null)}
|
|
413
|
-
// {...(height !== null ? { height } : null)}
|
|
414
|
-
// plugins={sources}
|
|
415
|
-
// inline
|
|
416
|
-
// showProgressDetails
|
|
417
|
-
// // areInsidesReadyToBeVisible
|
|
418
|
-
// // isDashboardVisible
|
|
419
|
-
// showAddFilesPanel
|
|
420
|
-
// proudlyDisplayPoweredByUppy={false}
|
|
421
|
-
// doneButtonHandler={closeModalAndClear}
|
|
422
|
-
// />
|
|
423
|
-
// </Dialog>
|
|
424
|
-
null, showResourceModal ? /*#__PURE__*/React__default["default"].createElement(Dialog__default["default"], {
|
|
413
|
+
showAddFilesPanel: true,
|
|
414
|
+
proudlyDisplayPoweredByUppy: false,
|
|
415
|
+
doneButtonHandler: closeModal
|
|
416
|
+
}))) : null, showResourceModal ? /*#__PURE__*/React__default["default"].createElement(Dialog__default["default"], {
|
|
425
417
|
title: /*#__PURE__*/React__default["default"].createElement(Label__default["default"], null, findButtonLabel),
|
|
426
418
|
size: "xl",
|
|
427
419
|
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.107",
|
|
4
4
|
"description": "An Upload field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "84147f217be4806d5a6fb111cee39c0e6b0719cc"
|
|
85
85
|
}
|