indicator-ui 0.0.240 → 0.0.242
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.js
CHANGED
|
@@ -19928,10 +19928,12 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
19928
19928
|
var formWrapperComponent = function formWrapperComponent(schema, key, additionProps) {
|
|
19929
19929
|
var newKeyWay = schema.props.name ? [].concat(_toConsumableArray(additionProps.keyWay), [schema.props.name]) : additionProps.keyWay;
|
|
19930
19930
|
var Element = schema.form_wrapper ? schema.form_wrapper : (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {});
|
|
19931
|
-
var elementKey =
|
|
19932
|
-
|
|
19933
|
-
|
|
19934
|
-
|
|
19931
|
+
var elementKey = schema.props._key !== undefined ? schema.props._key ? {
|
|
19932
|
+
key: schema.props._key
|
|
19933
|
+
} : {} : {
|
|
19934
|
+
key: key
|
|
19935
|
+
};
|
|
19936
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(Element, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _objectSpread({}, schema.props)), elementKey), (0,_lib__WEBPACK_IMPORTED_MODULE_2__.isCustomComponent)(Element) ? additionProps.customCompAdditionProps : {}), {}, {
|
|
19935
19937
|
children: schema.props.children && (0,_lib__WEBPACK_IMPORTED_MODULE_3__.formBuilder)(schema.props.children, _objectSpread(_objectSpread({}, additionProps), {}, {
|
|
19936
19938
|
// Сброс индексации массива
|
|
19937
19939
|
arrayKeyWayItemName: undefined,
|
|
@@ -25808,16 +25810,16 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
25808
25810
|
/**
|
|
25809
25811
|
* Компонент для отслеживания скролла в разных обстоятельствах.
|
|
25810
25812
|
* */
|
|
25811
|
-
|
|
25812
|
-
var onScroll =
|
|
25813
|
-
onScrollTop =
|
|
25814
|
-
onScrollBottom =
|
|
25815
|
-
children =
|
|
25816
|
-
|
|
25817
|
-
accuracy =
|
|
25818
|
-
|
|
25819
|
-
wrapper =
|
|
25820
|
-
className =
|
|
25813
|
+
var ScrollProvider = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
25814
|
+
var onScroll = props.onScroll,
|
|
25815
|
+
onScrollTop = props.onScrollTop,
|
|
25816
|
+
onScrollBottom = props.onScrollBottom,
|
|
25817
|
+
children = props.children,
|
|
25818
|
+
_props$accuracy = props.accuracy,
|
|
25819
|
+
accuracy = _props$accuracy === void 0 ? 10 : _props$accuracy,
|
|
25820
|
+
_props$wrapper = props.wrapper,
|
|
25821
|
+
wrapper = _props$wrapper === void 0 ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {}) : _props$wrapper,
|
|
25822
|
+
className = props.className;
|
|
25821
25823
|
var elementRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
|
|
25822
25824
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
|
25823
25825
|
if (elementRef.current) {
|
|
@@ -25866,7 +25868,7 @@ function ScrollProvider(_ref) {
|
|
|
25866
25868
|
ref: elementRef,
|
|
25867
25869
|
children: children
|
|
25868
25870
|
}, classNameProps));
|
|
25869
|
-
}
|
|
25871
|
+
});
|
|
25870
25872
|
|
|
25871
25873
|
/***/ }),
|
|
25872
25874
|
|