@esvndev/es-react-config-setting 1.0.21 → 1.0.23
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.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +61 -86
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +61 -86
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -372,7 +372,7 @@ domCss.exports.get = function (element, properties) {
|
|
|
372
372
|
}
|
|
373
373
|
};
|
|
374
374
|
|
|
375
|
-
var propTypes$
|
|
375
|
+
var propTypes$6 = {exports: {}};
|
|
376
376
|
|
|
377
377
|
var reactIs = {exports: {}};
|
|
378
378
|
|
|
@@ -1468,14 +1468,14 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1468
1468
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1469
1469
|
// http://fb.me/prop-types-in-prod
|
|
1470
1470
|
var throwOnDirectAccess = true;
|
|
1471
|
-
propTypes$
|
|
1471
|
+
propTypes$6.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
1472
1472
|
} else {
|
|
1473
1473
|
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1474
1474
|
// http://fb.me/prop-types-in-prod
|
|
1475
|
-
propTypes$
|
|
1475
|
+
propTypes$6.exports = factoryWithThrowingShims();
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
|
-
var PropTypes = propTypes$
|
|
1478
|
+
var PropTypes = propTypes$6.exports;
|
|
1479
1479
|
|
|
1480
1480
|
var isString$1 = {};
|
|
1481
1481
|
|
|
@@ -1661,7 +1661,7 @@ Object.defineProperty(defaultRenderElements, "__esModule", {
|
|
|
1661
1661
|
value: true
|
|
1662
1662
|
});
|
|
1663
1663
|
|
|
1664
|
-
var _extends$
|
|
1664
|
+
var _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1665
1665
|
|
|
1666
1666
|
defaultRenderElements.renderViewDefault = renderViewDefault;
|
|
1667
1667
|
defaultRenderElements.renderTrackHorizontalDefault = renderTrackHorizontalDefault;
|
|
@@ -1675,7 +1675,7 @@ var _react2 = _interopRequireDefault(_react);
|
|
|
1675
1675
|
|
|
1676
1676
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
1677
1677
|
|
|
1678
|
-
function _objectWithoutProperties$
|
|
1678
|
+
function _objectWithoutProperties$4(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
1679
1679
|
|
|
1680
1680
|
/* eslint-disable react/prop-types */
|
|
1681
1681
|
|
|
@@ -1685,52 +1685,52 @@ function renderViewDefault(props) {
|
|
|
1685
1685
|
|
|
1686
1686
|
function renderTrackHorizontalDefault(_ref) {
|
|
1687
1687
|
var style = _ref.style,
|
|
1688
|
-
props = _objectWithoutProperties$
|
|
1688
|
+
props = _objectWithoutProperties$4(_ref, ['style']);
|
|
1689
1689
|
|
|
1690
|
-
var finalStyle = _extends$
|
|
1690
|
+
var finalStyle = _extends$5({}, style, {
|
|
1691
1691
|
right: 2,
|
|
1692
1692
|
bottom: 2,
|
|
1693
1693
|
left: 2,
|
|
1694
1694
|
borderRadius: 3
|
|
1695
1695
|
});
|
|
1696
|
-
return _react2["default"].createElement('div', _extends$
|
|
1696
|
+
return _react2["default"].createElement('div', _extends$5({ style: finalStyle }, props));
|
|
1697
1697
|
}
|
|
1698
1698
|
|
|
1699
1699
|
function renderTrackVerticalDefault(_ref2) {
|
|
1700
1700
|
var style = _ref2.style,
|
|
1701
|
-
props = _objectWithoutProperties$
|
|
1701
|
+
props = _objectWithoutProperties$4(_ref2, ['style']);
|
|
1702
1702
|
|
|
1703
|
-
var finalStyle = _extends$
|
|
1703
|
+
var finalStyle = _extends$5({}, style, {
|
|
1704
1704
|
right: 2,
|
|
1705
1705
|
bottom: 2,
|
|
1706
1706
|
top: 2,
|
|
1707
1707
|
borderRadius: 3
|
|
1708
1708
|
});
|
|
1709
|
-
return _react2["default"].createElement('div', _extends$
|
|
1709
|
+
return _react2["default"].createElement('div', _extends$5({ style: finalStyle }, props));
|
|
1710
1710
|
}
|
|
1711
1711
|
|
|
1712
1712
|
function renderThumbHorizontalDefault(_ref3) {
|
|
1713
1713
|
var style = _ref3.style,
|
|
1714
|
-
props = _objectWithoutProperties$
|
|
1714
|
+
props = _objectWithoutProperties$4(_ref3, ['style']);
|
|
1715
1715
|
|
|
1716
|
-
var finalStyle = _extends$
|
|
1716
|
+
var finalStyle = _extends$5({}, style, {
|
|
1717
1717
|
cursor: 'pointer',
|
|
1718
1718
|
borderRadius: 'inherit',
|
|
1719
1719
|
backgroundColor: 'rgba(0,0,0,.2)'
|
|
1720
1720
|
});
|
|
1721
|
-
return _react2["default"].createElement('div', _extends$
|
|
1721
|
+
return _react2["default"].createElement('div', _extends$5({ style: finalStyle }, props));
|
|
1722
1722
|
}
|
|
1723
1723
|
|
|
1724
1724
|
function renderThumbVerticalDefault(_ref4) {
|
|
1725
1725
|
var style = _ref4.style,
|
|
1726
|
-
props = _objectWithoutProperties$
|
|
1726
|
+
props = _objectWithoutProperties$4(_ref4, ['style']);
|
|
1727
1727
|
|
|
1728
|
-
var finalStyle = _extends$
|
|
1728
|
+
var finalStyle = _extends$5({}, style, {
|
|
1729
1729
|
cursor: 'pointer',
|
|
1730
1730
|
borderRadius: 'inherit',
|
|
1731
1731
|
backgroundColor: 'rgba(0,0,0,.2)'
|
|
1732
1732
|
});
|
|
1733
|
-
return _react2["default"].createElement('div', _extends$
|
|
1733
|
+
return _react2["default"].createElement('div', _extends$5({ style: finalStyle }, props));
|
|
1734
1734
|
}
|
|
1735
1735
|
|
|
1736
1736
|
(function (exports) {
|
|
@@ -1753,7 +1753,7 @@ var _domCss2 = _interopRequireDefault(_domCss);
|
|
|
1753
1753
|
|
|
1754
1754
|
var _react = React__default;
|
|
1755
1755
|
|
|
1756
|
-
var _propTypes = propTypes$
|
|
1756
|
+
var _propTypes = propTypes$6.exports;
|
|
1757
1757
|
|
|
1758
1758
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
1759
1759
|
|
|
@@ -9914,13 +9914,13 @@ function addDefaultProps(defaultProps, props) {
|
|
|
9914
9914
|
return result;
|
|
9915
9915
|
}
|
|
9916
9916
|
|
|
9917
|
-
var _excluded$
|
|
9918
|
-
function _extends$
|
|
9919
|
-
function _objectWithoutProperties$
|
|
9920
|
-
function _objectWithoutPropertiesLoose$
|
|
9917
|
+
var _excluded$3 = ["className", "cssModule", "noGutters", "tag", "widths"];
|
|
9918
|
+
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
9919
|
+
function _objectWithoutProperties$3(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$4(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9920
|
+
function _objectWithoutPropertiesLoose$4(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9921
9921
|
var rowColWidths = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
9922
9922
|
var rowColsPropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);
|
|
9923
|
-
var propTypes$
|
|
9923
|
+
var propTypes$5 = {
|
|
9924
9924
|
tag: tagPropType,
|
|
9925
9925
|
noGutters: deprecated(PropTypes.bool, 'Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/'),
|
|
9926
9926
|
className: PropTypes.string,
|
|
@@ -9941,7 +9941,7 @@ function Row(props) {
|
|
|
9941
9941
|
Tag = _props$tag === void 0 ? 'div' : _props$tag,
|
|
9942
9942
|
_props$widths = props.widths,
|
|
9943
9943
|
widths = _props$widths === void 0 ? rowColWidths : _props$widths,
|
|
9944
|
-
attributes = _objectWithoutProperties$
|
|
9944
|
+
attributes = _objectWithoutProperties$3(props, _excluded$3);
|
|
9945
9945
|
var colClasses = [];
|
|
9946
9946
|
widths.forEach(function (colWidth, i) {
|
|
9947
9947
|
var colSize = props[colWidth];
|
|
@@ -9953,16 +9953,16 @@ function Row(props) {
|
|
|
9953
9953
|
colClasses.push(isXs ? "row-cols-".concat(colSize) : "row-cols-".concat(colWidth, "-").concat(colSize));
|
|
9954
9954
|
});
|
|
9955
9955
|
var classes = mapToCssModules(classNames(className, noGutters ? 'gx-0' : null, 'row', colClasses), cssModule);
|
|
9956
|
-
return /*#__PURE__*/React__default.createElement(Tag, _extends$
|
|
9956
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends$4({}, attributes, {
|
|
9957
9957
|
className: classes
|
|
9958
9958
|
}));
|
|
9959
9959
|
}
|
|
9960
|
-
Row.propTypes = propTypes$
|
|
9960
|
+
Row.propTypes = propTypes$5;
|
|
9961
9961
|
|
|
9962
|
-
var _excluded$
|
|
9963
|
-
function _extends$
|
|
9964
|
-
function _objectWithoutProperties$
|
|
9965
|
-
function _objectWithoutPropertiesLoose$
|
|
9962
|
+
var _excluded$2 = ["className", "cssModule", "widths", "tag"];
|
|
9963
|
+
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
9964
|
+
function _objectWithoutProperties$2(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$3(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9965
|
+
function _objectWithoutPropertiesLoose$3(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9966
9966
|
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9967
9967
|
var colWidths = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
9968
9968
|
var stringOrNumberProp = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);
|
|
@@ -9971,7 +9971,7 @@ var columnProps = PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTyp
|
|
|
9971
9971
|
order: stringOrNumberProp,
|
|
9972
9972
|
offset: stringOrNumberProp
|
|
9973
9973
|
})]);
|
|
9974
|
-
var propTypes$
|
|
9974
|
+
var propTypes$4 = {
|
|
9975
9975
|
tag: tagPropType,
|
|
9976
9976
|
xs: columnProps,
|
|
9977
9977
|
sm: columnProps,
|
|
@@ -10025,7 +10025,7 @@ function Col(props) {
|
|
|
10025
10025
|
widths = _props$widths === void 0 ? colWidths : _props$widths,
|
|
10026
10026
|
_props$tag = props.tag,
|
|
10027
10027
|
Tag = _props$tag === void 0 ? 'div' : _props$tag,
|
|
10028
|
-
attributes = _objectWithoutProperties$
|
|
10028
|
+
attributes = _objectWithoutProperties$2(props, _excluded$2);
|
|
10029
10029
|
var _getColumnClasses = getColumnClasses(attributes, cssModule, widths),
|
|
10030
10030
|
modifiedAttributes = _getColumnClasses.modifiedAttributes,
|
|
10031
10031
|
colClasses = _getColumnClasses.colClasses;
|
|
@@ -10033,13 +10033,13 @@ function Col(props) {
|
|
|
10033
10033
|
colClasses.push('col');
|
|
10034
10034
|
}
|
|
10035
10035
|
var classes = mapToCssModules(classNames(className, colClasses), cssModule);
|
|
10036
|
-
return /*#__PURE__*/React__default.createElement(Tag, _extends$
|
|
10036
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends$3({}, modifiedAttributes, {
|
|
10037
10037
|
className: classes
|
|
10038
10038
|
}));
|
|
10039
10039
|
}
|
|
10040
|
-
Col.propTypes = propTypes$
|
|
10040
|
+
Col.propTypes = propTypes$4;
|
|
10041
10041
|
|
|
10042
|
-
function _objectWithoutPropertiesLoose$
|
|
10042
|
+
function _objectWithoutPropertiesLoose$2(r, e) {
|
|
10043
10043
|
if (null == r) return {};
|
|
10044
10044
|
var t = {};
|
|
10045
10045
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
@@ -10478,7 +10478,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
10478
10478
|
_this$props.onExiting;
|
|
10479
10479
|
_this$props.onExited;
|
|
10480
10480
|
_this$props.nodeRef;
|
|
10481
|
-
var childProps = _objectWithoutPropertiesLoose$
|
|
10481
|
+
var childProps = _objectWithoutPropertiesLoose$2(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
10482
10482
|
|
|
10483
10483
|
return (
|
|
10484
10484
|
/*#__PURE__*/
|
|
@@ -10704,14 +10704,14 @@ Transition.ENTERED = ENTERED;
|
|
|
10704
10704
|
Transition.EXITING = EXITING;
|
|
10705
10705
|
var Transition$1 = Transition;
|
|
10706
10706
|
|
|
10707
|
-
var _excluded$
|
|
10708
|
-
function _extends$
|
|
10709
|
-
function _objectWithoutProperties$
|
|
10710
|
-
function _objectWithoutPropertiesLoose$
|
|
10707
|
+
var _excluded$1 = ["tag", "baseClass", "baseClassActive", "className", "cssModule", "children", "innerRef"];
|
|
10708
|
+
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
10709
|
+
function _objectWithoutProperties$1(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10710
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10711
10711
|
function ownKeys$1(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; }
|
|
10712
10712
|
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10713
10713
|
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10714
|
-
var propTypes$
|
|
10714
|
+
var propTypes$3 = _objectSpread$1(_objectSpread$1({}, Transition$1.propTypes), {}, {
|
|
10715
10715
|
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
|
|
10716
10716
|
tag: tagPropType,
|
|
10717
10717
|
baseClass: PropTypes.string,
|
|
@@ -10741,24 +10741,24 @@ function Fade(props) {
|
|
|
10741
10741
|
children = _addDefaultProps.children,
|
|
10742
10742
|
_addDefaultProps$inne = _addDefaultProps.innerRef,
|
|
10743
10743
|
innerRef = _addDefaultProps$inne === void 0 ? ref : _addDefaultProps$inne,
|
|
10744
|
-
otherProps = _objectWithoutProperties$
|
|
10744
|
+
otherProps = _objectWithoutProperties$1(_addDefaultProps, _excluded$1);
|
|
10745
10745
|
var transitionProps = pick(_objectSpread$1({
|
|
10746
10746
|
defaultProps: defaultProps$1
|
|
10747
10747
|
}, otherProps), TransitionPropTypeKeys);
|
|
10748
10748
|
var childProps = omit(otherProps, TransitionPropTypeKeys);
|
|
10749
|
-
return /*#__PURE__*/React__default.createElement(Transition$1, _extends$
|
|
10749
|
+
return /*#__PURE__*/React__default.createElement(Transition$1, _extends$2({
|
|
10750
10750
|
nodeRef: innerRef
|
|
10751
10751
|
}, transitionProps), function (status) {
|
|
10752
10752
|
var isActive = status === 'entered';
|
|
10753
10753
|
var classes = mapToCssModules(classNames(className, baseClass, isActive && baseClassActive), cssModule);
|
|
10754
|
-
return /*#__PURE__*/React__default.createElement(Tag, _extends$
|
|
10754
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends$2({
|
|
10755
10755
|
className: classes
|
|
10756
10756
|
}, childProps, {
|
|
10757
10757
|
ref: innerRef
|
|
10758
10758
|
}), children);
|
|
10759
10759
|
});
|
|
10760
10760
|
}
|
|
10761
|
-
Fade.propTypes = propTypes$
|
|
10761
|
+
Fade.propTypes = propTypes$3;
|
|
10762
10762
|
|
|
10763
10763
|
function _typeof$2(obj) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$2(obj); }
|
|
10764
10764
|
function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -10771,7 +10771,7 @@ function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$2(call)
|
|
|
10771
10771
|
function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10772
10772
|
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10773
10773
|
function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
|
|
10774
|
-
var propTypes$
|
|
10774
|
+
var propTypes$2 = {
|
|
10775
10775
|
children: PropTypes.node.isRequired,
|
|
10776
10776
|
node: PropTypes.any
|
|
10777
10777
|
};
|
|
@@ -10805,13 +10805,13 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
10805
10805
|
}]);
|
|
10806
10806
|
return Portal;
|
|
10807
10807
|
}(React__default.Component);
|
|
10808
|
-
Portal.propTypes = propTypes$
|
|
10808
|
+
Portal.propTypes = propTypes$2;
|
|
10809
10809
|
var Portal$1 = Portal;
|
|
10810
10810
|
|
|
10811
10811
|
function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
|
|
10812
10812
|
function ownKeys(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; }
|
|
10813
10813
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10814
|
-
function _extends$
|
|
10814
|
+
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
10815
10815
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10816
10816
|
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10817
10817
|
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -10825,7 +10825,7 @@ function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !
|
|
|
10825
10825
|
function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
|
|
10826
10826
|
function noop() {}
|
|
10827
10827
|
var FadePropTypes = PropTypes.shape(Fade.propTypes);
|
|
10828
|
-
var propTypes$
|
|
10828
|
+
var propTypes$1 = {
|
|
10829
10829
|
/** */
|
|
10830
10830
|
autoFocus: PropTypes.bool,
|
|
10831
10831
|
/** Add backdrop to modal */
|
|
@@ -10880,7 +10880,7 @@ var propTypes$2 = {
|
|
|
10880
10880
|
wrapClassName: PropTypes.string,
|
|
10881
10881
|
zIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
10882
10882
|
};
|
|
10883
|
-
var propsToOmit = Object.keys(propTypes$
|
|
10883
|
+
var propsToOmit = Object.keys(propTypes$1);
|
|
10884
10884
|
var defaultProps = {
|
|
10885
10885
|
isOpen: false,
|
|
10886
10886
|
autoFocus: true,
|
|
@@ -11220,7 +11220,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
11220
11220
|
_this3 = this;
|
|
11221
11221
|
var attributes = omit(this.props, propsToOmit);
|
|
11222
11222
|
var dialogBaseClass = 'modal-dialog';
|
|
11223
|
-
return /*#__PURE__*/React__default.createElement("div", _extends$
|
|
11223
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, attributes, {
|
|
11224
11224
|
className: mapToCssModules(classNames(dialogBaseClass, this.props.className, (_classNames = {}, _defineProperty(_classNames, "modal-".concat(this.props.size), this.props.size), _defineProperty(_classNames, "".concat(dialogBaseClass, "-centered"), this.props.centered), _defineProperty(_classNames, "".concat(dialogBaseClass, "-scrollable"), this.props.scrollable), _defineProperty(_classNames, 'modal-fullscreen', this.props.fullscreen === true), _defineProperty(_classNames, "modal-fullscreen-".concat(this.props.fullscreen, "-down"), typeof this.props.fullscreen === 'string'), _classNames)), this.props.cssModule),
|
|
11225
11225
|
role: "document",
|
|
11226
11226
|
ref: function ref(c) {
|
|
@@ -11270,7 +11270,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
11270
11270
|
baseClass: hasTransition ? this.props.backdropTransition.baseClass : '',
|
|
11271
11271
|
timeout: hasTransition ? this.props.backdropTransition.timeout : 0
|
|
11272
11272
|
});
|
|
11273
|
-
var Backdrop = backdrop && (hasTransition ? /*#__PURE__*/React__default.createElement(Fade, _extends$
|
|
11273
|
+
var Backdrop = backdrop && (hasTransition ? /*#__PURE__*/React__default.createElement(Fade, _extends$1({}, backdropTransition, {
|
|
11274
11274
|
"in": isOpen && !!backdrop,
|
|
11275
11275
|
cssModule: cssModule,
|
|
11276
11276
|
className: mapToCssModules(classNames('modal-backdrop', backdropClassName), cssModule)
|
|
@@ -11281,7 +11281,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
11281
11281
|
node: this._element
|
|
11282
11282
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
11283
11283
|
className: mapToCssModules(wrapClassName)
|
|
11284
|
-
}, /*#__PURE__*/React__default.createElement(Fade, _extends$
|
|
11284
|
+
}, /*#__PURE__*/React__default.createElement(Fade, _extends$1({}, modalAttributes, modalTransition, {
|
|
11285
11285
|
"in": isOpen,
|
|
11286
11286
|
onEntered: this.onOpened,
|
|
11287
11287
|
onExited: this.onClosed,
|
|
@@ -11295,37 +11295,12 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
11295
11295
|
}]);
|
|
11296
11296
|
return Modal;
|
|
11297
11297
|
}(React__default.Component);
|
|
11298
|
-
Modal.propTypes = propTypes$
|
|
11298
|
+
Modal.propTypes = propTypes$1;
|
|
11299
11299
|
Modal.defaultProps = defaultProps;
|
|
11300
11300
|
Modal.openCount = 0;
|
|
11301
11301
|
Modal.originalBodyOverflow = null;
|
|
11302
11302
|
var Modal$1 = Modal;
|
|
11303
11303
|
|
|
11304
|
-
var _excluded$1 = ["className", "cssModule", "tag"];
|
|
11305
|
-
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
11306
|
-
function _objectWithoutProperties$1(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11307
|
-
function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11308
|
-
var propTypes$1 = {
|
|
11309
|
-
/** Add custom class */
|
|
11310
|
-
className: PropTypes.string,
|
|
11311
|
-
/** Change underlying component's CSS base class name */
|
|
11312
|
-
cssModule: PropTypes.object,
|
|
11313
|
-
/** Set a custom element for this component */
|
|
11314
|
-
tag: tagPropType
|
|
11315
|
-
};
|
|
11316
|
-
function ModalBody(props) {
|
|
11317
|
-
var className = props.className,
|
|
11318
|
-
cssModule = props.cssModule,
|
|
11319
|
-
_props$tag = props.tag,
|
|
11320
|
-
Tag = _props$tag === void 0 ? 'div' : _props$tag,
|
|
11321
|
-
attributes = _objectWithoutProperties$1(props, _excluded$1);
|
|
11322
|
-
var classes = mapToCssModules(classNames(className, 'modal-body'), cssModule);
|
|
11323
|
-
return /*#__PURE__*/React__default.createElement(Tag, _extends$1({}, attributes, {
|
|
11324
|
-
className: classes
|
|
11325
|
-
}));
|
|
11326
|
-
}
|
|
11327
|
-
ModalBody.propTypes = propTypes$1;
|
|
11328
|
-
|
|
11329
11304
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
11330
11305
|
var _excluded = ["className", "cssModule", "tag", "innerRef"];
|
|
11331
11306
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -11444,7 +11419,7 @@ const SettingApp = (props) => {
|
|
|
11444
11419
|
description: "Danh sách danh sách danh sách danh sách",
|
|
11445
11420
|
data: [{
|
|
11446
11421
|
name: "Hiển thị trạng thái truy cập",
|
|
11447
|
-
|
|
11422
|
+
description: "Ai được phép truy cập",
|
|
11448
11423
|
type: "checkbox"
|
|
11449
11424
|
}]
|
|
11450
11425
|
}]
|
|
@@ -11485,12 +11460,12 @@ const SettingApp = (props) => {
|
|
|
11485
11460
|
//hàm tạo các thông số cấu hình và cài đặt
|
|
11486
11461
|
const _renderView = () => {
|
|
11487
11462
|
return (settingData && settingData.data && settingData.data.length > 0 ? settingData.data.map((item, index) => {
|
|
11488
|
-
jsxs("div", { className: "setting-section", children: [jsx("div", { className: "setting-section-label", children: jsx("div", { className: "
|
|
11489
|
-
jsx("div", { className: "setting-section-desc", children: jsx("div", { className: "", children: jsx("span", { children: item.
|
|
11463
|
+
return (jsxs("div", { className: "setting-section", children: [jsx("div", { className: "setting-section-label", children: jsx("div", { className: "", children: jsx("span", { children: item.name }) }) }), item.description ?
|
|
11464
|
+
jsx("div", { className: "setting-section-desc", children: jsx("div", { className: "", children: jsx("span", { children: item.description }) }) })
|
|
11490
11465
|
: null, item.data && item.data.length > 0 ? item.data.map((_item, _index) => {
|
|
11491
|
-
return (jsx("div", { className: "setting-section-content ", children: jsxs("div", { className: 'flx flx-al-c flx-sp-btw setting-section-content__item' + (_index === 0 ? 'first' : (_index === _item.data.length - 1 ? 'last' :
|
|
11466
|
+
return (jsx("div", { className: "setting-section-content ", children: jsxs("div", { className: 'flx flx-al-c flx-sp-btw setting-section-content__item ' + (_index === 0 ? 'first' : (_index === _item.data.length - 1 ? 'last' : (_item.data.length === 1 ? "single" : ""))), children: [jsxs("div", { className: "flx flx-col", style: { flex: "0 0 fit-content" }, children: [jsx("span", { children: _item.name }), jsx("span", { className: "setting-section-content__description", children: _item.description })] }), jsx("div", { style: { maxWidth: "50%" }, children: jsx("div", { style: { width: "100%", boxSizing: "border-box" }, children: jsxs("div", { className: "flx flx-al-c z-dropdown-preview --square --l", style: { width: "100%", boxSizing: "border-box" }, children: [jsx("div", { className: "truncate flx-1" }), jsx("i", { className: "fa fa-Chevron_Down_24_Line margin-left-24" })] }) }) })] }) }));
|
|
11492
11467
|
})
|
|
11493
|
-
: null] });
|
|
11468
|
+
: null] }));
|
|
11494
11469
|
})
|
|
11495
11470
|
: null);
|
|
11496
11471
|
};
|
|
@@ -11498,7 +11473,7 @@ const SettingApp = (props) => {
|
|
|
11498
11473
|
jsx(Modal$1, { isOpen: true, toggle: handleModal, className: 'modal-dialog-centered modal-lg setting-modal', contentClassName: 'p-0', onOpened: handleFormOpened, onClosed: handleFormClosed, backdrop: backdrop, children: jsx(Form$1, { id: 'form-modal-globalzone', className: 'todo-modal', onSubmit: handleSubmit, children: jsxs("div", { className: "", children: [jsx(ModalHeader, { handleModal: handleModal, title: 'C\u00E0i \u0111\u1EB7t' }), jsxs(Row, { className: "m-0 gy-1 setting-modal-body-custom", children: [jsx(Col, { md: 4, xs: 12, className: "setting-menu", children: jsx(lib.Scrollbars, { autoHide: true, autoHeight: true, autoHeightMax: windowSize.innerHeight - 180, children: jsx(Row, { className: "m-0 gy-1 mb-2", children: dataSettingGroup && dataSettingGroup.length > 0 ?
|
|
11499
11474
|
dataSettingGroup.map((item) => {
|
|
11500
11475
|
return (jsx("div", { className: 'setting-menu__item ' + (item.active ? 'selected' : ''), onClick: () => { switchSettingTab(item); }, children: jsxs("div", { className: "setting-menu__wrapper-content truncate", children: [jsx(DynamicIcon, { name: item.icon, className: "setting-menu__icon" }), jsx("p", { className: "setting-menu__name truncate", children: jsx("span", { children: item.name }) })] }) }, item.id));
|
|
11501
|
-
}) : null }) }) }), jsx(Col, { md: 8, xs: 12, className: "stack-navigation stack-page", children: jsx(lib.Scrollbars, { autoHide: true, autoHeight: true, autoHeightMax: windowSize.innerHeight - 180, children:
|
|
11476
|
+
}) : null }) }) }), jsx(Col, { md: 8, xs: 12, className: "stack-navigation stack-page", children: jsx(lib.Scrollbars, { autoHide: true, autoHeight: true, autoHeightMax: windowSize.innerHeight - 180, children: _renderView() }) })] })] }) }) })
|
|
11502
11477
|
: null }));
|
|
11503
11478
|
};
|
|
11504
11479
|
|