@kne/form-info 0.1.4 → 0.1.6
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 +690 -100
- package/dist/index.css +0 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +98 -46
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +87 -42
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["style.module.scss"],"names":[],"mappings":"AAAA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,wBAAwB;EACxB,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,+BAA+B;AACjC;AACA;EACE,6BAA6B;EAC7B,eAAe;EACf,iBAAiB;EACjB,
|
|
1
|
+
{"version":3,"sources":["style.module.scss"],"names":[],"mappings":"AAAA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,wBAAwB;EACxB,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,+BAA+B;AACjC;AACA;EACE,6BAA6B;EAC7B,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,8BAA8B;AAChC;AACA;EACE,2BAA2B;EAC3B,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,WAAW;AACb;AACA;;EAEE,OAAO;EACP,WAAW;AACb;AACA;;EAEE,mBAAmB;EACnB,wBAAwB;AAC1B;;AAEA;EACE,iCAAiC;AACnC;;AAEA;EACE,yCAAyC;EACzC,0CAA0C;EAC1C,iBAAiB;AACnB;;AAEA;EACE,iCAAiC;AACnC;AACA;EACE,UAAU;EACV,YAAY;EACZ,YAAY;AACd;AACA;EACE,iBAAiB;EACjB,gBAAgB;AAClB;;AAEA;EACE,mCAAmC;AACrC;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,uBAAuB;EACvB,UAAU;EACV,YAAY;EACZ,cAAc;AAChB;AACA;EACE,mCAAmC;EACnC,2BAA2B;EAC3B,iCAAiC;EACjC,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,oCAAoC;AACtC;AACA;EACE,YAAY;AACd;AACA;EACE,mBAAmB;EACnB,iDAAiD;EACjD,iBAAiB;EACjB,YAAY;EACZ,eAAe;AACjB;AACA;EACE,0BAA0B;EAC1B,uBAAuB;EACvB,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,uBAAuB;EACvB,mBAAmB;EACnB,eAAe;EACf,wBAAwB;AAC1B;AACA;EACE,aAAa;AACf;AACA;EACE,0CAA0C;AAC5C;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,0CAA0C;AAC5C;;AAEA;EACE,aAAa;EACb,iBAAiB;EACjB,QAAQ;AACV;AACA;EACE,aAAa;AACf;AACA;EACE,6BAA6B;EAC7B,eAAe;EACf,iBAAiB;EACjB,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,OAAO;AACT;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,2BAA2B;AAC7B;AACA;EACE,aAAa;AACf;AACA;EACE,+CAA+C;AACjD;AACA;EACE,6CAA6C;AAC/C;AACA;EACE,aAAa;EACb,uBAAuB;AACzB;;AAEA;EACE,wCAAwC;AAC1C;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kCAAkC;AACpC;AACA;EACE,2BAA2B;EAC3B,YAAY;EACZ,gBAAgB;EAChB,qBAAqB;EACrB,wBAAwB;EACxB,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;EACjB,iBAAiB;AACnB;;AAEA;EACE,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,gBAAgB;AAClB","file":"index.css","sourcesContent":[".form-outer :global(.multi-field-delete-label) {\n display: none;\n}\n.form-outer:global(.react-form--inner) :global(.react-form__field-label.is-req:before) {\n position: static;\n transform: translateX(0);\n margin-right: 6px;\n}\n.form-outer:global(.react-form--inner) :global(.multi-field-delete-label) {\n display: block;\n}\n.form-outer :global .react-form__field {\n color: var(--font-color);\n}\n.form-outer :global .react-form__field input {\n color: var(--font-color);\n}\n.form-outer :global .react-form__field input::placeholder {\n color: var(--font-color-grey-2);\n}\n.form-outer :global .react-form__field-label {\n color: var(--font-color-grey);\n font-size: 14px;\n line-height: 20px;\n margin-bottom: 8px;\n font-weight: normal !important;\n}\n.form-outer :global .react-form__field-label.is-req:before {\n color: var(--color-warning);\n display: inline-block;\n font-weight: bold;\n}\n.form-outer :global .react-form__field-error {\n line-height: 14px;\n}\n.form-outer :global .ant-input-number,\n.form-outer :global .ant-input-number-group-wrapper {\n width: 100%;\n}\n.form-outer :global .ant-picker.react-form__field-component,\n.form-outer :global .data_range_picker {\n flex: 1;\n width: 100%;\n}\n.form-outer :global .ant-input-number-group-addon,\n.form-outer :global .ant-input-group-addon {\n background: #ffffff;\n color: var(--font-color);\n}\n\n.form-info > :global(.ant-card-head .part-title) {\n font-size: var(--font-size-large);\n}\n\n.extra-btn:global(.ant-btn) {\n border-radius: var(--radius-default, 2px);\n border: 1px solid var(--font-color-grey-2);\n padding: 6px 12px;\n}\n\n.list-part > :global(.ant-card-head .part-title) {\n font-size: var(--font-size-large);\n}\n.list-part .list-part .extra-btn {\n padding: 0;\n border: none;\n min-width: 0;\n}\n.list-part:global.ant-card .ant-card-body {\n padding: 16px 0 0;\n border-radius: 0;\n}\n\n.list-item.is-important > .list-item-part:global(.ant-card > .ant-card-head) {\n background: var(--primary-color-06);\n}\n.list-item.is-important > .list-item-part:global(.ant-card > .ant-card-head .ant-card-head-title .part-title) {\n color: var(--primary-color);\n}\n.list-item.is-important .list-item-part:global(.ant-card .ant-card-head-title .part-title) {\n font-weight: 500;\n}\n.list-item.is-important > .list-item-part:global(.ant-card) .list-part:global(.ant-card > .ant-card-head) {\n background: transparent;\n padding: 0;\n border: none;\n line-height: 1;\n}\n.list-item.is-important > .list-item-part:global(.ant-card) .list-part:global(.ant-card > .ant-card-head) :global(.part-title) {\n background: var(--primary-color-06);\n color: var(--primary-color);\n font-size: var(--font-size-small);\n font-weight: bold;\n}\n.list-item.is-important > .list-item-part:global(.ant-card) .list-part:global(.ant-card > .ant-card-body) {\n padding: 16px 0;\n}\n.list-item.is-important > .list-item-part {\n border-color: var(--primary-color-5);\n}\n.list-item.is-important .table-list-inner {\n border: none;\n}\n.list-item .list-item-part:global(.ant-card) :global(.ant-card-head) {\n background: #f8f8f8;\n border-bottom: 1px solid var(--font-color-grey-4);\n line-height: 36px;\n height: 36px;\n padding: 0 16px;\n}\n.list-item .list-item-part:global(.ant-card) :global(.ant-card-head) .extra-btn {\n min-width: auto !important;\n border: none !important;\n padding: 0 !important;\n background: transparent !important;\n}\n.list-item .list-item-part:global(.ant-card) :global(.ant-card-head-title) :global(.part-title) {\n background: transparent;\n font-weight: normal;\n font-size: 14px;\n color: var(--font-color);\n}\n.list-item .list-item-part:global(.ant-card) :global(.ant-card-body) {\n padding: 16px;\n}\n.list-item :global(.ant-divider) {\n border-top-color: var(--font-color-grey-2);\n}\n.list-item :global(.ant-divider) {\n display: none;\n}\n.list-item:not(:last-child) {\n margin-bottom: 16px;\n}\n\n.list-item-part {\n border: 1px solid var(--font-color-grey-4);\n}\n\n.multi-field-item {\n display: flex;\n flex-wrap: nowrap;\n gap: 8px;\n}\n.multi-field-item:not(:first-child) :global .react-form__field-label {\n display: none;\n}\n.multi-field-item .react-form__field-label {\n color: var(--font-color-grey);\n font-size: 14px;\n line-height: 20px;\n height: 20px;\n margin-bottom: 8px;\n}\n.multi-field-item :global .react-form__field {\n flex: 1;\n}\n\n.multi-field-add-btn {\n margin-bottom: 16px;\n}\n\n.table-list .list-item {\n margin-bottom: 0 !important;\n}\n.table-list :global .react-form__field-label {\n display: none;\n}\n.table-list :global .ant-row:not(:last-child) {\n border-bottom: solid 1px var(--bg-color-grey-3);\n}\n.table-list :global .ant-row:hover {\n background: var(--bg-color-grey-1) !important;\n}\n.table-list :global .ant-col {\n padding: 16px;\n width: var(--col-width);\n}\n\n.table-list-inner {\n border: solid 1px var(--bg-color-grey-3);\n}\n\n.table-list-field:global(.ant-col) {\n padding-bottom: 0;\n}\n\n.table-list-header {\n background: var(--bg-color-grey-1);\n}\n.table-list-header .is-req:before {\n color: var(--color-warning);\n content: \"*\";\n position: static;\n display: inline-block;\n transform: translateX(0);\n margin-right: 6px;\n font-weight: bold;\n}\n.table-list-header :global .ant-col {\n padding: 8px 16px;\n}\n\n.table-options {\n flex-basis: 100px;\n text-align: right;\n}\n\n.steps {\n justify-content: center;\n width: auto;\n}\n.steps :global(.ant-steps-item) {\n max-width: 450px;\n}\n.steps :global(.ant-steps-item-content) {\n text-wrap: nowrap;\n}\n\n.steps-form-inner {\n width: 100%;\n}\n\n.steps-modal .steps {\n padding: 0 100px;\n}\n\n.table-list-empty {\n padding: 16px;\n}\n\n.extra-container {\n min-height: 32px;\n}"]}
|
package/dist/index.js
CHANGED
|
@@ -142,7 +142,7 @@ const FormInfo = props => {
|
|
|
142
142
|
list: list,
|
|
143
143
|
column: column,
|
|
144
144
|
className: classnames({
|
|
145
|
-
[style[
|
|
145
|
+
[style['column-not-layout']]: notLayout
|
|
146
146
|
}),
|
|
147
147
|
itemRender: (children, props) => {
|
|
148
148
|
if (props.hidden) {
|
|
@@ -784,17 +784,17 @@ var Symbol = _root.Symbol;
|
|
|
784
784
|
var _Symbol = Symbol;
|
|
785
785
|
|
|
786
786
|
/** Used for built-in method references. */
|
|
787
|
-
var objectProto$
|
|
787
|
+
var objectProto$e = Object.prototype;
|
|
788
788
|
|
|
789
789
|
/** Used to check objects for own properties. */
|
|
790
|
-
var hasOwnProperty$
|
|
790
|
+
var hasOwnProperty$b = objectProto$e.hasOwnProperty;
|
|
791
791
|
|
|
792
792
|
/**
|
|
793
793
|
* Used to resolve the
|
|
794
794
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
795
795
|
* of values.
|
|
796
796
|
*/
|
|
797
|
-
var nativeObjectToString$1 = objectProto$
|
|
797
|
+
var nativeObjectToString$1 = objectProto$e.toString;
|
|
798
798
|
|
|
799
799
|
/** Built-in value references. */
|
|
800
800
|
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
@@ -807,7 +807,7 @@ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
|
807
807
|
* @returns {string} Returns the raw `toStringTag`.
|
|
808
808
|
*/
|
|
809
809
|
function getRawTag(value) {
|
|
810
|
-
var isOwn = hasOwnProperty$
|
|
810
|
+
var isOwn = hasOwnProperty$b.call(value, symToStringTag$1),
|
|
811
811
|
tag = value[symToStringTag$1];
|
|
812
812
|
|
|
813
813
|
try {
|
|
@@ -829,14 +829,14 @@ function getRawTag(value) {
|
|
|
829
829
|
var _getRawTag = getRawTag;
|
|
830
830
|
|
|
831
831
|
/** Used for built-in method references. */
|
|
832
|
-
var objectProto$
|
|
832
|
+
var objectProto$d = Object.prototype;
|
|
833
833
|
|
|
834
834
|
/**
|
|
835
835
|
* Used to resolve the
|
|
836
836
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
837
837
|
* of values.
|
|
838
838
|
*/
|
|
839
|
-
var nativeObjectToString = objectProto$
|
|
839
|
+
var nativeObjectToString = objectProto$d.toString;
|
|
840
840
|
|
|
841
841
|
/**
|
|
842
842
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
@@ -1005,17 +1005,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
1005
1005
|
|
|
1006
1006
|
/** Used for built-in method references. */
|
|
1007
1007
|
var funcProto$1 = Function.prototype,
|
|
1008
|
-
objectProto$
|
|
1008
|
+
objectProto$c = Object.prototype;
|
|
1009
1009
|
|
|
1010
1010
|
/** Used to resolve the decompiled source of functions. */
|
|
1011
1011
|
var funcToString$1 = funcProto$1.toString;
|
|
1012
1012
|
|
|
1013
1013
|
/** Used to check objects for own properties. */
|
|
1014
|
-
var hasOwnProperty$
|
|
1014
|
+
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
1015
1015
|
|
|
1016
1016
|
/** Used to detect if a method is native. */
|
|
1017
1017
|
var reIsNative = RegExp('^' +
|
|
1018
|
-
funcToString$1.call(hasOwnProperty$
|
|
1018
|
+
funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar, '\\$&')
|
|
1019
1019
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
1020
1020
|
);
|
|
1021
1021
|
|
|
@@ -1112,10 +1112,10 @@ var _hashDelete = hashDelete;
|
|
|
1112
1112
|
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
1113
1113
|
|
|
1114
1114
|
/** Used for built-in method references. */
|
|
1115
|
-
var objectProto$
|
|
1115
|
+
var objectProto$b = Object.prototype;
|
|
1116
1116
|
|
|
1117
1117
|
/** Used to check objects for own properties. */
|
|
1118
|
-
var hasOwnProperty$
|
|
1118
|
+
var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
|
|
1119
1119
|
|
|
1120
1120
|
/**
|
|
1121
1121
|
* Gets the hash value for `key`.
|
|
@@ -1132,16 +1132,16 @@ function hashGet(key) {
|
|
|
1132
1132
|
var result = data[key];
|
|
1133
1133
|
return result === HASH_UNDEFINED$1 ? undefined : result;
|
|
1134
1134
|
}
|
|
1135
|
-
return hasOwnProperty$
|
|
1135
|
+
return hasOwnProperty$9.call(data, key) ? data[key] : undefined;
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
1138
|
var _hashGet = hashGet;
|
|
1139
1139
|
|
|
1140
1140
|
/** Used for built-in method references. */
|
|
1141
|
-
var objectProto$
|
|
1141
|
+
var objectProto$a = Object.prototype;
|
|
1142
1142
|
|
|
1143
1143
|
/** Used to check objects for own properties. */
|
|
1144
|
-
var hasOwnProperty$
|
|
1144
|
+
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
1145
1145
|
|
|
1146
1146
|
/**
|
|
1147
1147
|
* Checks if a hash value for `key` exists.
|
|
@@ -1154,7 +1154,7 @@ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
|
1154
1154
|
*/
|
|
1155
1155
|
function hashHas(key) {
|
|
1156
1156
|
var data = this.__data__;
|
|
1157
|
-
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$
|
|
1157
|
+
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$8.call(data, key);
|
|
1158
1158
|
}
|
|
1159
1159
|
|
|
1160
1160
|
var _hashHas = hashHas;
|
|
@@ -1464,10 +1464,10 @@ function baseAssignValue(object, key, value) {
|
|
|
1464
1464
|
var _baseAssignValue = baseAssignValue;
|
|
1465
1465
|
|
|
1466
1466
|
/** Used for built-in method references. */
|
|
1467
|
-
var objectProto$
|
|
1467
|
+
var objectProto$9 = Object.prototype;
|
|
1468
1468
|
|
|
1469
1469
|
/** Used to check objects for own properties. */
|
|
1470
|
-
var hasOwnProperty$
|
|
1470
|
+
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
1471
1471
|
|
|
1472
1472
|
/**
|
|
1473
1473
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
@@ -1481,7 +1481,7 @@ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
|
1481
1481
|
*/
|
|
1482
1482
|
function assignValue(object, key, value) {
|
|
1483
1483
|
var objValue = object[key];
|
|
1484
|
-
if (!(hasOwnProperty$
|
|
1484
|
+
if (!(hasOwnProperty$7.call(object, key) && eq_1(objValue, value)) ||
|
|
1485
1485
|
(value === undefined && !(key in object))) {
|
|
1486
1486
|
_baseAssignValue(object, key, value);
|
|
1487
1487
|
}
|
|
@@ -1595,13 +1595,13 @@ function baseIsArguments(value) {
|
|
|
1595
1595
|
var _baseIsArguments = baseIsArguments;
|
|
1596
1596
|
|
|
1597
1597
|
/** Used for built-in method references. */
|
|
1598
|
-
var objectProto$
|
|
1598
|
+
var objectProto$8 = Object.prototype;
|
|
1599
1599
|
|
|
1600
1600
|
/** Used to check objects for own properties. */
|
|
1601
|
-
var hasOwnProperty$
|
|
1601
|
+
var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
1602
1602
|
|
|
1603
1603
|
/** Built-in value references. */
|
|
1604
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
1604
|
+
var propertyIsEnumerable$1 = objectProto$8.propertyIsEnumerable;
|
|
1605
1605
|
|
|
1606
1606
|
/**
|
|
1607
1607
|
* Checks if `value` is likely an `arguments` object.
|
|
@@ -1622,7 +1622,7 @@ var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
|
|
|
1622
1622
|
* // => false
|
|
1623
1623
|
*/
|
|
1624
1624
|
var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
|
|
1625
|
-
return isObjectLike_1(value) && hasOwnProperty$
|
|
1625
|
+
return isObjectLike_1(value) && hasOwnProperty$6.call(value, 'callee') &&
|
|
1626
1626
|
!propertyIsEnumerable$1.call(value, 'callee');
|
|
1627
1627
|
};
|
|
1628
1628
|
|
|
@@ -1902,10 +1902,10 @@ var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsType
|
|
|
1902
1902
|
var isTypedArray_1 = isTypedArray;
|
|
1903
1903
|
|
|
1904
1904
|
/** Used for built-in method references. */
|
|
1905
|
-
var objectProto$
|
|
1905
|
+
var objectProto$7 = Object.prototype;
|
|
1906
1906
|
|
|
1907
1907
|
/** Used to check objects for own properties. */
|
|
1908
|
-
var hasOwnProperty$
|
|
1908
|
+
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
1909
1909
|
|
|
1910
1910
|
/**
|
|
1911
1911
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
@@ -1925,7 +1925,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
1925
1925
|
length = result.length;
|
|
1926
1926
|
|
|
1927
1927
|
for (var key in value) {
|
|
1928
|
-
if ((inherited || hasOwnProperty$
|
|
1928
|
+
if ((inherited || hasOwnProperty$5.call(value, key)) &&
|
|
1929
1929
|
!(skipIndexes && (
|
|
1930
1930
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1931
1931
|
key == 'length' ||
|
|
@@ -1945,7 +1945,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
1945
1945
|
var _arrayLikeKeys = arrayLikeKeys;
|
|
1946
1946
|
|
|
1947
1947
|
/** Used for built-in method references. */
|
|
1948
|
-
var objectProto$
|
|
1948
|
+
var objectProto$6 = Object.prototype;
|
|
1949
1949
|
|
|
1950
1950
|
/**
|
|
1951
1951
|
* Checks if `value` is likely a prototype object.
|
|
@@ -1956,7 +1956,7 @@ var objectProto$5 = Object.prototype;
|
|
|
1956
1956
|
*/
|
|
1957
1957
|
function isPrototype(value) {
|
|
1958
1958
|
var Ctor = value && value.constructor,
|
|
1959
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$
|
|
1959
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$6;
|
|
1960
1960
|
|
|
1961
1961
|
return value === proto;
|
|
1962
1962
|
}
|
|
@@ -1985,10 +1985,10 @@ var nativeKeys = _overArg(Object.keys, Object);
|
|
|
1985
1985
|
var _nativeKeys = nativeKeys;
|
|
1986
1986
|
|
|
1987
1987
|
/** Used for built-in method references. */
|
|
1988
|
-
var objectProto$
|
|
1988
|
+
var objectProto$5 = Object.prototype;
|
|
1989
1989
|
|
|
1990
1990
|
/** Used to check objects for own properties. */
|
|
1991
|
-
var hasOwnProperty$
|
|
1991
|
+
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
1992
1992
|
|
|
1993
1993
|
/**
|
|
1994
1994
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
@@ -2003,7 +2003,7 @@ function baseKeys(object) {
|
|
|
2003
2003
|
}
|
|
2004
2004
|
var result = [];
|
|
2005
2005
|
for (var key in Object(object)) {
|
|
2006
|
-
if (hasOwnProperty$
|
|
2006
|
+
if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
|
|
2007
2007
|
result.push(key);
|
|
2008
2008
|
}
|
|
2009
2009
|
}
|
|
@@ -2114,10 +2114,10 @@ function nativeKeysIn(object) {
|
|
|
2114
2114
|
var _nativeKeysIn = nativeKeysIn;
|
|
2115
2115
|
|
|
2116
2116
|
/** Used for built-in method references. */
|
|
2117
|
-
var objectProto$
|
|
2117
|
+
var objectProto$4 = Object.prototype;
|
|
2118
2118
|
|
|
2119
2119
|
/** Used to check objects for own properties. */
|
|
2120
|
-
var hasOwnProperty$
|
|
2120
|
+
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
2121
2121
|
|
|
2122
2122
|
/**
|
|
2123
2123
|
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
@@ -2134,7 +2134,7 @@ function baseKeysIn(object) {
|
|
|
2134
2134
|
result = [];
|
|
2135
2135
|
|
|
2136
2136
|
for (var key in object) {
|
|
2137
|
-
if (!(key == 'constructor' && (isProto || !hasOwnProperty$
|
|
2137
|
+
if (!(key == 'constructor' && (isProto || !hasOwnProperty$3.call(object, key)))) {
|
|
2138
2138
|
result.push(key);
|
|
2139
2139
|
}
|
|
2140
2140
|
}
|
|
@@ -2295,10 +2295,10 @@ function stubArray() {
|
|
|
2295
2295
|
var stubArray_1 = stubArray;
|
|
2296
2296
|
|
|
2297
2297
|
/** Used for built-in method references. */
|
|
2298
|
-
var objectProto$
|
|
2298
|
+
var objectProto$3 = Object.prototype;
|
|
2299
2299
|
|
|
2300
2300
|
/** Built-in value references. */
|
|
2301
|
-
var propertyIsEnumerable = objectProto$
|
|
2301
|
+
var propertyIsEnumerable = objectProto$3.propertyIsEnumerable;
|
|
2302
2302
|
|
|
2303
2303
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
2304
2304
|
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
@@ -2514,10 +2514,10 @@ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
|
|
|
2514
2514
|
var _getTag = getTag;
|
|
2515
2515
|
|
|
2516
2516
|
/** Used for built-in method references. */
|
|
2517
|
-
var objectProto$
|
|
2517
|
+
var objectProto$2 = Object.prototype;
|
|
2518
2518
|
|
|
2519
2519
|
/** Used to check objects for own properties. */
|
|
2520
|
-
var hasOwnProperty$
|
|
2520
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
2521
2521
|
|
|
2522
2522
|
/**
|
|
2523
2523
|
* Initializes an array clone.
|
|
@@ -2531,7 +2531,7 @@ function initCloneArray(array) {
|
|
|
2531
2531
|
result = new array.constructor(length);
|
|
2532
2532
|
|
|
2533
2533
|
// Add properties assigned by `RegExp#exec`.
|
|
2534
|
-
if (length && typeof array[0] == 'string' && hasOwnProperty$
|
|
2534
|
+
if (length && typeof array[0] == 'string' && hasOwnProperty$2.call(array, 'index')) {
|
|
2535
2535
|
result.index = array.index;
|
|
2536
2536
|
result.input = array.input;
|
|
2537
2537
|
}
|
|
@@ -3328,6 +3328,12 @@ function parent(object, path) {
|
|
|
3328
3328
|
|
|
3329
3329
|
var _parent = parent;
|
|
3330
3330
|
|
|
3331
|
+
/** Used for built-in method references. */
|
|
3332
|
+
var objectProto$1 = Object.prototype;
|
|
3333
|
+
|
|
3334
|
+
/** Used to check objects for own properties. */
|
|
3335
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
3336
|
+
|
|
3331
3337
|
/**
|
|
3332
3338
|
* The base implementation of `_.unset`.
|
|
3333
3339
|
*
|
|
@@ -3338,8 +3344,47 @@ var _parent = parent;
|
|
|
3338
3344
|
*/
|
|
3339
3345
|
function baseUnset(object, path) {
|
|
3340
3346
|
path = _castPath(path, object);
|
|
3341
|
-
|
|
3342
|
-
|
|
3347
|
+
|
|
3348
|
+
// Prevent prototype pollution, see: https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
|
|
3349
|
+
var index = -1,
|
|
3350
|
+
length = path.length;
|
|
3351
|
+
|
|
3352
|
+
if (!length) {
|
|
3353
|
+
return true;
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3356
|
+
var isRootPrimitive = object == null || (typeof object !== 'object' && typeof object !== 'function');
|
|
3357
|
+
|
|
3358
|
+
while (++index < length) {
|
|
3359
|
+
var key = path[index];
|
|
3360
|
+
|
|
3361
|
+
// skip non-string keys (e.g., Symbols, numbers)
|
|
3362
|
+
if (typeof key !== 'string') {
|
|
3363
|
+
continue;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
// Always block "__proto__" anywhere in the path if it's not expected
|
|
3367
|
+
if (key === '__proto__' && !hasOwnProperty$1.call(object, '__proto__')) {
|
|
3368
|
+
return false;
|
|
3369
|
+
}
|
|
3370
|
+
|
|
3371
|
+
// Block "constructor.prototype" chains
|
|
3372
|
+
if (key === 'constructor' &&
|
|
3373
|
+
(index + 1) < length &&
|
|
3374
|
+
typeof path[index + 1] === 'string' &&
|
|
3375
|
+
path[index + 1] === 'prototype') {
|
|
3376
|
+
|
|
3377
|
+
// Allow ONLY when the path starts at a primitive root, e.g., _.unset(0, 'constructor.prototype.a')
|
|
3378
|
+
if (isRootPrimitive && index === 0) {
|
|
3379
|
+
continue;
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
return false;
|
|
3383
|
+
}
|
|
3384
|
+
}
|
|
3385
|
+
|
|
3386
|
+
var obj = _parent(object, path);
|
|
3387
|
+
return obj == null || delete obj[_toKey(last_1(path))];
|
|
3343
3388
|
}
|
|
3344
3389
|
|
|
3345
3390
|
var _baseUnset = baseUnset;
|
|
@@ -3927,16 +3972,23 @@ const FormSteps = p => {
|
|
|
3927
3972
|
},
|
|
3928
3973
|
isLastStep
|
|
3929
3974
|
}, ...[].slice.call(_arguments, 1))).then(function (res) {
|
|
3975
|
+
let _exit;
|
|
3930
3976
|
stepCacheRef.current[currentStep].submitData = res;
|
|
3931
3977
|
if (autoStep && res !== false && !isLastStep) {
|
|
3932
3978
|
onStepChange(currentStep + 1);
|
|
3933
3979
|
return res;
|
|
3934
3980
|
}
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3981
|
+
const _temp = function () {
|
|
3982
|
+
if (autoStep && res !== false) {
|
|
3983
|
+
return Promise.resolve(onComplete(stepCacheRef.current)).then(function () {
|
|
3984
|
+
_exit = 1;
|
|
3985
|
+
return res;
|
|
3986
|
+
});
|
|
3987
|
+
}
|
|
3988
|
+
}();
|
|
3989
|
+
return _temp && _temp.then ? _temp.then(function (_result) {
|
|
3990
|
+
return _exit ? _result : res;
|
|
3991
|
+
}) : _exit ? _temp : res;
|
|
3940
3992
|
});
|
|
3941
3993
|
} catch (e) {
|
|
3942
3994
|
return Promise.reject(e);
|