react-form-builder-more-flexibility 1.0.56 → 1.0.58
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/README.md +154 -121
- package/dist/845.app.js +1 -0
- package/dist/app.css +1 -38
- package/dist/app.css.map +1 -1
- package/dist/app.js +2 -70
- package/dist/app.js.LICENSE.txt +85 -0
- package/lib/dynamic-option-list.js +2 -1
- package/lib/fieldset/FieldSet.js +1 -2
- package/lib/form-dynamic-edit.js +5 -6
- package/lib/form-elements/component-drag-handle.js +49 -72
- package/lib/form-elements/component-drag-layer.js +18 -17
- package/lib/form-elements/component-drag-preview.js +2 -11
- package/lib/form-elements/custom-element.js +1 -2
- package/lib/form-elements/header-bar.js +2 -2
- package/lib/form-elements/index.js +84 -84
- package/lib/form-elements/star-rating.js +88 -77
- package/lib/form.js +9 -10
- package/lib/functions/index.js +1 -2
- package/lib/multi-column/dustbin.js +59 -73
- package/lib/sortable-element.js +167 -139
- package/lib/toolbar-draggable-item.js +41 -43
- package/lib/toolbar-group-item.js +1 -2
- package/lib/toolbar.js +3 -0
- package/package.json +22 -21
- package/dist/1.app.js +0 -1
|
@@ -28,7 +28,7 @@ var _myxss = _interopRequireDefault(require("./myxss"));
|
|
|
28
28
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29
29
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30
30
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
31
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-next-line max-classes-per-file
|
|
31
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable quote-props */ // eslint-disable-next-line max-classes-per-file
|
|
32
32
|
var FormElements = {};
|
|
33
33
|
var Header = /*#__PURE__*/function (_React$Component) {
|
|
34
34
|
function Header() {
|
|
@@ -331,7 +331,7 @@ var TextArea = /*#__PURE__*/function (_React$Component9) {
|
|
|
331
331
|
}
|
|
332
332
|
}]);
|
|
333
333
|
}(_react["default"].Component);
|
|
334
|
-
var Dropdown = /*#__PURE__*/function (_React$
|
|
334
|
+
var Dropdown = /*#__PURE__*/function (_React$Component0) {
|
|
335
335
|
function Dropdown(props) {
|
|
336
336
|
var _this6;
|
|
337
337
|
(0, _classCallCheck2["default"])(this, Dropdown);
|
|
@@ -339,7 +339,7 @@ var Dropdown = /*#__PURE__*/function (_React$Component10) {
|
|
|
339
339
|
_this6.inputField = /*#__PURE__*/_react["default"].createRef();
|
|
340
340
|
return _this6;
|
|
341
341
|
}
|
|
342
|
-
(0, _inherits2["default"])(Dropdown, _React$
|
|
342
|
+
(0, _inherits2["default"])(Dropdown, _React$Component0);
|
|
343
343
|
return (0, _createClass2["default"])(Dropdown, [{
|
|
344
344
|
key: "render",
|
|
345
345
|
value: function render() {
|
|
@@ -372,7 +372,7 @@ var Dropdown = /*#__PURE__*/function (_React$Component10) {
|
|
|
372
372
|
}
|
|
373
373
|
}]);
|
|
374
374
|
}(_react["default"].Component);
|
|
375
|
-
var Signature = /*#__PURE__*/function (_React$
|
|
375
|
+
var Signature = /*#__PURE__*/function (_React$Component1) {
|
|
376
376
|
function Signature(props) {
|
|
377
377
|
var _this7;
|
|
378
378
|
(0, _classCallCheck2["default"])(this, Signature);
|
|
@@ -393,7 +393,7 @@ var Signature = /*#__PURE__*/function (_React$Component11) {
|
|
|
393
393
|
_this7.canvas = /*#__PURE__*/_react["default"].createRef();
|
|
394
394
|
return _this7;
|
|
395
395
|
}
|
|
396
|
-
(0, _inherits2["default"])(Signature, _React$
|
|
396
|
+
(0, _inherits2["default"])(Signature, _React$Component1);
|
|
397
397
|
return (0, _createClass2["default"])(Signature, [{
|
|
398
398
|
key: "render",
|
|
399
399
|
value: function render() {
|
|
@@ -437,7 +437,7 @@ var Signature = /*#__PURE__*/function (_React$Component11) {
|
|
|
437
437
|
}
|
|
438
438
|
}]);
|
|
439
439
|
}(_react["default"].Component);
|
|
440
|
-
var Tags = /*#__PURE__*/function (_React$
|
|
440
|
+
var Tags = /*#__PURE__*/function (_React$Component10) {
|
|
441
441
|
function Tags(props) {
|
|
442
442
|
var _this8;
|
|
443
443
|
(0, _classCallCheck2["default"])(this, Tags);
|
|
@@ -456,7 +456,7 @@ var Tags = /*#__PURE__*/function (_React$Component12) {
|
|
|
456
456
|
};
|
|
457
457
|
return _this8;
|
|
458
458
|
}
|
|
459
|
-
(0, _inherits2["default"])(Tags, _React$
|
|
459
|
+
(0, _inherits2["default"])(Tags, _React$Component10);
|
|
460
460
|
return (0, _createClass2["default"])(Tags, [{
|
|
461
461
|
key: "getDefaultValue",
|
|
462
462
|
value: function getDefaultValue(defaultValue, options) {
|
|
@@ -508,7 +508,7 @@ var Tags = /*#__PURE__*/function (_React$Component12) {
|
|
|
508
508
|
}
|
|
509
509
|
}]);
|
|
510
510
|
}(_react["default"].Component);
|
|
511
|
-
var Checkboxes = /*#__PURE__*/function (_React$
|
|
511
|
+
var Checkboxes = /*#__PURE__*/function (_React$Component11) {
|
|
512
512
|
function Checkboxes(props) {
|
|
513
513
|
var _this9;
|
|
514
514
|
(0, _classCallCheck2["default"])(this, Checkboxes);
|
|
@@ -516,11 +516,11 @@ var Checkboxes = /*#__PURE__*/function (_React$Component13) {
|
|
|
516
516
|
_this9.options = {};
|
|
517
517
|
return _this9;
|
|
518
518
|
}
|
|
519
|
-
(0, _inherits2["default"])(Checkboxes, _React$
|
|
519
|
+
(0, _inherits2["default"])(Checkboxes, _React$Component11);
|
|
520
520
|
return (0, _createClass2["default"])(Checkboxes, [{
|
|
521
521
|
key: "render",
|
|
522
522
|
value: function render() {
|
|
523
|
-
var
|
|
523
|
+
var _this0 = this;
|
|
524
524
|
var self = this;
|
|
525
525
|
var classNames = 'custom-control custom-checkbox';
|
|
526
526
|
if (this.props.data.inline) {
|
|
@@ -544,7 +544,7 @@ var Checkboxes = /*#__PURE__*/function (_React$Component13) {
|
|
|
544
544
|
if (self.props.mutable) {
|
|
545
545
|
props.defaultChecked = self.props.defaultValue !== undefined && (self.props.defaultValue.indexOf(option.key) > -1 || self.props.defaultValue.indexOf(option.value) > -1);
|
|
546
546
|
}
|
|
547
|
-
if (
|
|
547
|
+
if (_this0.props.read_only) {
|
|
548
548
|
props.disabled = 'disabled';
|
|
549
549
|
}
|
|
550
550
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -566,25 +566,25 @@ var Checkboxes = /*#__PURE__*/function (_React$Component13) {
|
|
|
566
566
|
}
|
|
567
567
|
}]);
|
|
568
568
|
}(_react["default"].Component);
|
|
569
|
-
var Checkbox = /*#__PURE__*/function (_React$
|
|
569
|
+
var Checkbox = /*#__PURE__*/function (_React$Component12) {
|
|
570
570
|
function Checkbox(props) {
|
|
571
|
-
var
|
|
571
|
+
var _this1;
|
|
572
572
|
(0, _classCallCheck2["default"])(this, Checkbox);
|
|
573
|
-
|
|
574
|
-
(0, _defineProperty2["default"])(
|
|
575
|
-
if (
|
|
576
|
-
|
|
573
|
+
_this1 = _callSuper(this, Checkbox, [props]);
|
|
574
|
+
(0, _defineProperty2["default"])(_this1, "clickDetected", function () {
|
|
575
|
+
if (_this1.props.onCheckboxClick) {
|
|
576
|
+
_this1.props.onCheckboxClick(_this1.props.data); // Pass the field name or data to the parent component
|
|
577
577
|
}
|
|
578
578
|
});
|
|
579
|
-
(0, _defineProperty2["default"])(
|
|
580
|
-
if (
|
|
581
|
-
|
|
579
|
+
(0, _defineProperty2["default"])(_this1, "handleLabelClick", function () {
|
|
580
|
+
if (_this1.props.data && _this1.props.data.hasPopUp) {
|
|
581
|
+
_this1.clickDetected();
|
|
582
582
|
}
|
|
583
583
|
});
|
|
584
|
-
|
|
585
|
-
return
|
|
584
|
+
_this1.inputField = /*#__PURE__*/_react["default"].createRef();
|
|
585
|
+
return _this1;
|
|
586
586
|
}
|
|
587
|
-
(0, _inherits2["default"])(Checkbox, _React$
|
|
587
|
+
(0, _inherits2["default"])(Checkbox, _React$Component12);
|
|
588
588
|
return (0, _createClass2["default"])(Checkbox, [{
|
|
589
589
|
key: "render",
|
|
590
590
|
value: function render() {
|
|
@@ -626,19 +626,19 @@ var Checkbox = /*#__PURE__*/function (_React$Component14) {
|
|
|
626
626
|
}
|
|
627
627
|
}]);
|
|
628
628
|
}(_react["default"].Component);
|
|
629
|
-
var RadioButtons = /*#__PURE__*/function (_React$
|
|
629
|
+
var RadioButtons = /*#__PURE__*/function (_React$Component13) {
|
|
630
630
|
function RadioButtons(props) {
|
|
631
|
-
var
|
|
631
|
+
var _this10;
|
|
632
632
|
(0, _classCallCheck2["default"])(this, RadioButtons);
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
return
|
|
633
|
+
_this10 = _callSuper(this, RadioButtons, [props]);
|
|
634
|
+
_this10.options = {};
|
|
635
|
+
return _this10;
|
|
636
636
|
}
|
|
637
|
-
(0, _inherits2["default"])(RadioButtons, _React$
|
|
637
|
+
(0, _inherits2["default"])(RadioButtons, _React$Component13);
|
|
638
638
|
return (0, _createClass2["default"])(RadioButtons, [{
|
|
639
639
|
key: "render",
|
|
640
640
|
value: function render() {
|
|
641
|
-
var
|
|
641
|
+
var _this11 = this;
|
|
642
642
|
var self = this;
|
|
643
643
|
var classNames = 'custom-control custom-radio';
|
|
644
644
|
if (this.props.data.inline) {
|
|
@@ -662,7 +662,7 @@ var RadioButtons = /*#__PURE__*/function (_React$Component15) {
|
|
|
662
662
|
if (self.props.mutable) {
|
|
663
663
|
props.defaultChecked = self.props.defaultValue !== undefined && (self.props.defaultValue.indexOf(option.key) > -1 || self.props.defaultValue.indexOf(option.value) > -1);
|
|
664
664
|
}
|
|
665
|
-
if (
|
|
665
|
+
if (_this11.props.read_only) {
|
|
666
666
|
props.disabled = 'disabled';
|
|
667
667
|
}
|
|
668
668
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -684,12 +684,12 @@ var RadioButtons = /*#__PURE__*/function (_React$Component15) {
|
|
|
684
684
|
}
|
|
685
685
|
}]);
|
|
686
686
|
}(_react["default"].Component);
|
|
687
|
-
var Image = /*#__PURE__*/function (_React$
|
|
687
|
+
var Image = /*#__PURE__*/function (_React$Component14) {
|
|
688
688
|
function Image() {
|
|
689
689
|
(0, _classCallCheck2["default"])(this, Image);
|
|
690
690
|
return _callSuper(this, Image, arguments);
|
|
691
691
|
}
|
|
692
|
-
(0, _inherits2["default"])(Image, _React$
|
|
692
|
+
(0, _inherits2["default"])(Image, _React$Component14);
|
|
693
693
|
return (0, _createClass2["default"])(Image, [{
|
|
694
694
|
key: "render",
|
|
695
695
|
value: function render() {
|
|
@@ -713,15 +713,15 @@ var Image = /*#__PURE__*/function (_React$Component16) {
|
|
|
713
713
|
}
|
|
714
714
|
}]);
|
|
715
715
|
}(_react["default"].Component);
|
|
716
|
-
var Rating = /*#__PURE__*/function (_React$
|
|
716
|
+
var Rating = /*#__PURE__*/function (_React$Component15) {
|
|
717
717
|
function Rating(props) {
|
|
718
|
-
var
|
|
718
|
+
var _this12;
|
|
719
719
|
(0, _classCallCheck2["default"])(this, Rating);
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
return
|
|
720
|
+
_this12 = _callSuper(this, Rating, [props]);
|
|
721
|
+
_this12.inputField = /*#__PURE__*/_react["default"].createRef();
|
|
722
|
+
return _this12;
|
|
723
723
|
}
|
|
724
|
-
(0, _inherits2["default"])(Rating, _React$
|
|
724
|
+
(0, _inherits2["default"])(Rating, _React$Component15);
|
|
725
725
|
return (0, _createClass2["default"])(Rating, [{
|
|
726
726
|
key: "render",
|
|
727
727
|
value: function render() {
|
|
@@ -747,12 +747,12 @@ var Rating = /*#__PURE__*/function (_React$Component17) {
|
|
|
747
747
|
}
|
|
748
748
|
}]);
|
|
749
749
|
}(_react["default"].Component);
|
|
750
|
-
var HyperLink = /*#__PURE__*/function (_React$
|
|
750
|
+
var HyperLink = /*#__PURE__*/function (_React$Component16) {
|
|
751
751
|
function HyperLink() {
|
|
752
752
|
(0, _classCallCheck2["default"])(this, HyperLink);
|
|
753
753
|
return _callSuper(this, HyperLink, arguments);
|
|
754
754
|
}
|
|
755
|
-
(0, _inherits2["default"])(HyperLink, _React$
|
|
755
|
+
(0, _inherits2["default"])(HyperLink, _React$Component16);
|
|
756
756
|
return (0, _createClass2["default"])(HyperLink, [{
|
|
757
757
|
key: "render",
|
|
758
758
|
value: function render() {
|
|
@@ -777,12 +777,12 @@ var HyperLink = /*#__PURE__*/function (_React$Component18) {
|
|
|
777
777
|
}
|
|
778
778
|
}]);
|
|
779
779
|
}(_react["default"].Component);
|
|
780
|
-
var Download = /*#__PURE__*/function (_React$
|
|
780
|
+
var Download = /*#__PURE__*/function (_React$Component17) {
|
|
781
781
|
function Download() {
|
|
782
782
|
(0, _classCallCheck2["default"])(this, Download);
|
|
783
783
|
return _callSuper(this, Download, arguments);
|
|
784
784
|
}
|
|
785
|
-
(0, _inherits2["default"])(Download, _React$
|
|
785
|
+
(0, _inherits2["default"])(Download, _React$Component17);
|
|
786
786
|
return (0, _createClass2["default"])(Download, [{
|
|
787
787
|
key: "render",
|
|
788
788
|
value: function render() {
|
|
@@ -801,13 +801,13 @@ var Download = /*#__PURE__*/function (_React$Component19) {
|
|
|
801
801
|
}
|
|
802
802
|
}]);
|
|
803
803
|
}(_react["default"].Component);
|
|
804
|
-
var Camera = /*#__PURE__*/function (_React$
|
|
804
|
+
var Camera = /*#__PURE__*/function (_React$Component18) {
|
|
805
805
|
function Camera(props) {
|
|
806
|
-
var
|
|
806
|
+
var _this13;
|
|
807
807
|
(0, _classCallCheck2["default"])(this, Camera);
|
|
808
|
-
|
|
809
|
-
(0, _defineProperty2["default"])(
|
|
810
|
-
var self =
|
|
808
|
+
_this13 = _callSuper(this, Camera, [props]);
|
|
809
|
+
(0, _defineProperty2["default"])(_this13, "displayImage", function (e) {
|
|
810
|
+
var self = _this13;
|
|
811
811
|
var target = e.target;
|
|
812
812
|
if (target.files && target.files.length) {
|
|
813
813
|
self.setState({
|
|
@@ -816,19 +816,19 @@ var Camera = /*#__PURE__*/function (_React$Component20) {
|
|
|
816
816
|
});
|
|
817
817
|
}
|
|
818
818
|
});
|
|
819
|
-
(0, _defineProperty2["default"])(
|
|
820
|
-
|
|
819
|
+
(0, _defineProperty2["default"])(_this13, "clearImage", function () {
|
|
820
|
+
_this13.setState({
|
|
821
821
|
img: null,
|
|
822
822
|
previewImg: null
|
|
823
823
|
});
|
|
824
824
|
});
|
|
825
|
-
|
|
825
|
+
_this13.state = {
|
|
826
826
|
img: null,
|
|
827
827
|
previewImg: null
|
|
828
828
|
};
|
|
829
|
-
return
|
|
829
|
+
return _this13;
|
|
830
830
|
}
|
|
831
|
-
(0, _inherits2["default"])(Camera, _React$
|
|
831
|
+
(0, _inherits2["default"])(Camera, _React$Component18);
|
|
832
832
|
return (0, _createClass2["default"])(Camera, [{
|
|
833
833
|
key: "getImageSizeProps",
|
|
834
834
|
value: function getImageSizeProps(_ref) {
|
|
@@ -848,7 +848,7 @@ var Camera = /*#__PURE__*/function (_React$Component20) {
|
|
|
848
848
|
}, {
|
|
849
849
|
key: "render",
|
|
850
850
|
value: function render() {
|
|
851
|
-
var
|
|
851
|
+
var _this14 = this;
|
|
852
852
|
var imageStyle = {
|
|
853
853
|
objectFit: 'scale-down',
|
|
854
854
|
objectPosition: this.props.data.center ? 'center' : 'left'
|
|
@@ -896,7 +896,7 @@ var Camera = /*#__PURE__*/function (_React$Component20) {
|
|
|
896
896
|
className: "fas fa-camera"
|
|
897
897
|
}), " Upload Photo"), /*#__PURE__*/_react["default"].createElement("p", null, "Select an image from your computer or device."))), this.state.img && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
898
898
|
onLoad: function onLoad() {
|
|
899
|
-
return URL.revokeObjectURL(
|
|
899
|
+
return URL.revokeObjectURL(_this14.state.previewImg);
|
|
900
900
|
},
|
|
901
901
|
src: this.state.previewImg,
|
|
902
902
|
height: "100",
|
|
@@ -910,13 +910,13 @@ var Camera = /*#__PURE__*/function (_React$Component20) {
|
|
|
910
910
|
}
|
|
911
911
|
}]);
|
|
912
912
|
}(_react["default"].Component);
|
|
913
|
-
var FileUpload = /*#__PURE__*/function (_React$
|
|
913
|
+
var FileUpload = /*#__PURE__*/function (_React$Component19) {
|
|
914
914
|
function FileUpload(props) {
|
|
915
|
-
var
|
|
915
|
+
var _this15;
|
|
916
916
|
(0, _classCallCheck2["default"])(this, FileUpload);
|
|
917
|
-
|
|
918
|
-
(0, _defineProperty2["default"])(
|
|
919
|
-
var self =
|
|
917
|
+
_this15 = _callSuper(this, FileUpload, [props]);
|
|
918
|
+
(0, _defineProperty2["default"])(_this15, "displayFileUpload", function (e) {
|
|
919
|
+
var self = _this15;
|
|
920
920
|
var target = e.target;
|
|
921
921
|
var file;
|
|
922
922
|
if (target.files && target.files.length > 0) {
|
|
@@ -926,38 +926,38 @@ var FileUpload = /*#__PURE__*/function (_React$Component21) {
|
|
|
926
926
|
});
|
|
927
927
|
}
|
|
928
928
|
});
|
|
929
|
-
(0, _defineProperty2["default"])(
|
|
930
|
-
|
|
929
|
+
(0, _defineProperty2["default"])(_this15, "clearFileUpload", function () {
|
|
930
|
+
_this15.setState({
|
|
931
931
|
fileUpload: null
|
|
932
932
|
});
|
|
933
933
|
});
|
|
934
|
-
(0, _defineProperty2["default"])(
|
|
934
|
+
(0, _defineProperty2["default"])(_this15, "saveFile", /*#__PURE__*/function () {
|
|
935
935
|
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(e) {
|
|
936
936
|
var sourceUrl, response, dispositionHeader, resBlob, blob, fileName, _fileName;
|
|
937
|
-
return _regenerator["default"].wrap(function
|
|
937
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
938
938
|
while (1) switch (_context.prev = _context.next) {
|
|
939
939
|
case 0:
|
|
940
940
|
e.preventDefault();
|
|
941
|
-
sourceUrl =
|
|
942
|
-
_context.next =
|
|
941
|
+
sourceUrl = _this15.props.defaultValue;
|
|
942
|
+
_context.next = 1;
|
|
943
943
|
return (0, _isomorphicFetch["default"])(sourceUrl, {
|
|
944
944
|
method: 'GET',
|
|
945
945
|
headers: {
|
|
946
|
-
Accept: 'application/json',
|
|
946
|
+
'Accept': 'application/json',
|
|
947
947
|
'Content-Type': 'application/json; charset=utf-8'
|
|
948
948
|
},
|
|
949
949
|
responseType: 'blob'
|
|
950
950
|
});
|
|
951
|
-
case
|
|
951
|
+
case 1:
|
|
952
952
|
response = _context.sent;
|
|
953
953
|
dispositionHeader = response.headers.get('Content-Disposition');
|
|
954
|
-
_context.next =
|
|
954
|
+
_context.next = 2;
|
|
955
955
|
return response.blob();
|
|
956
|
-
case
|
|
956
|
+
case 2:
|
|
957
957
|
resBlob = _context.sent;
|
|
958
958
|
// eslint-disable-next-line no-undef
|
|
959
959
|
blob = new Blob([resBlob], {
|
|
960
|
-
type:
|
|
960
|
+
type: _this15.props.data.fileType || response.headers.get('Content-Type')
|
|
961
961
|
});
|
|
962
962
|
if (dispositionHeader && dispositionHeader.indexOf(';filename=') > -1) {
|
|
963
963
|
fileName = dispositionHeader.split(';filename=')[1];
|
|
@@ -966,7 +966,7 @@ var FileUpload = /*#__PURE__*/function (_React$Component21) {
|
|
|
966
966
|
_fileName = sourceUrl.substring(sourceUrl.lastIndexOf('/') + 1);
|
|
967
967
|
(0, _fileSaver.saveAs)(response.url, _fileName);
|
|
968
968
|
}
|
|
969
|
-
case
|
|
969
|
+
case 3:
|
|
970
970
|
case "end":
|
|
971
971
|
return _context.stop();
|
|
972
972
|
}
|
|
@@ -976,12 +976,12 @@ var FileUpload = /*#__PURE__*/function (_React$Component21) {
|
|
|
976
976
|
return _ref2.apply(this, arguments);
|
|
977
977
|
};
|
|
978
978
|
}());
|
|
979
|
-
|
|
979
|
+
_this15.state = {
|
|
980
980
|
fileUpload: null
|
|
981
981
|
};
|
|
982
|
-
return
|
|
982
|
+
return _this15;
|
|
983
983
|
}
|
|
984
|
-
(0, _inherits2["default"])(FileUpload, _React$
|
|
984
|
+
(0, _inherits2["default"])(FileUpload, _React$Component19);
|
|
985
985
|
return (0, _createClass2["default"])(FileUpload, [{
|
|
986
986
|
key: "render",
|
|
987
987
|
value: function render() {
|
|
@@ -1040,24 +1040,24 @@ var FileUpload = /*#__PURE__*/function (_React$Component21) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
}]);
|
|
1042
1042
|
}(_react["default"].Component);
|
|
1043
|
-
var Range = /*#__PURE__*/function (_React$
|
|
1043
|
+
var Range = /*#__PURE__*/function (_React$Component20) {
|
|
1044
1044
|
function Range(props) {
|
|
1045
|
-
var
|
|
1045
|
+
var _this16;
|
|
1046
1046
|
(0, _classCallCheck2["default"])(this, Range);
|
|
1047
|
-
|
|
1048
|
-
(0, _defineProperty2["default"])(
|
|
1047
|
+
_this16 = _callSuper(this, Range, [props]);
|
|
1048
|
+
(0, _defineProperty2["default"])(_this16, "changeValue", function (e) {
|
|
1049
1049
|
var target = e.target;
|
|
1050
|
-
|
|
1050
|
+
_this16.setState({
|
|
1051
1051
|
value: target.value
|
|
1052
1052
|
});
|
|
1053
1053
|
});
|
|
1054
|
-
|
|
1055
|
-
|
|
1054
|
+
_this16.inputField = /*#__PURE__*/_react["default"].createRef();
|
|
1055
|
+
_this16.state = {
|
|
1056
1056
|
value: props.defaultValue !== undefined ? parseInt(props.defaultValue, 10) : parseInt(props.data.default_value, 10)
|
|
1057
1057
|
};
|
|
1058
|
-
return
|
|
1058
|
+
return _this16;
|
|
1059
1059
|
}
|
|
1060
|
-
(0, _inherits2["default"])(Range, _React$
|
|
1060
|
+
(0, _inherits2["default"])(Range, _React$Component20);
|
|
1061
1061
|
return (0, _createClass2["default"])(Range, [{
|
|
1062
1062
|
key: "render",
|
|
1063
1063
|
value: function render() {
|