@esvndev/es-react-config-setting 1.0.33 → 1.0.35
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/components/init/index.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +109 -226
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +109 -227
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -399,7 +399,7 @@ domCss.exports.get = function (element, properties) {
|
|
|
399
399
|
}
|
|
400
400
|
};
|
|
401
401
|
|
|
402
|
-
var propTypes$
|
|
402
|
+
var propTypes$7 = {exports: {}};
|
|
403
403
|
|
|
404
404
|
var reactIs = {exports: {}};
|
|
405
405
|
|
|
@@ -1495,14 +1495,14 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1495
1495
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1496
1496
|
// http://fb.me/prop-types-in-prod
|
|
1497
1497
|
var throwOnDirectAccess = true;
|
|
1498
|
-
propTypes$
|
|
1498
|
+
propTypes$7.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
1499
1499
|
} else {
|
|
1500
1500
|
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1501
1501
|
// http://fb.me/prop-types-in-prod
|
|
1502
|
-
propTypes$
|
|
1502
|
+
propTypes$7.exports = factoryWithThrowingShims();
|
|
1503
1503
|
}
|
|
1504
1504
|
|
|
1505
|
-
var PropTypes = propTypes$
|
|
1505
|
+
var PropTypes = propTypes$7.exports;
|
|
1506
1506
|
|
|
1507
1507
|
var isString$1 = {};
|
|
1508
1508
|
|
|
@@ -1688,7 +1688,7 @@ Object.defineProperty(defaultRenderElements, "__esModule", {
|
|
|
1688
1688
|
value: true
|
|
1689
1689
|
});
|
|
1690
1690
|
|
|
1691
|
-
var _extends$
|
|
1691
|
+
var _extends$6 = 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; };
|
|
1692
1692
|
|
|
1693
1693
|
defaultRenderElements.renderViewDefault = renderViewDefault;
|
|
1694
1694
|
defaultRenderElements.renderTrackHorizontalDefault = renderTrackHorizontalDefault;
|
|
@@ -1702,7 +1702,7 @@ var _react2 = _interopRequireDefault(_react);
|
|
|
1702
1702
|
|
|
1703
1703
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
1704
1704
|
|
|
1705
|
-
function _objectWithoutProperties$
|
|
1705
|
+
function _objectWithoutProperties$5(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; }
|
|
1706
1706
|
|
|
1707
1707
|
/* eslint-disable react/prop-types */
|
|
1708
1708
|
|
|
@@ -1712,52 +1712,52 @@ function renderViewDefault(props) {
|
|
|
1712
1712
|
|
|
1713
1713
|
function renderTrackHorizontalDefault(_ref) {
|
|
1714
1714
|
var style = _ref.style,
|
|
1715
|
-
props = _objectWithoutProperties$
|
|
1715
|
+
props = _objectWithoutProperties$5(_ref, ['style']);
|
|
1716
1716
|
|
|
1717
|
-
var finalStyle = _extends$
|
|
1717
|
+
var finalStyle = _extends$6({}, style, {
|
|
1718
1718
|
right: 2,
|
|
1719
1719
|
bottom: 2,
|
|
1720
1720
|
left: 2,
|
|
1721
1721
|
borderRadius: 3
|
|
1722
1722
|
});
|
|
1723
|
-
return _react2["default"].createElement('div', _extends$
|
|
1723
|
+
return _react2["default"].createElement('div', _extends$6({ style: finalStyle }, props));
|
|
1724
1724
|
}
|
|
1725
1725
|
|
|
1726
1726
|
function renderTrackVerticalDefault(_ref2) {
|
|
1727
1727
|
var style = _ref2.style,
|
|
1728
|
-
props = _objectWithoutProperties$
|
|
1728
|
+
props = _objectWithoutProperties$5(_ref2, ['style']);
|
|
1729
1729
|
|
|
1730
|
-
var finalStyle = _extends$
|
|
1730
|
+
var finalStyle = _extends$6({}, style, {
|
|
1731
1731
|
right: 2,
|
|
1732
1732
|
bottom: 2,
|
|
1733
1733
|
top: 2,
|
|
1734
1734
|
borderRadius: 3
|
|
1735
1735
|
});
|
|
1736
|
-
return _react2["default"].createElement('div', _extends$
|
|
1736
|
+
return _react2["default"].createElement('div', _extends$6({ style: finalStyle }, props));
|
|
1737
1737
|
}
|
|
1738
1738
|
|
|
1739
1739
|
function renderThumbHorizontalDefault(_ref3) {
|
|
1740
1740
|
var style = _ref3.style,
|
|
1741
|
-
props = _objectWithoutProperties$
|
|
1741
|
+
props = _objectWithoutProperties$5(_ref3, ['style']);
|
|
1742
1742
|
|
|
1743
|
-
var finalStyle = _extends$
|
|
1743
|
+
var finalStyle = _extends$6({}, style, {
|
|
1744
1744
|
cursor: 'pointer',
|
|
1745
1745
|
borderRadius: 'inherit',
|
|
1746
1746
|
backgroundColor: 'rgba(0,0,0,.2)'
|
|
1747
1747
|
});
|
|
1748
|
-
return _react2["default"].createElement('div', _extends$
|
|
1748
|
+
return _react2["default"].createElement('div', _extends$6({ style: finalStyle }, props));
|
|
1749
1749
|
}
|
|
1750
1750
|
|
|
1751
1751
|
function renderThumbVerticalDefault(_ref4) {
|
|
1752
1752
|
var style = _ref4.style,
|
|
1753
|
-
props = _objectWithoutProperties$
|
|
1753
|
+
props = _objectWithoutProperties$5(_ref4, ['style']);
|
|
1754
1754
|
|
|
1755
|
-
var finalStyle = _extends$
|
|
1755
|
+
var finalStyle = _extends$6({}, style, {
|
|
1756
1756
|
cursor: 'pointer',
|
|
1757
1757
|
borderRadius: 'inherit',
|
|
1758
1758
|
backgroundColor: 'rgba(0,0,0,.2)'
|
|
1759
1759
|
});
|
|
1760
|
-
return _react2["default"].createElement('div', _extends$
|
|
1760
|
+
return _react2["default"].createElement('div', _extends$6({ style: finalStyle }, props));
|
|
1761
1761
|
}
|
|
1762
1762
|
|
|
1763
1763
|
(function (exports) {
|
|
@@ -1780,7 +1780,7 @@ var _domCss2 = _interopRequireDefault(_domCss);
|
|
|
1780
1780
|
|
|
1781
1781
|
var _react = React__default["default"];
|
|
1782
1782
|
|
|
1783
|
-
var _propTypes = propTypes$
|
|
1783
|
+
var _propTypes = propTypes$7.exports;
|
|
1784
1784
|
|
|
1785
1785
|
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
1786
1786
|
|
|
@@ -9715,8 +9715,8 @@ const ModalHeader = (props) => {
|
|
|
9715
9715
|
};
|
|
9716
9716
|
|
|
9717
9717
|
function ownKeys$2(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; }
|
|
9718
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$
|
|
9719
|
-
function _defineProperty$
|
|
9718
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9719
|
+
function _defineProperty$3(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; }
|
|
9720
9720
|
function _typeof$4(obj) { "@babel/helpers - typeof"; return _typeof$4 = "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$4(obj); }
|
|
9721
9721
|
|
|
9722
9722
|
// https://github.com/twbs/bootstrap/blob/v4.0.0-alpha.4/js/src/modal.js#L436-L443
|
|
@@ -9941,13 +9941,13 @@ function addDefaultProps(defaultProps, props) {
|
|
|
9941
9941
|
return result;
|
|
9942
9942
|
}
|
|
9943
9943
|
|
|
9944
|
-
var _excluded$
|
|
9945
|
-
function _extends$
|
|
9946
|
-
function _objectWithoutProperties$
|
|
9947
|
-
function _objectWithoutPropertiesLoose$
|
|
9944
|
+
var _excluded$4 = ["className", "cssModule", "noGutters", "tag", "widths"];
|
|
9945
|
+
function _extends$5() { _extends$5 = 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$5.apply(this, arguments); }
|
|
9946
|
+
function _objectWithoutProperties$4(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$5(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; }
|
|
9947
|
+
function _objectWithoutPropertiesLoose$5(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; }
|
|
9948
9948
|
var rowColWidths = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
9949
9949
|
var rowColsPropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);
|
|
9950
|
-
var propTypes$
|
|
9950
|
+
var propTypes$6 = {
|
|
9951
9951
|
tag: tagPropType,
|
|
9952
9952
|
noGutters: deprecated(PropTypes.bool, 'Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/'),
|
|
9953
9953
|
className: PropTypes.string,
|
|
@@ -9968,7 +9968,7 @@ function Row(props) {
|
|
|
9968
9968
|
Tag = _props$tag === void 0 ? 'div' : _props$tag,
|
|
9969
9969
|
_props$widths = props.widths,
|
|
9970
9970
|
widths = _props$widths === void 0 ? rowColWidths : _props$widths,
|
|
9971
|
-
attributes = _objectWithoutProperties$
|
|
9971
|
+
attributes = _objectWithoutProperties$4(props, _excluded$4);
|
|
9972
9972
|
var colClasses = [];
|
|
9973
9973
|
widths.forEach(function (colWidth, i) {
|
|
9974
9974
|
var colSize = props[colWidth];
|
|
@@ -9980,37 +9980,37 @@ function Row(props) {
|
|
|
9980
9980
|
colClasses.push(isXs ? "row-cols-".concat(colSize) : "row-cols-".concat(colWidth, "-").concat(colSize));
|
|
9981
9981
|
});
|
|
9982
9982
|
var classes = mapToCssModules(classNames(className, noGutters ? 'gx-0' : null, 'row', colClasses), cssModule);
|
|
9983
|
-
return /*#__PURE__*/React__default["default"].createElement(Tag, _extends$
|
|
9983
|
+
return /*#__PURE__*/React__default["default"].createElement(Tag, _extends$5({}, attributes, {
|
|
9984
9984
|
className: classes
|
|
9985
9985
|
}));
|
|
9986
9986
|
}
|
|
9987
|
-
Row.propTypes = propTypes$
|
|
9987
|
+
Row.propTypes = propTypes$6;
|
|
9988
9988
|
|
|
9989
|
-
var _excluded$
|
|
9990
|
-
function _extends$
|
|
9991
|
-
function _objectWithoutProperties$
|
|
9992
|
-
function _objectWithoutPropertiesLoose$
|
|
9993
|
-
function _defineProperty$
|
|
9994
|
-
var colWidths
|
|
9995
|
-
var stringOrNumberProp
|
|
9996
|
-
var columnProps
|
|
9989
|
+
var _excluded$3 = ["className", "cssModule", "widths", "tag"];
|
|
9990
|
+
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); }
|
|
9991
|
+
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; }
|
|
9992
|
+
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; }
|
|
9993
|
+
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; }
|
|
9994
|
+
var colWidths = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
9995
|
+
var stringOrNumberProp = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);
|
|
9996
|
+
var columnProps = PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string, PropTypes.shape({
|
|
9997
9997
|
size: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string]),
|
|
9998
|
-
order: stringOrNumberProp
|
|
9999
|
-
offset: stringOrNumberProp
|
|
9998
|
+
order: stringOrNumberProp,
|
|
9999
|
+
offset: stringOrNumberProp
|
|
10000
10000
|
})]);
|
|
10001
|
-
var propTypes$
|
|
10001
|
+
var propTypes$5 = {
|
|
10002
10002
|
tag: tagPropType,
|
|
10003
|
-
xs: columnProps
|
|
10004
|
-
sm: columnProps
|
|
10005
|
-
md: columnProps
|
|
10006
|
-
lg: columnProps
|
|
10007
|
-
xl: columnProps
|
|
10008
|
-
xxl: columnProps
|
|
10003
|
+
xs: columnProps,
|
|
10004
|
+
sm: columnProps,
|
|
10005
|
+
md: columnProps,
|
|
10006
|
+
lg: columnProps,
|
|
10007
|
+
xl: columnProps,
|
|
10008
|
+
xxl: columnProps,
|
|
10009
10009
|
className: PropTypes.string,
|
|
10010
10010
|
cssModule: PropTypes.object,
|
|
10011
10011
|
widths: PropTypes.array
|
|
10012
10012
|
};
|
|
10013
|
-
var getColumnSizeClass
|
|
10013
|
+
var getColumnSizeClass = function getColumnSizeClass(isXs, colWidth, colSize) {
|
|
10014
10014
|
if (colSize === true || colSize === '') {
|
|
10015
10015
|
return isXs ? 'col' : "col-".concat(colWidth);
|
|
10016
10016
|
}
|
|
@@ -10020,7 +10020,7 @@ var getColumnSizeClass$1 = function getColumnSizeClass(isXs, colWidth, colSize)
|
|
|
10020
10020
|
return isXs ? "col-".concat(colSize) : "col-".concat(colWidth, "-").concat(colSize);
|
|
10021
10021
|
};
|
|
10022
10022
|
var getColumnClasses = function getColumnClasses(attributes, cssModule) {
|
|
10023
|
-
var widths = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : colWidths
|
|
10023
|
+
var widths = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : colWidths;
|
|
10024
10024
|
var modifiedAttributes = attributes;
|
|
10025
10025
|
var colClasses = [];
|
|
10026
10026
|
widths.forEach(function (colWidth, i) {
|
|
@@ -10033,10 +10033,10 @@ var getColumnClasses = function getColumnClasses(attributes, cssModule) {
|
|
|
10033
10033
|
if (isObject(columnProp)) {
|
|
10034
10034
|
var _classNames;
|
|
10035
10035
|
var colSizeInterfix = isXs ? '-' : "-".concat(colWidth, "-");
|
|
10036
|
-
var colClass = getColumnSizeClass
|
|
10037
|
-
colClasses.push(mapToCssModules(classNames((_classNames = {}, _defineProperty$
|
|
10036
|
+
var colClass = getColumnSizeClass(isXs, colWidth, columnProp.size);
|
|
10037
|
+
colClasses.push(mapToCssModules(classNames((_classNames = {}, _defineProperty$2(_classNames, colClass, columnProp.size || columnProp.size === ''), _defineProperty$2(_classNames, "order".concat(colSizeInterfix).concat(columnProp.order), columnProp.order || columnProp.order === 0), _defineProperty$2(_classNames, "offset".concat(colSizeInterfix).concat(columnProp.offset), columnProp.offset || columnProp.offset === 0), _classNames)), cssModule));
|
|
10038
10038
|
} else {
|
|
10039
|
-
var _colClass = getColumnSizeClass
|
|
10039
|
+
var _colClass = getColumnSizeClass(isXs, colWidth, columnProp);
|
|
10040
10040
|
colClasses.push(_colClass);
|
|
10041
10041
|
}
|
|
10042
10042
|
});
|
|
@@ -10049,10 +10049,10 @@ function Col(props) {
|
|
|
10049
10049
|
var className = props.className,
|
|
10050
10050
|
cssModule = props.cssModule,
|
|
10051
10051
|
_props$widths = props.widths,
|
|
10052
|
-
widths = _props$widths === void 0 ? colWidths
|
|
10052
|
+
widths = _props$widths === void 0 ? colWidths : _props$widths,
|
|
10053
10053
|
_props$tag = props.tag,
|
|
10054
10054
|
Tag = _props$tag === void 0 ? 'div' : _props$tag,
|
|
10055
|
-
attributes = _objectWithoutProperties$
|
|
10055
|
+
attributes = _objectWithoutProperties$3(props, _excluded$3);
|
|
10056
10056
|
var _getColumnClasses = getColumnClasses(attributes, cssModule, widths),
|
|
10057
10057
|
modifiedAttributes = _getColumnClasses.modifiedAttributes,
|
|
10058
10058
|
colClasses = _getColumnClasses.colClasses;
|
|
@@ -10060,13 +10060,13 @@ function Col(props) {
|
|
|
10060
10060
|
colClasses.push('col');
|
|
10061
10061
|
}
|
|
10062
10062
|
var classes = mapToCssModules(classNames(className, colClasses), cssModule);
|
|
10063
|
-
return /*#__PURE__*/React__default["default"].createElement(Tag, _extends$
|
|
10063
|
+
return /*#__PURE__*/React__default["default"].createElement(Tag, _extends$4({}, modifiedAttributes, {
|
|
10064
10064
|
className: classes
|
|
10065
10065
|
}));
|
|
10066
10066
|
}
|
|
10067
|
-
Col.propTypes = propTypes$
|
|
10067
|
+
Col.propTypes = propTypes$5;
|
|
10068
10068
|
|
|
10069
|
-
function _objectWithoutPropertiesLoose$
|
|
10069
|
+
function _objectWithoutPropertiesLoose$3(r, e) {
|
|
10070
10070
|
if (null == r) return {};
|
|
10071
10071
|
var t = {};
|
|
10072
10072
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
@@ -10505,7 +10505,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
10505
10505
|
_this$props.onExiting;
|
|
10506
10506
|
_this$props.onExited;
|
|
10507
10507
|
_this$props.nodeRef;
|
|
10508
|
-
var childProps = _objectWithoutPropertiesLoose$
|
|
10508
|
+
var childProps = _objectWithoutPropertiesLoose$3(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
10509
10509
|
|
|
10510
10510
|
return (
|
|
10511
10511
|
/*#__PURE__*/
|
|
@@ -10731,14 +10731,14 @@ Transition.ENTERED = ENTERED;
|
|
|
10731
10731
|
Transition.EXITING = EXITING;
|
|
10732
10732
|
var Transition$1 = Transition;
|
|
10733
10733
|
|
|
10734
|
-
var _excluded$
|
|
10735
|
-
function _extends$
|
|
10736
|
-
function _objectWithoutProperties$
|
|
10737
|
-
function _objectWithoutPropertiesLoose$
|
|
10734
|
+
var _excluded$2 = ["tag", "baseClass", "baseClassActive", "className", "cssModule", "children", "innerRef"];
|
|
10735
|
+
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); }
|
|
10736
|
+
function _objectWithoutProperties$2(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$2(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; }
|
|
10737
|
+
function _objectWithoutPropertiesLoose$2(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; }
|
|
10738
10738
|
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; }
|
|
10739
|
-
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$
|
|
10740
|
-
function _defineProperty$
|
|
10741
|
-
var propTypes$
|
|
10739
|
+
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; }
|
|
10740
|
+
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; }
|
|
10741
|
+
var propTypes$4 = _objectSpread$1(_objectSpread$1({}, Transition$1.propTypes), {}, {
|
|
10742
10742
|
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
|
|
10743
10743
|
tag: tagPropType,
|
|
10744
10744
|
baseClass: PropTypes.string,
|
|
@@ -10768,24 +10768,24 @@ function Fade(props) {
|
|
|
10768
10768
|
children = _addDefaultProps.children,
|
|
10769
10769
|
_addDefaultProps$inne = _addDefaultProps.innerRef,
|
|
10770
10770
|
innerRef = _addDefaultProps$inne === void 0 ? ref : _addDefaultProps$inne,
|
|
10771
|
-
otherProps = _objectWithoutProperties$
|
|
10771
|
+
otherProps = _objectWithoutProperties$2(_addDefaultProps, _excluded$2);
|
|
10772
10772
|
var transitionProps = pick(_objectSpread$1({
|
|
10773
10773
|
defaultProps: defaultProps$1
|
|
10774
10774
|
}, otherProps), TransitionPropTypeKeys);
|
|
10775
10775
|
var childProps = omit(otherProps, TransitionPropTypeKeys);
|
|
10776
|
-
return /*#__PURE__*/React__default["default"].createElement(Transition$1, _extends$
|
|
10776
|
+
return /*#__PURE__*/React__default["default"].createElement(Transition$1, _extends$3({
|
|
10777
10777
|
nodeRef: innerRef
|
|
10778
10778
|
}, transitionProps), function (status) {
|
|
10779
10779
|
var isActive = status === 'entered';
|
|
10780
10780
|
var classes = mapToCssModules(classNames(className, baseClass, isActive && baseClassActive), cssModule);
|
|
10781
|
-
return /*#__PURE__*/React__default["default"].createElement(Tag, _extends$
|
|
10781
|
+
return /*#__PURE__*/React__default["default"].createElement(Tag, _extends$3({
|
|
10782
10782
|
className: classes
|
|
10783
10783
|
}, childProps, {
|
|
10784
10784
|
ref: innerRef
|
|
10785
10785
|
}), children);
|
|
10786
10786
|
});
|
|
10787
10787
|
}
|
|
10788
|
-
Fade.propTypes = propTypes$
|
|
10788
|
+
Fade.propTypes = propTypes$4;
|
|
10789
10789
|
|
|
10790
10790
|
function _typeof$3(obj) { "@babel/helpers - typeof"; return _typeof$3 = "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$3(obj); }
|
|
10791
10791
|
function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -10798,7 +10798,7 @@ function _possibleConstructorReturn$3(self, call) { if (call && (_typeof$3(call)
|
|
|
10798
10798
|
function _assertThisInitialized$3(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10799
10799
|
function _isNativeReflectConstruct$3() { 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; } }
|
|
10800
10800
|
function _getPrototypeOf$3(o) { _getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$3(o); }
|
|
10801
|
-
var propTypes$
|
|
10801
|
+
var propTypes$3 = {
|
|
10802
10802
|
children: PropTypes.node.isRequired,
|
|
10803
10803
|
node: PropTypes.any
|
|
10804
10804
|
};
|
|
@@ -10832,14 +10832,14 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
10832
10832
|
}]);
|
|
10833
10833
|
return Portal;
|
|
10834
10834
|
}(React__default["default"].Component);
|
|
10835
|
-
Portal.propTypes = propTypes$
|
|
10835
|
+
Portal.propTypes = propTypes$3;
|
|
10836
10836
|
var Portal$1 = Portal;
|
|
10837
10837
|
|
|
10838
10838
|
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); }
|
|
10839
10839
|
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; }
|
|
10840
|
-
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
|
|
10841
|
-
function _extends$
|
|
10842
|
-
function _defineProperty
|
|
10840
|
+
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; }
|
|
10841
|
+
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); }
|
|
10842
|
+
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; }
|
|
10843
10843
|
function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10844
10844
|
function _defineProperties$2(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); } }
|
|
10845
10845
|
function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -10852,7 +10852,7 @@ function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !
|
|
|
10852
10852
|
function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
|
|
10853
10853
|
function noop() {}
|
|
10854
10854
|
var FadePropTypes = PropTypes.shape(Fade.propTypes);
|
|
10855
|
-
var propTypes$
|
|
10855
|
+
var propTypes$2 = {
|
|
10856
10856
|
/** */
|
|
10857
10857
|
autoFocus: PropTypes.bool,
|
|
10858
10858
|
/** Add backdrop to modal */
|
|
@@ -10907,7 +10907,7 @@ var propTypes$4 = {
|
|
|
10907
10907
|
wrapClassName: PropTypes.string,
|
|
10908
10908
|
zIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
10909
10909
|
};
|
|
10910
|
-
var propsToOmit = Object.keys(propTypes$
|
|
10910
|
+
var propsToOmit = Object.keys(propTypes$2);
|
|
10911
10911
|
var defaultProps = {
|
|
10912
10912
|
isOpen: false,
|
|
10913
10913
|
autoFocus: true,
|
|
@@ -11247,8 +11247,8 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
11247
11247
|
_this3 = this;
|
|
11248
11248
|
var attributes = omit(this.props, propsToOmit);
|
|
11249
11249
|
var dialogBaseClass = 'modal-dialog';
|
|
11250
|
-
return /*#__PURE__*/React__default["default"].createElement("div", _extends$
|
|
11251
|
-
className: mapToCssModules(classNames(dialogBaseClass, this.props.className, (_classNames = {}, _defineProperty
|
|
11250
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends$2({}, attributes, {
|
|
11251
|
+
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),
|
|
11252
11252
|
role: "document",
|
|
11253
11253
|
ref: function ref(c) {
|
|
11254
11254
|
_this3._dialog = c;
|
|
@@ -11297,7 +11297,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
11297
11297
|
baseClass: hasTransition ? this.props.backdropTransition.baseClass : '',
|
|
11298
11298
|
timeout: hasTransition ? this.props.backdropTransition.timeout : 0
|
|
11299
11299
|
});
|
|
11300
|
-
var Backdrop = backdrop && (hasTransition ? /*#__PURE__*/React__default["default"].createElement(Fade, _extends$
|
|
11300
|
+
var Backdrop = backdrop && (hasTransition ? /*#__PURE__*/React__default["default"].createElement(Fade, _extends$2({}, backdropTransition, {
|
|
11301
11301
|
"in": isOpen && !!backdrop,
|
|
11302
11302
|
cssModule: cssModule,
|
|
11303
11303
|
className: mapToCssModules(classNames('modal-backdrop', backdropClassName), cssModule)
|
|
@@ -11308,7 +11308,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
11308
11308
|
node: this._element
|
|
11309
11309
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11310
11310
|
className: mapToCssModules(wrapClassName)
|
|
11311
|
-
}, /*#__PURE__*/React__default["default"].createElement(Fade, _extends$
|
|
11311
|
+
}, /*#__PURE__*/React__default["default"].createElement(Fade, _extends$2({}, modalAttributes, modalTransition, {
|
|
11312
11312
|
"in": isOpen,
|
|
11313
11313
|
onEntered: this.onOpened,
|
|
11314
11314
|
onExited: this.onClosed,
|
|
@@ -11322,17 +11322,17 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
|
11322
11322
|
}]);
|
|
11323
11323
|
return Modal;
|
|
11324
11324
|
}(React__default["default"].Component);
|
|
11325
|
-
Modal.propTypes = propTypes$
|
|
11325
|
+
Modal.propTypes = propTypes$2;
|
|
11326
11326
|
Modal.defaultProps = defaultProps;
|
|
11327
11327
|
Modal.openCount = 0;
|
|
11328
11328
|
Modal.originalBodyOverflow = null;
|
|
11329
11329
|
var Modal$1 = Modal;
|
|
11330
11330
|
|
|
11331
11331
|
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); }
|
|
11332
|
-
var _excluded$
|
|
11333
|
-
function _extends$
|
|
11334
|
-
function _objectWithoutProperties$
|
|
11335
|
-
function _objectWithoutPropertiesLoose$
|
|
11332
|
+
var _excluded$1 = ["className", "cssModule", "tag", "innerRef"];
|
|
11333
|
+
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); }
|
|
11334
|
+
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; }
|
|
11335
|
+
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; }
|
|
11336
11336
|
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11337
11337
|
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); } }
|
|
11338
11338
|
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -11343,7 +11343,7 @@ function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$1(call)
|
|
|
11343
11343
|
function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11344
11344
|
function _isNativeReflectConstruct$1() { 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; } }
|
|
11345
11345
|
function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
|
|
11346
|
-
var propTypes$
|
|
11346
|
+
var propTypes$1 = {
|
|
11347
11347
|
children: PropTypes.node,
|
|
11348
11348
|
tag: tagPropType,
|
|
11349
11349
|
innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),
|
|
@@ -11385,9 +11385,9 @@ var Form = /*#__PURE__*/function (_Component) {
|
|
|
11385
11385
|
_this$props$tag = _this$props.tag,
|
|
11386
11386
|
Tag = _this$props$tag === void 0 ? 'form' : _this$props$tag,
|
|
11387
11387
|
innerRef = _this$props.innerRef,
|
|
11388
|
-
attributes = _objectWithoutProperties$
|
|
11388
|
+
attributes = _objectWithoutProperties$1(_this$props, _excluded$1);
|
|
11389
11389
|
var classes = mapToCssModules(className, cssModule);
|
|
11390
|
-
return /*#__PURE__*/React__default["default"].createElement(Tag, _extends$
|
|
11390
|
+
return /*#__PURE__*/React__default["default"].createElement(Tag, _extends$1({}, attributes, {
|
|
11391
11391
|
ref: innerRef,
|
|
11392
11392
|
className: classes
|
|
11393
11393
|
}));
|
|
@@ -11395,55 +11395,14 @@ var Form = /*#__PURE__*/function (_Component) {
|
|
|
11395
11395
|
}]);
|
|
11396
11396
|
return Form;
|
|
11397
11397
|
}(React.Component);
|
|
11398
|
-
Form.propTypes = propTypes$
|
|
11398
|
+
Form.propTypes = propTypes$1;
|
|
11399
11399
|
var Form$1 = Form;
|
|
11400
11400
|
|
|
11401
|
-
var _excluded$2 = ["className", "cssModule", "row", "disabled", "check", "inline", "floating", "noMargin", "tag", "switch"];
|
|
11402
|
-
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); }
|
|
11403
|
-
function _objectWithoutProperties$2(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$2(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; }
|
|
11404
|
-
function _objectWithoutPropertiesLoose$2(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; }
|
|
11405
|
-
var propTypes$2 = {
|
|
11406
|
-
children: PropTypes.node,
|
|
11407
|
-
row: PropTypes.bool,
|
|
11408
|
-
check: PropTypes.bool,
|
|
11409
|
-
"switch": PropTypes.bool,
|
|
11410
|
-
inline: PropTypes.bool,
|
|
11411
|
-
floating: PropTypes.bool,
|
|
11412
|
-
noMargin: PropTypes.bool,
|
|
11413
|
-
disabled: PropTypes.bool,
|
|
11414
|
-
tag: tagPropType,
|
|
11415
|
-
className: PropTypes.string,
|
|
11416
|
-
cssModule: PropTypes.object
|
|
11417
|
-
};
|
|
11418
|
-
function FormGroup(props) {
|
|
11419
|
-
var className = props.className,
|
|
11420
|
-
cssModule = props.cssModule,
|
|
11421
|
-
row = props.row,
|
|
11422
|
-
disabled = props.disabled,
|
|
11423
|
-
check = props.check,
|
|
11424
|
-
inline = props.inline,
|
|
11425
|
-
floating = props.floating,
|
|
11426
|
-
noMargin = props.noMargin,
|
|
11427
|
-
_props$tag = props.tag,
|
|
11428
|
-
Tag = _props$tag === void 0 ? 'div' : _props$tag,
|
|
11429
|
-
switchProp = props["switch"],
|
|
11430
|
-
attributes = _objectWithoutProperties$2(props, _excluded$2);
|
|
11431
|
-
var formCheck = check || switchProp;
|
|
11432
|
-
var classes = mapToCssModules(classNames(className, row ? 'row' : false, formCheck ? 'form-check' : false, switchProp ? 'form-switch' : false, formCheck || noMargin ? false : 'mb-3', formCheck && inline ? 'form-check-inline' : false, formCheck && disabled ? 'disabled' : false, floating && 'form-floating'), cssModule);
|
|
11433
|
-
if (Tag === 'fieldset') {
|
|
11434
|
-
attributes.disabled = disabled;
|
|
11435
|
-
}
|
|
11436
|
-
return /*#__PURE__*/React__default["default"].createElement(Tag, _extends$2({}, attributes, {
|
|
11437
|
-
className: classes
|
|
11438
|
-
}));
|
|
11439
|
-
}
|
|
11440
|
-
FormGroup.propTypes = propTypes$2;
|
|
11441
|
-
|
|
11442
11401
|
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); }
|
|
11443
|
-
var _excluded
|
|
11444
|
-
function _extends
|
|
11445
|
-
function _objectWithoutProperties
|
|
11446
|
-
function _objectWithoutPropertiesLoose
|
|
11402
|
+
var _excluded = ["className", "cssModule", "type", "bsSize", "valid", "invalid", "tag", "addon", "plaintext", "innerRef"];
|
|
11403
|
+
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); }
|
|
11404
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(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; }
|
|
11405
|
+
function _objectWithoutPropertiesLoose(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; }
|
|
11447
11406
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11448
11407
|
function _defineProperties(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); } }
|
|
11449
11408
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -11454,7 +11413,7 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
|
|
|
11454
11413
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11455
11414
|
function _isNativeReflectConstruct() { 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; } }
|
|
11456
11415
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11457
|
-
var propTypes
|
|
11416
|
+
var propTypes = {
|
|
11458
11417
|
children: PropTypes.node,
|
|
11459
11418
|
type: PropTypes.string,
|
|
11460
11419
|
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -11509,7 +11468,7 @@ var Input = /*#__PURE__*/function (_React$Component) {
|
|
|
11509
11468
|
addon = _this$props.addon,
|
|
11510
11469
|
plaintext = _this$props.plaintext,
|
|
11511
11470
|
innerRef = _this$props.innerRef,
|
|
11512
|
-
attributes = _objectWithoutProperties
|
|
11471
|
+
attributes = _objectWithoutProperties(_this$props, _excluded);
|
|
11513
11472
|
var checkInput = ['switch', 'radio', 'checkbox'].indexOf(type) > -1;
|
|
11514
11473
|
var isNotaNumber = /\D/g;
|
|
11515
11474
|
var textareaInput = type === 'textarea';
|
|
@@ -11544,7 +11503,7 @@ var Input = /*#__PURE__*/function (_React$Component) {
|
|
|
11544
11503
|
warnOnce("Input with a type of \"".concat(type, "\" cannot have children. Please use \"value\"/\"defaultValue\" instead."));
|
|
11545
11504
|
delete attributes.children;
|
|
11546
11505
|
}
|
|
11547
|
-
return /*#__PURE__*/React__default["default"].createElement(Tag, _extends
|
|
11506
|
+
return /*#__PURE__*/React__default["default"].createElement(Tag, _extends({}, attributes, {
|
|
11548
11507
|
ref: innerRef,
|
|
11549
11508
|
className: classes,
|
|
11550
11509
|
"aria-invalid": invalid
|
|
@@ -11553,89 +11512,9 @@ var Input = /*#__PURE__*/function (_React$Component) {
|
|
|
11553
11512
|
}]);
|
|
11554
11513
|
return Input;
|
|
11555
11514
|
}(React__default["default"].Component);
|
|
11556
|
-
Input.propTypes = propTypes
|
|
11515
|
+
Input.propTypes = propTypes;
|
|
11557
11516
|
var Input$1 = Input;
|
|
11558
11517
|
|
|
11559
|
-
var _excluded = ["className", "cssModule", "hidden", "widths", "tag", "check", "size", "for"];
|
|
11560
|
-
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); }
|
|
11561
|
-
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; }
|
|
11562
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(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; }
|
|
11563
|
-
function _objectWithoutPropertiesLoose(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; }
|
|
11564
|
-
var colWidths = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
11565
|
-
var stringOrNumberProp = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);
|
|
11566
|
-
var columnProps = PropTypes.oneOfType([PropTypes.bool, PropTypes.string, PropTypes.number, PropTypes.shape({
|
|
11567
|
-
size: stringOrNumberProp,
|
|
11568
|
-
order: stringOrNumberProp,
|
|
11569
|
-
offset: stringOrNumberProp
|
|
11570
|
-
})]);
|
|
11571
|
-
var propTypes = {
|
|
11572
|
-
children: PropTypes.node,
|
|
11573
|
-
hidden: PropTypes.bool,
|
|
11574
|
-
check: PropTypes.bool,
|
|
11575
|
-
size: PropTypes.string,
|
|
11576
|
-
"for": PropTypes.string,
|
|
11577
|
-
tag: tagPropType,
|
|
11578
|
-
className: PropTypes.string,
|
|
11579
|
-
cssModule: PropTypes.object,
|
|
11580
|
-
xs: columnProps,
|
|
11581
|
-
sm: columnProps,
|
|
11582
|
-
md: columnProps,
|
|
11583
|
-
lg: columnProps,
|
|
11584
|
-
xl: columnProps,
|
|
11585
|
-
xxl: columnProps,
|
|
11586
|
-
widths: PropTypes.array
|
|
11587
|
-
};
|
|
11588
|
-
var getColumnSizeClass = function getColumnSizeClass(isXs, colWidth, colSize) {
|
|
11589
|
-
if (colSize === true || colSize === '') {
|
|
11590
|
-
return isXs ? 'col' : "col-".concat(colWidth);
|
|
11591
|
-
}
|
|
11592
|
-
if (colSize === 'auto') {
|
|
11593
|
-
return isXs ? 'col-auto' : "col-".concat(colWidth, "-auto");
|
|
11594
|
-
}
|
|
11595
|
-
return isXs ? "col-".concat(colSize) : "col-".concat(colWidth, "-").concat(colSize);
|
|
11596
|
-
};
|
|
11597
|
-
function Label(props) {
|
|
11598
|
-
var className = props.className,
|
|
11599
|
-
cssModule = props.cssModule,
|
|
11600
|
-
hidden = props.hidden,
|
|
11601
|
-
_props$widths = props.widths,
|
|
11602
|
-
widths = _props$widths === void 0 ? colWidths : _props$widths,
|
|
11603
|
-
_props$tag = props.tag,
|
|
11604
|
-
Tag = _props$tag === void 0 ? 'label' : _props$tag,
|
|
11605
|
-
check = props.check,
|
|
11606
|
-
size = props.size,
|
|
11607
|
-
htmlFor = props["for"],
|
|
11608
|
-
attributes = _objectWithoutProperties(props, _excluded);
|
|
11609
|
-
var colClasses = [];
|
|
11610
|
-
widths.forEach(function (colWidth, i) {
|
|
11611
|
-
var columnProp = props[colWidth];
|
|
11612
|
-
delete attributes[colWidth];
|
|
11613
|
-
if (!columnProp && columnProp !== '') {
|
|
11614
|
-
return;
|
|
11615
|
-
}
|
|
11616
|
-
var isXs = !i;
|
|
11617
|
-
var colClass;
|
|
11618
|
-
if (isObject(columnProp)) {
|
|
11619
|
-
var _classNames;
|
|
11620
|
-
var colSizeInterfix = isXs ? '-' : "-".concat(colWidth, "-");
|
|
11621
|
-
colClass = getColumnSizeClass(isXs, colWidth, columnProp.size);
|
|
11622
|
-
colClasses.push(mapToCssModules(classNames((_classNames = {}, _defineProperty(_classNames, colClass, columnProp.size || columnProp.size === ''), _defineProperty(_classNames, "order".concat(colSizeInterfix).concat(columnProp.order), columnProp.order || columnProp.order === 0), _defineProperty(_classNames, "offset".concat(colSizeInterfix).concat(columnProp.offset), columnProp.offset || columnProp.offset === 0), _classNames))), cssModule);
|
|
11623
|
-
} else {
|
|
11624
|
-
colClass = getColumnSizeClass(isXs, colWidth, columnProp);
|
|
11625
|
-
colClasses.push(colClass);
|
|
11626
|
-
}
|
|
11627
|
-
});
|
|
11628
|
-
var colFormLabel = size || colClasses.length;
|
|
11629
|
-
var formLabel = !(check || colFormLabel);
|
|
11630
|
-
var classes = mapToCssModules(classNames(className, hidden ? 'visually-hidden' : false, check ? 'form-check-label' : false, size ? "col-form-label-".concat(size) : false, colClasses, colFormLabel ? 'col-form-label' : false, formLabel ? 'form-label' : false), cssModule);
|
|
11631
|
-
return /*#__PURE__*/React__default["default"].createElement(Tag, _extends({
|
|
11632
|
-
htmlFor: htmlFor
|
|
11633
|
-
}, attributes, {
|
|
11634
|
-
className: classes
|
|
11635
|
-
}));
|
|
11636
|
-
}
|
|
11637
|
-
Label.propTypes = propTypes;
|
|
11638
|
-
|
|
11639
11518
|
const SettingApp = (props) => {
|
|
11640
11519
|
const { isOpen, eventChange, eventClose } = { ...props };
|
|
11641
11520
|
useForm({
|
|
@@ -11790,27 +11669,27 @@ const SettingApp = (props) => {
|
|
|
11790
11669
|
console.log((new Date()).getTime(), 111);
|
|
11791
11670
|
switch (data.type) {
|
|
11792
11671
|
case "checkbox":
|
|
11793
|
-
return (jsxRuntime.jsx("div", { className: "checkbox", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "checkbox" }) }, data.id));
|
|
11672
|
+
return (jsxRuntime.jsx("div", { className: "checkbox", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "checkbox", className: "" }) }, data.id));
|
|
11794
11673
|
case "radio":
|
|
11795
11674
|
return (jsxRuntime.jsx("div", { className: "radio-group", title: data.description, children: data.option?.map((opt, index) => (jsxRuntime.jsxs("label", { children: [jsxRuntime.jsx(Input$1, { type: "radio", name: data.name, value: opt.value }), opt.name] }, index))) }, data.id));
|
|
11796
11675
|
case "combobox":
|
|
11797
|
-
return (jsxRuntime.jsx("div", { className: "combobox", title: data.description, children: jsxRuntime.jsxs(
|
|
11676
|
+
return (jsxRuntime.jsx("div", { className: "combobox", title: data.description, children: jsxRuntime.jsxs(Input$1, { type: "select", className: "input-custom", name: data.name, id: data.name, children: [jsxRuntime.jsx("option", { value: "", children: "Ch\u1ECDn m\u1ED9t gi\u00E1 tr\u1ECB" }), data.option?.map((opt, index) => (jsxRuntime.jsx("option", { value: opt.value, children: opt.name }, index)))] }) }, data.id));
|
|
11798
11677
|
case "text":
|
|
11799
|
-
return (jsxRuntime.jsx("div", { className: "text-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "text", placeholder: data.name }) }, data.id));
|
|
11678
|
+
return (jsxRuntime.jsx("div", { className: "text-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "text", className: "input-custom", placeholder: data.name }) }, data.id));
|
|
11800
11679
|
case "number":
|
|
11801
|
-
return (jsxRuntime.jsx("div", { className: "number-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "number", placeholder: data.name }) }, data.id));
|
|
11680
|
+
return (jsxRuntime.jsx("div", { className: "number-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "number", className: "t-right input-custom", placeholder: data.name }) }, data.id));
|
|
11802
11681
|
case "date":
|
|
11803
|
-
return (jsxRuntime.jsx("div", { className: "date-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "date" }) }, data.id));
|
|
11682
|
+
return (jsxRuntime.jsx("div", { className: "date-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "date", className: "input-custom" }) }, data.id));
|
|
11804
11683
|
case "switch":
|
|
11805
|
-
return (jsxRuntime.jsx("div", { className: "switch", title: data.description }, data.id));
|
|
11684
|
+
return (jsxRuntime.jsx("div", { className: "switch", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "switch", className: "input-custom", role: "switch" }) }, data.id));
|
|
11806
11685
|
case "slider":
|
|
11807
11686
|
return (jsxRuntime.jsx("div", { className: "slider", title: data.description }, data.id));
|
|
11808
11687
|
case "file":
|
|
11809
|
-
return (jsxRuntime.jsx("div", { className: "file-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "file" }) }, data.id));
|
|
11688
|
+
return (jsxRuntime.jsx("div", { className: "file-input", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "file", className: "input-custom" }) }, data.id));
|
|
11810
11689
|
case "color":
|
|
11811
|
-
return (jsxRuntime.jsx("div", { className: "color-picker", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "color" }) }, data.id));
|
|
11690
|
+
return (jsxRuntime.jsx("div", { className: "color-picker t-right", title: data.description, children: jsxRuntime.jsx(Input$1, { type: "color", className: "form-color input-custom" }) }, data.id));
|
|
11812
11691
|
default:
|
|
11813
|
-
return
|
|
11692
|
+
return (jsxRuntime.jsx("div", { className: (data.type ?? 'normal') + '-input', title: data.description, children: jsxRuntime.jsx(Input$1, { type: data.type ?? '' }) }, data.id));
|
|
11814
11693
|
}
|
|
11815
11694
|
};
|
|
11816
11695
|
//hàm tạo các thông số cấu hình và cài đặt
|
|
@@ -11833,5 +11712,9 @@ const SettingApp = (props) => {
|
|
|
11833
11712
|
: null }));
|
|
11834
11713
|
};
|
|
11835
11714
|
|
|
11715
|
+
const INIT_CONFIG_SETTING = () => {
|
|
11716
|
+
};
|
|
11717
|
+
|
|
11718
|
+
exports.INIT_CONFIG_SETTING = INIT_CONFIG_SETTING;
|
|
11836
11719
|
exports.SettingApp = SettingApp;
|
|
11837
11720
|
//# sourceMappingURL=index.js.map
|