@scenid/react-formulator 1.2.5-mui5-1 → 2.0.0
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.cjs.js +87 -45
- package/dist/index.esm.js +87 -45
- package/package.json +95 -95
package/dist/index.cjs.js
CHANGED
|
@@ -2242,19 +2242,19 @@ var anObject$1E = anObject$1G;
|
|
|
2242
2242
|
var concat$6 = uncurryThis$1k([].concat);
|
|
2243
2243
|
|
|
2244
2244
|
// all object keys, includes non-enumerable and symbols
|
|
2245
|
-
var ownKeys$
|
|
2245
|
+
var ownKeys$8 = getBuiltIn$I('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
2246
2246
|
var keys = getOwnPropertyNamesModule$2.f(anObject$1E(it));
|
|
2247
2247
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$3.f;
|
|
2248
2248
|
return getOwnPropertySymbols ? concat$6(keys, getOwnPropertySymbols(it)) : keys;
|
|
2249
2249
|
};
|
|
2250
2250
|
|
|
2251
2251
|
var hasOwn$v = hasOwnProperty_1;
|
|
2252
|
-
var ownKeys$
|
|
2252
|
+
var ownKeys$7 = ownKeys$8;
|
|
2253
2253
|
var getOwnPropertyDescriptorModule$6 = objectGetOwnPropertyDescriptor;
|
|
2254
2254
|
var definePropertyModule$a = objectDefineProperty;
|
|
2255
2255
|
|
|
2256
2256
|
var copyConstructorProperties$4 = function (target, source, exceptions) {
|
|
2257
|
-
var keys = ownKeys$
|
|
2257
|
+
var keys = ownKeys$7(source);
|
|
2258
2258
|
var defineProperty = definePropertyModule$a.f;
|
|
2259
2259
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$6.f;
|
|
2260
2260
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -7961,7 +7961,7 @@ $$3p({ target: 'Object', stat: true, forced: FORCED$9, sham: !DESCRIPTORS$i }, {
|
|
|
7961
7961
|
|
|
7962
7962
|
var $$3o = _export;
|
|
7963
7963
|
var DESCRIPTORS$h = descriptors;
|
|
7964
|
-
var ownKeys$
|
|
7964
|
+
var ownKeys$6 = ownKeys$8;
|
|
7965
7965
|
var toIndexedObject$7 = toIndexedObject$k;
|
|
7966
7966
|
var getOwnPropertyDescriptorModule$4 = objectGetOwnPropertyDescriptor;
|
|
7967
7967
|
var createProperty$1 = createProperty$9;
|
|
@@ -7972,7 +7972,7 @@ $$3o({ target: 'Object', stat: true, sham: !DESCRIPTORS$h }, {
|
|
|
7972
7972
|
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
|
|
7973
7973
|
var O = toIndexedObject$7(object);
|
|
7974
7974
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$4.f;
|
|
7975
|
-
var keys = ownKeys$
|
|
7975
|
+
var keys = ownKeys$6(O);
|
|
7976
7976
|
var result = {};
|
|
7977
7977
|
var index = 0;
|
|
7978
7978
|
var key, descriptor;
|
|
@@ -9338,12 +9338,12 @@ $$2S({ target: 'Reflect', stat: true }, {
|
|
|
9338
9338
|
});
|
|
9339
9339
|
|
|
9340
9340
|
var $$2R = _export;
|
|
9341
|
-
var ownKeys$
|
|
9341
|
+
var ownKeys$5 = ownKeys$8;
|
|
9342
9342
|
|
|
9343
9343
|
// `Reflect.ownKeys` method
|
|
9344
9344
|
// https://tc39.es/ecma262/#sec-reflect.ownkeys
|
|
9345
9345
|
$$2R({ target: 'Reflect', stat: true }, {
|
|
9346
|
-
ownKeys: ownKeys$
|
|
9346
|
+
ownKeys: ownKeys$5
|
|
9347
9347
|
});
|
|
9348
9348
|
|
|
9349
9349
|
var $$2Q = _export;
|
|
@@ -29484,9 +29484,9 @@ FormSectionBlock.propTypes = {
|
|
|
29484
29484
|
|
|
29485
29485
|
var _excluded$7 = ["prepend", "append", "componentProps"];
|
|
29486
29486
|
|
|
29487
|
-
function ownKeys$
|
|
29487
|
+
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29488
29488
|
|
|
29489
|
-
function _objectSpread$
|
|
29489
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29490
29490
|
var useStyles$3 = styles.makeStyles(function (theme) {
|
|
29491
29491
|
return {
|
|
29492
29492
|
error: {
|
|
@@ -29515,7 +29515,7 @@ var FormControlField$1 = function FormControlField(_ref) {
|
|
|
29515
29515
|
onChange = _ref.onChange;
|
|
29516
29516
|
var styles = useStyles$3();
|
|
29517
29517
|
|
|
29518
|
-
var finalProps = _objectSpread$
|
|
29518
|
+
var finalProps = _objectSpread$4(_objectSpread$4({
|
|
29519
29519
|
formVariant: formVariant,
|
|
29520
29520
|
name: name,
|
|
29521
29521
|
label: label,
|
|
@@ -29541,7 +29541,7 @@ var FormControlField$1 = function FormControlField(_ref) {
|
|
|
29541
29541
|
if (isRender) {
|
|
29542
29542
|
try {
|
|
29543
29543
|
var oldProps = component.props || {};
|
|
29544
|
-
control = /*#__PURE__*/React__default["default"].cloneElement(component, _objectSpread$
|
|
29544
|
+
control = /*#__PURE__*/React__default["default"].cloneElement(component, _objectSpread$4(_objectSpread$4(_objectSpread$4({
|
|
29545
29545
|
variant: variant
|
|
29546
29546
|
}, finalProps), oldProps), {}, {
|
|
29547
29547
|
label: label,
|
|
@@ -29554,7 +29554,7 @@ var FormControlField$1 = function FormControlField(_ref) {
|
|
|
29554
29554
|
}
|
|
29555
29555
|
} else {
|
|
29556
29556
|
try {
|
|
29557
|
-
control = /*#__PURE__*/React__default["default"].createElement(component, _objectSpread$
|
|
29557
|
+
control = /*#__PURE__*/React__default["default"].createElement(component, _objectSpread$4({
|
|
29558
29558
|
variant: variant
|
|
29559
29559
|
}, finalProps));
|
|
29560
29560
|
} catch (e) {
|
|
@@ -29615,7 +29615,7 @@ var FormField = function FormField(_ref2) {
|
|
|
29615
29615
|
componentProps = _ref2.componentProps,
|
|
29616
29616
|
fieldProps = _objectWithoutProperties(_ref2, _excluded$7);
|
|
29617
29617
|
|
|
29618
|
-
var finalProps = _objectSpread$
|
|
29618
|
+
var finalProps = _objectSpread$4({
|
|
29619
29619
|
componentProps: componentProps
|
|
29620
29620
|
}, fieldProps);
|
|
29621
29621
|
|
|
@@ -29673,29 +29673,55 @@ function _extends() {
|
|
|
29673
29673
|
return _extends.apply(this, arguments);
|
|
29674
29674
|
}
|
|
29675
29675
|
|
|
29676
|
-
|
|
29677
|
-
|
|
29678
|
-
|
|
29679
|
-
|
|
29680
|
-
|
|
29681
|
-
|
|
29682
|
-
|
|
29683
|
-
|
|
29676
|
+
var FormText = function FormText(_ref) {
|
|
29677
|
+
var type = _ref.type,
|
|
29678
|
+
name = _ref.name,
|
|
29679
|
+
label = _ref.label,
|
|
29680
|
+
variant = _ref.variant,
|
|
29681
|
+
value = _ref.value,
|
|
29682
|
+
defaultValue = _ref.defaultValue,
|
|
29683
|
+
multiline = _ref.multiline,
|
|
29684
|
+
minRows = _ref.minRows,
|
|
29685
|
+
required = _ref.required,
|
|
29686
|
+
loading = _ref.loading,
|
|
29687
|
+
disabled = _ref.disabled,
|
|
29688
|
+
onChange = _ref.onChange;
|
|
29689
|
+
var extraProps = {};
|
|
29684
29690
|
|
|
29685
29691
|
if (type === 'date' || type === 'datetime-local') {
|
|
29686
|
-
|
|
29692
|
+
extraProps.InputLabelProps = {
|
|
29687
29693
|
shrink: true
|
|
29688
29694
|
};
|
|
29689
|
-
}
|
|
29690
|
-
|
|
29695
|
+
}
|
|
29691
29696
|
|
|
29692
29697
|
return /*#__PURE__*/React__default["default"].createElement(material.TextField, _extends({
|
|
29693
|
-
type: type
|
|
29694
|
-
|
|
29698
|
+
type: type,
|
|
29699
|
+
name: name,
|
|
29700
|
+
label: label,
|
|
29701
|
+
variant: variant,
|
|
29702
|
+
value: value || defaultValue || '',
|
|
29703
|
+
multiline: multiline,
|
|
29704
|
+
minRows: minRows,
|
|
29705
|
+
required: required,
|
|
29706
|
+
disabled: disabled || loading,
|
|
29707
|
+
onChange: onChange || function () {} // eslint-disable-next-line react/jsx-props-no-spreading
|
|
29708
|
+
|
|
29709
|
+
}, extraProps));
|
|
29695
29710
|
};
|
|
29696
29711
|
|
|
29697
29712
|
FormText.propTypes = {
|
|
29698
|
-
type: PropTypes__default["default"].string
|
|
29713
|
+
type: PropTypes__default["default"].string,
|
|
29714
|
+
name: PropTypes__default["default"].string,
|
|
29715
|
+
label: PropTypes__default["default"].string,
|
|
29716
|
+
variant: PropTypes__default["default"].string,
|
|
29717
|
+
value: PropTypes__default["default"].string,
|
|
29718
|
+
defaultValue: PropTypes__default["default"].string,
|
|
29719
|
+
multiline: PropTypes__default["default"].bool,
|
|
29720
|
+
minRows: PropTypes__default["default"].number,
|
|
29721
|
+
required: PropTypes__default["default"].bool,
|
|
29722
|
+
loading: PropTypes__default["default"].bool,
|
|
29723
|
+
disabled: PropTypes__default["default"].bool,
|
|
29724
|
+
onChange: PropTypes__default["default"].func
|
|
29699
29725
|
};
|
|
29700
29726
|
|
|
29701
29727
|
var castToNumber = function castToNumber(value, step) {
|
|
@@ -36827,7 +36853,7 @@ var SelectOrCreate = function SelectOrCreate(_ref2) {
|
|
|
36827
36853
|
onInputChange = _ref2.onInputChange;
|
|
36828
36854
|
return /*#__PURE__*/React__default["default"].createElement(Autocomplete__default["default"], {
|
|
36829
36855
|
id: id,
|
|
36830
|
-
value: value,
|
|
36856
|
+
value: value || '',
|
|
36831
36857
|
fullWidth: true,
|
|
36832
36858
|
disabled: disabled,
|
|
36833
36859
|
onOpen: onOpen,
|
|
@@ -36859,6 +36885,7 @@ var SelectOrCreate = function SelectOrCreate(_ref2) {
|
|
|
36859
36885
|
clearOnBlur: true,
|
|
36860
36886
|
handleHomeEndKeys: true,
|
|
36861
36887
|
options: options,
|
|
36888
|
+
freeSolo: allowCreate,
|
|
36862
36889
|
getOptionLabel: function getOptionLabel(option) {
|
|
36863
36890
|
// Value selected with enter, right from the input
|
|
36864
36891
|
if (typeof option === 'string') {
|
|
@@ -36869,15 +36896,17 @@ var SelectOrCreate = function SelectOrCreate(_ref2) {
|
|
|
36869
36896
|
} // Add "xxx" option created dynamically
|
|
36870
36897
|
|
|
36871
36898
|
|
|
36872
|
-
if (option.inputValue) {
|
|
36873
|
-
return option.inputValue;
|
|
36899
|
+
if (option !== null && option !== void 0 && option.inputValue) {
|
|
36900
|
+
return option === null || option === void 0 ? void 0 : option.inputValue;
|
|
36874
36901
|
} // Regular option
|
|
36875
36902
|
|
|
36876
36903
|
|
|
36877
36904
|
return option[searchKey];
|
|
36878
36905
|
},
|
|
36906
|
+
isOptionEqualToValue: function isOptionEqualToValue(option, testValue) {
|
|
36907
|
+
return option[searchKey] === testValue;
|
|
36908
|
+
},
|
|
36879
36909
|
renderOption: renderOption,
|
|
36880
|
-
freeSolo: true,
|
|
36881
36910
|
renderInput: function renderInput(params) {
|
|
36882
36911
|
return _renderInput({
|
|
36883
36912
|
required: required,
|
|
@@ -36903,11 +36932,11 @@ SelectOrCreate.propTypes = {
|
|
|
36903
36932
|
searchKey: PropTypes__default["default"].string.isRequired,
|
|
36904
36933
|
renderOption: PropTypes__default["default"].func.isRequired,
|
|
36905
36934
|
renderNewOption: PropTypes__default["default"].func.isRequired,
|
|
36906
|
-
value: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].object])
|
|
36935
|
+
value: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].object]),
|
|
36907
36936
|
onOpen: PropTypes__default["default"].func,
|
|
36908
36937
|
onClose: PropTypes__default["default"].func,
|
|
36909
|
-
onChange: PropTypes__default["default"].func
|
|
36910
|
-
onInputChange: PropTypes__default["default"].func
|
|
36938
|
+
onChange: PropTypes__default["default"].func,
|
|
36939
|
+
onInputChange: PropTypes__default["default"].func
|
|
36911
36940
|
};
|
|
36912
36941
|
|
|
36913
36942
|
var FormAutocomplete = function FormAutocomplete(_ref) {
|
|
@@ -36979,8 +37008,16 @@ var FormAutocomplete = function FormAutocomplete(_ref) {
|
|
|
36979
37008
|
searchKey: "entry",
|
|
36980
37009
|
required: required,
|
|
36981
37010
|
disabled: disabled,
|
|
36982
|
-
renderOption: function renderOption(option) {
|
|
36983
|
-
return /*#__PURE__*/React__default["default"].createElement(material.Box
|
|
37011
|
+
renderOption: function renderOption(props, option) {
|
|
37012
|
+
return /*#__PURE__*/React__default["default"].createElement(material.Box // eslint-disable-next-line react/jsx-props-no-spreading
|
|
37013
|
+
, _extends({}, props, {
|
|
37014
|
+
sx: {
|
|
37015
|
+
display: 'flex',
|
|
37016
|
+
flexDirection: 'column',
|
|
37017
|
+
justifyContent: 'flex-start',
|
|
37018
|
+
alignItems: 'flex-start'
|
|
37019
|
+
}
|
|
37020
|
+
}), /*#__PURE__*/React__default["default"].createElement(material.Typography, {
|
|
36984
37021
|
variant: "body1"
|
|
36985
37022
|
}, option.entry), option.count !== undefined && option.count !== null && /*#__PURE__*/React__default["default"].createElement(material.Typography, {
|
|
36986
37023
|
variant: "caption"
|
|
@@ -37015,7 +37052,7 @@ FormAutocomplete.propTypes = {
|
|
|
37015
37052
|
options: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
|
|
37016
37053
|
entry: PropTypes__default["default"].string.isRequired,
|
|
37017
37054
|
count: PropTypes__default["default"].number
|
|
37018
|
-
}))
|
|
37055
|
+
})),
|
|
37019
37056
|
allowCreate: PropTypes__default["default"].bool,
|
|
37020
37057
|
variant: PropTypes__default["default"].oneOf(['standard', 'filled', 'outlined']),
|
|
37021
37058
|
required: PropTypes__default["default"].bool,
|
|
@@ -37029,24 +37066,26 @@ FormAutocomplete.propTypes = {
|
|
|
37029
37066
|
onChange: PropTypes__default["default"].func
|
|
37030
37067
|
};
|
|
37031
37068
|
|
|
37032
|
-
var _excluded$5 = ["options", "required", "defaultValue", "value", "noSort"];
|
|
37069
|
+
var _excluded$5 = ["name", "options", "required", "defaultValue", "value", "noSort", "onChange"];
|
|
37033
37070
|
|
|
37034
37071
|
var FormSelect = function FormSelect(_ref) {
|
|
37035
|
-
var
|
|
37072
|
+
var name = _ref.name,
|
|
37073
|
+
options = _ref.options,
|
|
37036
37074
|
required = _ref.required,
|
|
37037
37075
|
defaultValue = _ref.defaultValue,
|
|
37038
37076
|
value = _ref.value,
|
|
37039
37077
|
noSort = _ref.noSort,
|
|
37078
|
+
onChange = _ref.onChange,
|
|
37040
37079
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
37041
37080
|
|
|
37042
37081
|
var allOptions = noSort ? options : options.sort(function (l, r) {
|
|
37043
37082
|
return l.label.localeCompare(r.label);
|
|
37044
37083
|
});
|
|
37045
37084
|
|
|
37046
|
-
if (!required) {
|
|
37085
|
+
if (!required && !defaultValue) {
|
|
37047
37086
|
allOptions.unshift({
|
|
37048
37087
|
label: 'Auswahl löschen',
|
|
37049
|
-
value:
|
|
37088
|
+
value: ''
|
|
37050
37089
|
});
|
|
37051
37090
|
}
|
|
37052
37091
|
|
|
@@ -37054,11 +37093,14 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
37054
37093
|
if (value !== undefined) finalValue = value;
|
|
37055
37094
|
if (finalValue === '' && defaultValue !== undefined) finalValue = defaultValue;
|
|
37056
37095
|
return /*#__PURE__*/React__default["default"].createElement(material.TextField, _extends({
|
|
37096
|
+
name: name,
|
|
37057
37097
|
select: true,
|
|
37058
37098
|
required: required,
|
|
37059
37099
|
value: finalValue // eslint-disable-next-line react/jsx-props-no-spreading
|
|
37060
37100
|
|
|
37061
|
-
}, props
|
|
37101
|
+
}, props, {
|
|
37102
|
+
onChange: onChange
|
|
37103
|
+
}), allOptions.map(function (_ref2) {
|
|
37062
37104
|
var itemLabel = _ref2.label,
|
|
37063
37105
|
itemValue = _ref2.value;
|
|
37064
37106
|
return /*#__PURE__*/React__default["default"].createElement(material.MenuItem, {
|
|
@@ -37069,16 +37111,16 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
37069
37111
|
};
|
|
37070
37112
|
|
|
37071
37113
|
FormSelect.propTypes = {
|
|
37072
|
-
name: PropTypes__default["default"].string
|
|
37114
|
+
name: PropTypes__default["default"].string,
|
|
37073
37115
|
defaultValue: PropTypes__default["default"].string,
|
|
37074
37116
|
value: PropTypes__default["default"].string,
|
|
37075
37117
|
options: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
|
|
37076
37118
|
label: PropTypes__default["default"].string.isRequired,
|
|
37077
37119
|
value: PropTypes__default["default"].any
|
|
37078
|
-
}))
|
|
37120
|
+
})),
|
|
37079
37121
|
required: PropTypes__default["default"].bool,
|
|
37080
37122
|
noSort: PropTypes__default["default"].bool,
|
|
37081
|
-
onChange: PropTypes__default["default"].func
|
|
37123
|
+
onChange: PropTypes__default["default"].func
|
|
37082
37124
|
};
|
|
37083
37125
|
|
|
37084
37126
|
var _excluded$4 = ["type", "options", "autocomplete"];
|
package/dist/index.esm.js
CHANGED
|
@@ -2228,19 +2228,19 @@ var anObject$1E = anObject$1G;
|
|
|
2228
2228
|
var concat$6 = uncurryThis$1k([].concat);
|
|
2229
2229
|
|
|
2230
2230
|
// all object keys, includes non-enumerable and symbols
|
|
2231
|
-
var ownKeys$
|
|
2231
|
+
var ownKeys$8 = getBuiltIn$I('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
2232
2232
|
var keys = getOwnPropertyNamesModule$2.f(anObject$1E(it));
|
|
2233
2233
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$3.f;
|
|
2234
2234
|
return getOwnPropertySymbols ? concat$6(keys, getOwnPropertySymbols(it)) : keys;
|
|
2235
2235
|
};
|
|
2236
2236
|
|
|
2237
2237
|
var hasOwn$v = hasOwnProperty_1;
|
|
2238
|
-
var ownKeys$
|
|
2238
|
+
var ownKeys$7 = ownKeys$8;
|
|
2239
2239
|
var getOwnPropertyDescriptorModule$6 = objectGetOwnPropertyDescriptor;
|
|
2240
2240
|
var definePropertyModule$a = objectDefineProperty;
|
|
2241
2241
|
|
|
2242
2242
|
var copyConstructorProperties$4 = function (target, source, exceptions) {
|
|
2243
|
-
var keys = ownKeys$
|
|
2243
|
+
var keys = ownKeys$7(source);
|
|
2244
2244
|
var defineProperty = definePropertyModule$a.f;
|
|
2245
2245
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$6.f;
|
|
2246
2246
|
for (var i = 0; i < keys.length; i++) {
|
|
@@ -7947,7 +7947,7 @@ $$3p({ target: 'Object', stat: true, forced: FORCED$9, sham: !DESCRIPTORS$i }, {
|
|
|
7947
7947
|
|
|
7948
7948
|
var $$3o = _export;
|
|
7949
7949
|
var DESCRIPTORS$h = descriptors;
|
|
7950
|
-
var ownKeys$
|
|
7950
|
+
var ownKeys$6 = ownKeys$8;
|
|
7951
7951
|
var toIndexedObject$7 = toIndexedObject$k;
|
|
7952
7952
|
var getOwnPropertyDescriptorModule$4 = objectGetOwnPropertyDescriptor;
|
|
7953
7953
|
var createProperty$1 = createProperty$9;
|
|
@@ -7958,7 +7958,7 @@ $$3o({ target: 'Object', stat: true, sham: !DESCRIPTORS$h }, {
|
|
|
7958
7958
|
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
|
|
7959
7959
|
var O = toIndexedObject$7(object);
|
|
7960
7960
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$4.f;
|
|
7961
|
-
var keys = ownKeys$
|
|
7961
|
+
var keys = ownKeys$6(O);
|
|
7962
7962
|
var result = {};
|
|
7963
7963
|
var index = 0;
|
|
7964
7964
|
var key, descriptor;
|
|
@@ -9324,12 +9324,12 @@ $$2S({ target: 'Reflect', stat: true }, {
|
|
|
9324
9324
|
});
|
|
9325
9325
|
|
|
9326
9326
|
var $$2R = _export;
|
|
9327
|
-
var ownKeys$
|
|
9327
|
+
var ownKeys$5 = ownKeys$8;
|
|
9328
9328
|
|
|
9329
9329
|
// `Reflect.ownKeys` method
|
|
9330
9330
|
// https://tc39.es/ecma262/#sec-reflect.ownkeys
|
|
9331
9331
|
$$2R({ target: 'Reflect', stat: true }, {
|
|
9332
|
-
ownKeys: ownKeys$
|
|
9332
|
+
ownKeys: ownKeys$5
|
|
9333
9333
|
});
|
|
9334
9334
|
|
|
9335
9335
|
var $$2Q = _export;
|
|
@@ -29470,9 +29470,9 @@ FormSectionBlock.propTypes = {
|
|
|
29470
29470
|
|
|
29471
29471
|
var _excluded$7 = ["prepend", "append", "componentProps"];
|
|
29472
29472
|
|
|
29473
|
-
function ownKeys$
|
|
29473
|
+
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29474
29474
|
|
|
29475
|
-
function _objectSpread$
|
|
29475
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29476
29476
|
var useStyles$3 = makeStyles$1(function (theme) {
|
|
29477
29477
|
return {
|
|
29478
29478
|
error: {
|
|
@@ -29501,7 +29501,7 @@ var FormControlField$1 = function FormControlField(_ref) {
|
|
|
29501
29501
|
onChange = _ref.onChange;
|
|
29502
29502
|
var styles = useStyles$3();
|
|
29503
29503
|
|
|
29504
|
-
var finalProps = _objectSpread$
|
|
29504
|
+
var finalProps = _objectSpread$4(_objectSpread$4({
|
|
29505
29505
|
formVariant: formVariant,
|
|
29506
29506
|
name: name,
|
|
29507
29507
|
label: label,
|
|
@@ -29527,7 +29527,7 @@ var FormControlField$1 = function FormControlField(_ref) {
|
|
|
29527
29527
|
if (isRender) {
|
|
29528
29528
|
try {
|
|
29529
29529
|
var oldProps = component.props || {};
|
|
29530
|
-
control = /*#__PURE__*/React.cloneElement(component, _objectSpread$
|
|
29530
|
+
control = /*#__PURE__*/React.cloneElement(component, _objectSpread$4(_objectSpread$4(_objectSpread$4({
|
|
29531
29531
|
variant: variant
|
|
29532
29532
|
}, finalProps), oldProps), {}, {
|
|
29533
29533
|
label: label,
|
|
@@ -29540,7 +29540,7 @@ var FormControlField$1 = function FormControlField(_ref) {
|
|
|
29540
29540
|
}
|
|
29541
29541
|
} else {
|
|
29542
29542
|
try {
|
|
29543
|
-
control = /*#__PURE__*/React.createElement(component, _objectSpread$
|
|
29543
|
+
control = /*#__PURE__*/React.createElement(component, _objectSpread$4({
|
|
29544
29544
|
variant: variant
|
|
29545
29545
|
}, finalProps));
|
|
29546
29546
|
} catch (e) {
|
|
@@ -29601,7 +29601,7 @@ var FormField = function FormField(_ref2) {
|
|
|
29601
29601
|
componentProps = _ref2.componentProps,
|
|
29602
29602
|
fieldProps = _objectWithoutProperties(_ref2, _excluded$7);
|
|
29603
29603
|
|
|
29604
|
-
var finalProps = _objectSpread$
|
|
29604
|
+
var finalProps = _objectSpread$4({
|
|
29605
29605
|
componentProps: componentProps
|
|
29606
29606
|
}, fieldProps);
|
|
29607
29607
|
|
|
@@ -29659,29 +29659,55 @@ function _extends() {
|
|
|
29659
29659
|
return _extends.apply(this, arguments);
|
|
29660
29660
|
}
|
|
29661
29661
|
|
|
29662
|
-
|
|
29663
|
-
|
|
29664
|
-
|
|
29665
|
-
|
|
29666
|
-
|
|
29667
|
-
|
|
29668
|
-
|
|
29669
|
-
|
|
29662
|
+
var FormText = function FormText(_ref) {
|
|
29663
|
+
var type = _ref.type,
|
|
29664
|
+
name = _ref.name,
|
|
29665
|
+
label = _ref.label,
|
|
29666
|
+
variant = _ref.variant,
|
|
29667
|
+
value = _ref.value,
|
|
29668
|
+
defaultValue = _ref.defaultValue,
|
|
29669
|
+
multiline = _ref.multiline,
|
|
29670
|
+
minRows = _ref.minRows,
|
|
29671
|
+
required = _ref.required,
|
|
29672
|
+
loading = _ref.loading,
|
|
29673
|
+
disabled = _ref.disabled,
|
|
29674
|
+
onChange = _ref.onChange;
|
|
29675
|
+
var extraProps = {};
|
|
29670
29676
|
|
|
29671
29677
|
if (type === 'date' || type === 'datetime-local') {
|
|
29672
|
-
|
|
29678
|
+
extraProps.InputLabelProps = {
|
|
29673
29679
|
shrink: true
|
|
29674
29680
|
};
|
|
29675
|
-
}
|
|
29676
|
-
|
|
29681
|
+
}
|
|
29677
29682
|
|
|
29678
29683
|
return /*#__PURE__*/React.createElement(TextField, _extends({
|
|
29679
|
-
type: type
|
|
29680
|
-
|
|
29684
|
+
type: type,
|
|
29685
|
+
name: name,
|
|
29686
|
+
label: label,
|
|
29687
|
+
variant: variant,
|
|
29688
|
+
value: value || defaultValue || '',
|
|
29689
|
+
multiline: multiline,
|
|
29690
|
+
minRows: minRows,
|
|
29691
|
+
required: required,
|
|
29692
|
+
disabled: disabled || loading,
|
|
29693
|
+
onChange: onChange || function () {} // eslint-disable-next-line react/jsx-props-no-spreading
|
|
29694
|
+
|
|
29695
|
+
}, extraProps));
|
|
29681
29696
|
};
|
|
29682
29697
|
|
|
29683
29698
|
FormText.propTypes = {
|
|
29684
|
-
type: PropTypes.string
|
|
29699
|
+
type: PropTypes.string,
|
|
29700
|
+
name: PropTypes.string,
|
|
29701
|
+
label: PropTypes.string,
|
|
29702
|
+
variant: PropTypes.string,
|
|
29703
|
+
value: PropTypes.string,
|
|
29704
|
+
defaultValue: PropTypes.string,
|
|
29705
|
+
multiline: PropTypes.bool,
|
|
29706
|
+
minRows: PropTypes.number,
|
|
29707
|
+
required: PropTypes.bool,
|
|
29708
|
+
loading: PropTypes.bool,
|
|
29709
|
+
disabled: PropTypes.bool,
|
|
29710
|
+
onChange: PropTypes.func
|
|
29685
29711
|
};
|
|
29686
29712
|
|
|
29687
29713
|
var castToNumber = function castToNumber(value, step) {
|
|
@@ -36813,7 +36839,7 @@ var SelectOrCreate = function SelectOrCreate(_ref2) {
|
|
|
36813
36839
|
onInputChange = _ref2.onInputChange;
|
|
36814
36840
|
return /*#__PURE__*/React.createElement(Autocomplete, {
|
|
36815
36841
|
id: id,
|
|
36816
|
-
value: value,
|
|
36842
|
+
value: value || '',
|
|
36817
36843
|
fullWidth: true,
|
|
36818
36844
|
disabled: disabled,
|
|
36819
36845
|
onOpen: onOpen,
|
|
@@ -36845,6 +36871,7 @@ var SelectOrCreate = function SelectOrCreate(_ref2) {
|
|
|
36845
36871
|
clearOnBlur: true,
|
|
36846
36872
|
handleHomeEndKeys: true,
|
|
36847
36873
|
options: options,
|
|
36874
|
+
freeSolo: allowCreate,
|
|
36848
36875
|
getOptionLabel: function getOptionLabel(option) {
|
|
36849
36876
|
// Value selected with enter, right from the input
|
|
36850
36877
|
if (typeof option === 'string') {
|
|
@@ -36855,15 +36882,17 @@ var SelectOrCreate = function SelectOrCreate(_ref2) {
|
|
|
36855
36882
|
} // Add "xxx" option created dynamically
|
|
36856
36883
|
|
|
36857
36884
|
|
|
36858
|
-
if (option.inputValue) {
|
|
36859
|
-
return option.inputValue;
|
|
36885
|
+
if (option !== null && option !== void 0 && option.inputValue) {
|
|
36886
|
+
return option === null || option === void 0 ? void 0 : option.inputValue;
|
|
36860
36887
|
} // Regular option
|
|
36861
36888
|
|
|
36862
36889
|
|
|
36863
36890
|
return option[searchKey];
|
|
36864
36891
|
},
|
|
36892
|
+
isOptionEqualToValue: function isOptionEqualToValue(option, testValue) {
|
|
36893
|
+
return option[searchKey] === testValue;
|
|
36894
|
+
},
|
|
36865
36895
|
renderOption: renderOption,
|
|
36866
|
-
freeSolo: true,
|
|
36867
36896
|
renderInput: function renderInput(params) {
|
|
36868
36897
|
return _renderInput({
|
|
36869
36898
|
required: required,
|
|
@@ -36889,11 +36918,11 @@ SelectOrCreate.propTypes = {
|
|
|
36889
36918
|
searchKey: PropTypes.string.isRequired,
|
|
36890
36919
|
renderOption: PropTypes.func.isRequired,
|
|
36891
36920
|
renderNewOption: PropTypes.func.isRequired,
|
|
36892
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.object])
|
|
36921
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
36893
36922
|
onOpen: PropTypes.func,
|
|
36894
36923
|
onClose: PropTypes.func,
|
|
36895
|
-
onChange: PropTypes.func
|
|
36896
|
-
onInputChange: PropTypes.func
|
|
36924
|
+
onChange: PropTypes.func,
|
|
36925
|
+
onInputChange: PropTypes.func
|
|
36897
36926
|
};
|
|
36898
36927
|
|
|
36899
36928
|
var FormAutocomplete = function FormAutocomplete(_ref) {
|
|
@@ -36965,8 +36994,16 @@ var FormAutocomplete = function FormAutocomplete(_ref) {
|
|
|
36965
36994
|
searchKey: "entry",
|
|
36966
36995
|
required: required,
|
|
36967
36996
|
disabled: disabled,
|
|
36968
|
-
renderOption: function renderOption(option) {
|
|
36969
|
-
return /*#__PURE__*/React.createElement(Box
|
|
36997
|
+
renderOption: function renderOption(props, option) {
|
|
36998
|
+
return /*#__PURE__*/React.createElement(Box // eslint-disable-next-line react/jsx-props-no-spreading
|
|
36999
|
+
, _extends({}, props, {
|
|
37000
|
+
sx: {
|
|
37001
|
+
display: 'flex',
|
|
37002
|
+
flexDirection: 'column',
|
|
37003
|
+
justifyContent: 'flex-start',
|
|
37004
|
+
alignItems: 'flex-start'
|
|
37005
|
+
}
|
|
37006
|
+
}), /*#__PURE__*/React.createElement(Typography, {
|
|
36970
37007
|
variant: "body1"
|
|
36971
37008
|
}, option.entry), option.count !== undefined && option.count !== null && /*#__PURE__*/React.createElement(Typography, {
|
|
36972
37009
|
variant: "caption"
|
|
@@ -37001,7 +37038,7 @@ FormAutocomplete.propTypes = {
|
|
|
37001
37038
|
options: PropTypes.arrayOf(PropTypes.shape({
|
|
37002
37039
|
entry: PropTypes.string.isRequired,
|
|
37003
37040
|
count: PropTypes.number
|
|
37004
|
-
}))
|
|
37041
|
+
})),
|
|
37005
37042
|
allowCreate: PropTypes.bool,
|
|
37006
37043
|
variant: PropTypes.oneOf(['standard', 'filled', 'outlined']),
|
|
37007
37044
|
required: PropTypes.bool,
|
|
@@ -37015,24 +37052,26 @@ FormAutocomplete.propTypes = {
|
|
|
37015
37052
|
onChange: PropTypes.func
|
|
37016
37053
|
};
|
|
37017
37054
|
|
|
37018
|
-
var _excluded$5 = ["options", "required", "defaultValue", "value", "noSort"];
|
|
37055
|
+
var _excluded$5 = ["name", "options", "required", "defaultValue", "value", "noSort", "onChange"];
|
|
37019
37056
|
|
|
37020
37057
|
var FormSelect = function FormSelect(_ref) {
|
|
37021
|
-
var
|
|
37058
|
+
var name = _ref.name,
|
|
37059
|
+
options = _ref.options,
|
|
37022
37060
|
required = _ref.required,
|
|
37023
37061
|
defaultValue = _ref.defaultValue,
|
|
37024
37062
|
value = _ref.value,
|
|
37025
37063
|
noSort = _ref.noSort,
|
|
37064
|
+
onChange = _ref.onChange,
|
|
37026
37065
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
37027
37066
|
|
|
37028
37067
|
var allOptions = noSort ? options : options.sort(function (l, r) {
|
|
37029
37068
|
return l.label.localeCompare(r.label);
|
|
37030
37069
|
});
|
|
37031
37070
|
|
|
37032
|
-
if (!required) {
|
|
37071
|
+
if (!required && !defaultValue) {
|
|
37033
37072
|
allOptions.unshift({
|
|
37034
37073
|
label: 'Auswahl löschen',
|
|
37035
|
-
value:
|
|
37074
|
+
value: ''
|
|
37036
37075
|
});
|
|
37037
37076
|
}
|
|
37038
37077
|
|
|
@@ -37040,11 +37079,14 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
37040
37079
|
if (value !== undefined) finalValue = value;
|
|
37041
37080
|
if (finalValue === '' && defaultValue !== undefined) finalValue = defaultValue;
|
|
37042
37081
|
return /*#__PURE__*/React.createElement(TextField, _extends({
|
|
37082
|
+
name: name,
|
|
37043
37083
|
select: true,
|
|
37044
37084
|
required: required,
|
|
37045
37085
|
value: finalValue // eslint-disable-next-line react/jsx-props-no-spreading
|
|
37046
37086
|
|
|
37047
|
-
}, props
|
|
37087
|
+
}, props, {
|
|
37088
|
+
onChange: onChange
|
|
37089
|
+
}), allOptions.map(function (_ref2) {
|
|
37048
37090
|
var itemLabel = _ref2.label,
|
|
37049
37091
|
itemValue = _ref2.value;
|
|
37050
37092
|
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
@@ -37055,16 +37097,16 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
37055
37097
|
};
|
|
37056
37098
|
|
|
37057
37099
|
FormSelect.propTypes = {
|
|
37058
|
-
name: PropTypes.string
|
|
37100
|
+
name: PropTypes.string,
|
|
37059
37101
|
defaultValue: PropTypes.string,
|
|
37060
37102
|
value: PropTypes.string,
|
|
37061
37103
|
options: PropTypes.arrayOf(PropTypes.shape({
|
|
37062
37104
|
label: PropTypes.string.isRequired,
|
|
37063
37105
|
value: PropTypes.any
|
|
37064
|
-
}))
|
|
37106
|
+
})),
|
|
37065
37107
|
required: PropTypes.bool,
|
|
37066
37108
|
noSort: PropTypes.bool,
|
|
37067
|
-
onChange: PropTypes.func
|
|
37109
|
+
onChange: PropTypes.func
|
|
37068
37110
|
};
|
|
37069
37111
|
|
|
37070
37112
|
var _excluded$4 = ["type", "options", "autocomplete"];
|
package/package.json
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@scenid/react-formulator",
|
|
3
|
-
"version": "
|
|
4
|
-
"main": "dist/index.cjs.js",
|
|
5
|
-
"module": "dist/index.esm.js",
|
|
6
|
-
"repository": "https://dennykoch@bitbucket.org/scenid/react-formulator.git",
|
|
7
|
-
"author": "Denny Koch <denny.koch@scenid.com>",
|
|
8
|
-
"license": "UNLICENSED",
|
|
9
|
-
"files": [
|
|
10
|
-
"dist"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "rollup -c",
|
|
14
|
-
"watch": "cross-env STORYBOOK_NODE_ENV=development start-storybook -p 6006",
|
|
15
|
-
"start:dev": "firebase emulators:start",
|
|
16
|
-
"storybook:build": "build-storybook",
|
|
17
|
-
"storybook:deploy": "yarn storybook:build && firebase deploy",
|
|
18
|
-
"prepublishOnly": "yarn build",
|
|
19
|
-
"git:pushall": "git push && git push --tags",
|
|
20
|
-
"patch": "npm version patch && yarn git:pushall",
|
|
21
|
-
"minor": "npm version minor && yarn git:pushall",
|
|
22
|
-
"major": "npm version major && yarn git:pushall",
|
|
23
|
-
"storybook": "start-storybook -p 6006",
|
|
24
|
-
"build-storybook": "build-storybook"
|
|
25
|
-
},
|
|
26
|
-
"peerDependencies": {
|
|
27
|
-
"@mui/icons-material": "^5.8.4",
|
|
28
|
-
"@mui/material": "^5.10.0",
|
|
29
|
-
"@mui/styles": "^5.9.3",
|
|
30
|
-
"classnames": "^2.3.1",
|
|
31
|
-
"prop-types": "^15.8.1",
|
|
32
|
-
"react": "17.0.2",
|
|
33
|
-
"react-dom": "17.0.2"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@babel/cli": "^7.8.4",
|
|
37
|
-
"@babel/core": "^7.17.9",
|
|
38
|
-
"@babel/node": "^7.8.7",
|
|
39
|
-
"@babel/plugin-proposal-export-default-from": "^7.16.7",
|
|
40
|
-
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
41
|
-
"@babel/preset-env": "^7.4.5",
|
|
42
|
-
"@babel/preset-react": "^7.0.0",
|
|
43
|
-
"@babel/register": "^7.0.0",
|
|
44
|
-
"@babel/runtime": "^7.4.5",
|
|
45
|
-
"@emotion/react": "^11.10.0",
|
|
46
|
-
"@emotion/styled": "^11.10.0",
|
|
47
|
-
"@mui/icons-material": "^5.8.4",
|
|
48
|
-
"@mui/material": "^5.10.0",
|
|
49
|
-
"@mui/styles": "^5.9.3",
|
|
50
|
-
"@rollup/plugin-babel": "^5.3.1",
|
|
51
|
-
"@rollup/plugin-commonjs": "^22.0.0",
|
|
52
|
-
"@rollup/plugin-node-resolve": "^13.2.1",
|
|
53
|
-
"@scenid/cloud-icons": "2.6.0-mui5-2",
|
|
54
|
-
"@scenid/formulator": "^2.3.4",
|
|
55
|
-
"@storybook/addon-actions": "^6.5.10",
|
|
56
|
-
"@storybook/addon-essentials": "^6.5.10",
|
|
57
|
-
"@storybook/addon-interactions": "^6.5.10",
|
|
58
|
-
"@storybook/addon-links": "^6.5.10",
|
|
59
|
-
"@storybook/builder-webpack4": "^6.5.10",
|
|
60
|
-
"@storybook/manager-webpack4": "^6.5.10",
|
|
61
|
-
"@storybook/react": "^6.5.10",
|
|
62
|
-
"@storybook/testing-library": "^0.0.13",
|
|
63
|
-
"@types/react": "^18.0.17",
|
|
64
|
-
"babel-eslint": "^10.1.0",
|
|
65
|
-
"babel-loader": "^8.2.5",
|
|
66
|
-
"babel-plugin-import": "^1.13.5",
|
|
67
|
-
"classnames": "^2.3.1",
|
|
68
|
-
"cross-env": "^7.0.3",
|
|
69
|
-
"eslint": "^7.11.0",
|
|
70
|
-
"eslint-config-airbnb": "^18.0.1",
|
|
71
|
-
"eslint-formatter-pretty": "^2.1.1",
|
|
72
|
-
"eslint-plugin-compat": "^3.1.2",
|
|
73
|
-
"eslint-plugin-import": "^2.17.3",
|
|
74
|
-
"eslint-plugin-jest": "^22.7.1",
|
|
75
|
-
"eslint-plugin-jsx-a11y": "^6.2.3",
|
|
76
|
-
"eslint-plugin-promise": "^4.1.1",
|
|
77
|
-
"eslint-plugin-react": "^7.6.1",
|
|
78
|
-
"eslint-plugin-react-hooks": "^2.3.0",
|
|
79
|
-
"eventemitter3": "^4.0.7",
|
|
80
|
-
"fast-deep-equal": "^3.1.3",
|
|
81
|
-
"luxon": "^2.3.2",
|
|
82
|
-
"micromustache": "^8.0.3",
|
|
83
|
-
"prop-types": "^15.8.1",
|
|
84
|
-
"react": "17.0.2",
|
|
85
|
-
"react-dom": "17.0.2",
|
|
86
|
-
"react-dropzone": "^14.2.1",
|
|
87
|
-
"react-markdown": "^8.0.3",
|
|
88
|
-
"rehype-highlight": "^5.0.2",
|
|
89
|
-
"remark-gfm": "^3.0.1",
|
|
90
|
-
"rollup": "^2.70.2",
|
|
91
|
-
"rollup-plugin-import-css": "^3.0.3",
|
|
92
|
-
"rollup-plugin-peer-deps-external": "^2.2.4"
|
|
93
|
-
},
|
|
94
|
-
"dependencies": {}
|
|
95
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@scenid/react-formulator",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"main": "dist/index.cjs.js",
|
|
5
|
+
"module": "dist/index.esm.js",
|
|
6
|
+
"repository": "https://dennykoch@bitbucket.org/scenid/react-formulator.git",
|
|
7
|
+
"author": "Denny Koch <denny.koch@scenid.com>",
|
|
8
|
+
"license": "UNLICENSED",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "rollup -c",
|
|
14
|
+
"watch": "cross-env STORYBOOK_NODE_ENV=development start-storybook -p 6006",
|
|
15
|
+
"start:dev": "firebase emulators:start",
|
|
16
|
+
"storybook:build": "build-storybook",
|
|
17
|
+
"storybook:deploy": "yarn storybook:build && firebase deploy",
|
|
18
|
+
"prepublishOnly": "yarn build",
|
|
19
|
+
"git:pushall": "git push && git push --tags",
|
|
20
|
+
"patch": "npm version patch && yarn git:pushall",
|
|
21
|
+
"minor": "npm version minor && yarn git:pushall",
|
|
22
|
+
"major": "npm version major && yarn git:pushall",
|
|
23
|
+
"storybook": "start-storybook -p 6006",
|
|
24
|
+
"build-storybook": "build-storybook"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@mui/icons-material": "^5.8.4",
|
|
28
|
+
"@mui/material": "^5.10.0",
|
|
29
|
+
"@mui/styles": "^5.9.3",
|
|
30
|
+
"classnames": "^2.3.1",
|
|
31
|
+
"prop-types": "^15.8.1",
|
|
32
|
+
"react": "17.0.2",
|
|
33
|
+
"react-dom": "17.0.2"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@babel/cli": "^7.8.4",
|
|
37
|
+
"@babel/core": "^7.17.9",
|
|
38
|
+
"@babel/node": "^7.8.7",
|
|
39
|
+
"@babel/plugin-proposal-export-default-from": "^7.16.7",
|
|
40
|
+
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
41
|
+
"@babel/preset-env": "^7.4.5",
|
|
42
|
+
"@babel/preset-react": "^7.0.0",
|
|
43
|
+
"@babel/register": "^7.0.0",
|
|
44
|
+
"@babel/runtime": "^7.4.5",
|
|
45
|
+
"@emotion/react": "^11.10.0",
|
|
46
|
+
"@emotion/styled": "^11.10.0",
|
|
47
|
+
"@mui/icons-material": "^5.8.4",
|
|
48
|
+
"@mui/material": "^5.10.0",
|
|
49
|
+
"@mui/styles": "^5.9.3",
|
|
50
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
51
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
52
|
+
"@rollup/plugin-node-resolve": "^13.2.1",
|
|
53
|
+
"@scenid/cloud-icons": "2.6.0-mui5-2",
|
|
54
|
+
"@scenid/formulator": "^2.3.4",
|
|
55
|
+
"@storybook/addon-actions": "^6.5.10",
|
|
56
|
+
"@storybook/addon-essentials": "^6.5.10",
|
|
57
|
+
"@storybook/addon-interactions": "^6.5.10",
|
|
58
|
+
"@storybook/addon-links": "^6.5.10",
|
|
59
|
+
"@storybook/builder-webpack4": "^6.5.10",
|
|
60
|
+
"@storybook/manager-webpack4": "^6.5.10",
|
|
61
|
+
"@storybook/react": "^6.5.10",
|
|
62
|
+
"@storybook/testing-library": "^0.0.13",
|
|
63
|
+
"@types/react": "^18.0.17",
|
|
64
|
+
"babel-eslint": "^10.1.0",
|
|
65
|
+
"babel-loader": "^8.2.5",
|
|
66
|
+
"babel-plugin-import": "^1.13.5",
|
|
67
|
+
"classnames": "^2.3.1",
|
|
68
|
+
"cross-env": "^7.0.3",
|
|
69
|
+
"eslint": "^7.11.0",
|
|
70
|
+
"eslint-config-airbnb": "^18.0.1",
|
|
71
|
+
"eslint-formatter-pretty": "^2.1.1",
|
|
72
|
+
"eslint-plugin-compat": "^3.1.2",
|
|
73
|
+
"eslint-plugin-import": "^2.17.3",
|
|
74
|
+
"eslint-plugin-jest": "^22.7.1",
|
|
75
|
+
"eslint-plugin-jsx-a11y": "^6.2.3",
|
|
76
|
+
"eslint-plugin-promise": "^4.1.1",
|
|
77
|
+
"eslint-plugin-react": "^7.6.1",
|
|
78
|
+
"eslint-plugin-react-hooks": "^2.3.0",
|
|
79
|
+
"eventemitter3": "^4.0.7",
|
|
80
|
+
"fast-deep-equal": "^3.1.3",
|
|
81
|
+
"luxon": "^2.3.2",
|
|
82
|
+
"micromustache": "^8.0.3",
|
|
83
|
+
"prop-types": "^15.8.1",
|
|
84
|
+
"react": "17.0.2",
|
|
85
|
+
"react-dom": "17.0.2",
|
|
86
|
+
"react-dropzone": "^14.2.1",
|
|
87
|
+
"react-markdown": "^8.0.3",
|
|
88
|
+
"rehype-highlight": "^5.0.2",
|
|
89
|
+
"remark-gfm": "^3.0.1",
|
|
90
|
+
"rollup": "^2.70.2",
|
|
91
|
+
"rollup-plugin-import-css": "^3.0.3",
|
|
92
|
+
"rollup-plugin-peer-deps-external": "^2.2.4"
|
|
93
|
+
},
|
|
94
|
+
"dependencies": {}
|
|
95
|
+
}
|