@esvndev/es-react-config-setting 1.0.35 → 1.0.37
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 +115 -182
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +116 -183
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { useRef,
|
|
3
|
+
import React__default, { useRef, useState, useEffect } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
6
6
|
|
|
@@ -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
|
|
|
@@ -9690,7 +9690,7 @@ const ModalHeader = (props) => {
|
|
|
9690
9690
|
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; }
|
|
9691
9691
|
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; }
|
|
9692
9692
|
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; }
|
|
9693
|
-
function _typeof$
|
|
9693
|
+
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); }
|
|
9694
9694
|
|
|
9695
9695
|
// https://github.com/twbs/bootstrap/blob/v4.0.0-alpha.4/js/src/modal.js#L436-L443
|
|
9696
9696
|
function getScrollbarWidth() {
|
|
@@ -9787,7 +9787,7 @@ function deprecated(propType, explanation) {
|
|
|
9787
9787
|
}
|
|
9788
9788
|
|
|
9789
9789
|
// Shim Element if needed (e.g. in Node environment)
|
|
9790
|
-
var Element$1 = (typeof window === "undefined" ? "undefined" : _typeof$
|
|
9790
|
+
var Element$1 = (typeof window === "undefined" ? "undefined" : _typeof$3(window)) === 'object' && window.Element || function () {};
|
|
9791
9791
|
function DOMElement(props, propName, componentName) {
|
|
9792
9792
|
if (!(props[propName] instanceof Element$1)) {
|
|
9793
9793
|
return new Error('Invalid prop `' + propName + '` supplied to `' + componentName + '`. Expected prop to be an instance of Element. Validation failed.');
|
|
@@ -9836,7 +9836,7 @@ var keyCodes = {
|
|
|
9836
9836
|
};
|
|
9837
9837
|
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
9838
9838
|
function isReactRefObj(target) {
|
|
9839
|
-
if (target && _typeof$
|
|
9839
|
+
if (target && _typeof$3(target) === 'object') {
|
|
9840
9840
|
return 'current' in target;
|
|
9841
9841
|
}
|
|
9842
9842
|
return false;
|
|
@@ -9848,7 +9848,7 @@ function getTag(value) {
|
|
|
9848
9848
|
return Object.prototype.toString.call(value);
|
|
9849
9849
|
}
|
|
9850
9850
|
function isObject(value) {
|
|
9851
|
-
var type = _typeof$
|
|
9851
|
+
var type = _typeof$3(value);
|
|
9852
9852
|
return value != null && (type === 'object' || type === 'function');
|
|
9853
9853
|
}
|
|
9854
9854
|
function isFunction(value) {
|
|
@@ -9907,20 +9907,20 @@ function addDefaultProps(defaultProps, props) {
|
|
|
9907
9907
|
if (result[key] === undefined) {
|
|
9908
9908
|
result[key] = defaultProps[key];
|
|
9909
9909
|
}
|
|
9910
|
-
if (Object.keys(defaultProps[key] || {}).length > 0 && _typeof$
|
|
9910
|
+
if (Object.keys(defaultProps[key] || {}).length > 0 && _typeof$3(defaultProps[key]) === 'object') {
|
|
9911
9911
|
addDefaultProps(defaultProps[key], result);
|
|
9912
9912
|
}
|
|
9913
9913
|
});
|
|
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)) {
|
|
@@ -10049,14 +10049,14 @@ function _objectWithoutPropertiesLoose$3(r, e) {
|
|
|
10049
10049
|
return t;
|
|
10050
10050
|
}
|
|
10051
10051
|
|
|
10052
|
-
function _setPrototypeOf$
|
|
10053
|
-
return _setPrototypeOf$
|
|
10052
|
+
function _setPrototypeOf$3(t, e) {
|
|
10053
|
+
return _setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
10054
10054
|
return t.__proto__ = e, t;
|
|
10055
|
-
}, _setPrototypeOf$
|
|
10055
|
+
}, _setPrototypeOf$3(t, e);
|
|
10056
10056
|
}
|
|
10057
10057
|
|
|
10058
10058
|
function _inheritsLoose(t, o) {
|
|
10059
|
-
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$
|
|
10059
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$3(t, o);
|
|
10060
10060
|
}
|
|
10061
10061
|
|
|
10062
10062
|
var config = {
|
|
@@ -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,48 +10741,48 @@ 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
|
-
function _typeof$
|
|
10764
|
-
function _classCallCheck$
|
|
10765
|
-
function _defineProperties$
|
|
10766
|
-
function _createClass$
|
|
10767
|
-
function _inherits$
|
|
10768
|
-
function _setPrototypeOf$
|
|
10769
|
-
function _createSuper$
|
|
10770
|
-
function _possibleConstructorReturn$
|
|
10771
|
-
function _assertThisInitialized$
|
|
10772
|
-
function _isNativeReflectConstruct$
|
|
10773
|
-
function _getPrototypeOf$
|
|
10774
|
-
var propTypes$
|
|
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
|
+
function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10765
|
+
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); } }
|
|
10766
|
+
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; }
|
|
10767
|
+
function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$2(subClass, superClass); }
|
|
10768
|
+
function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$2(o, p); }
|
|
10769
|
+
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
|
|
10770
|
+
function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$2(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$2(self); }
|
|
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
|
+
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
|
+
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$2 = {
|
|
10775
10775
|
children: PropTypes.node.isRequired,
|
|
10776
10776
|
node: PropTypes.any
|
|
10777
10777
|
};
|
|
10778
10778
|
var Portal = /*#__PURE__*/function (_React$Component) {
|
|
10779
|
-
_inherits$
|
|
10780
|
-
var _super = _createSuper$
|
|
10779
|
+
_inherits$2(Portal, _React$Component);
|
|
10780
|
+
var _super = _createSuper$2(Portal);
|
|
10781
10781
|
function Portal() {
|
|
10782
|
-
_classCallCheck$
|
|
10782
|
+
_classCallCheck$2(this, Portal);
|
|
10783
10783
|
return _super.apply(this, arguments);
|
|
10784
10784
|
}
|
|
10785
|
-
_createClass$
|
|
10785
|
+
_createClass$2(Portal, [{
|
|
10786
10786
|
key: "componentWillUnmount",
|
|
10787
10787
|
value: function componentWillUnmount() {
|
|
10788
10788
|
if (this.defaultNode) {
|
|
@@ -10805,27 +10805,27 @@ 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
|
-
function _typeof$
|
|
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
|
-
function _classCallCheck$
|
|
10817
|
-
function _defineProperties$
|
|
10818
|
-
function _createClass$
|
|
10819
|
-
function _inherits$
|
|
10820
|
-
function _setPrototypeOf$
|
|
10821
|
-
function _createSuper$
|
|
10822
|
-
function _possibleConstructorReturn$
|
|
10823
|
-
function _assertThisInitialized$
|
|
10824
|
-
function _isNativeReflectConstruct$
|
|
10825
|
-
function _getPrototypeOf$
|
|
10816
|
+
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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); } }
|
|
10818
|
+
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; }
|
|
10819
|
+
function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
|
|
10820
|
+
function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
|
|
10821
|
+
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
|
|
10822
|
+
function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$1(self); }
|
|
10823
|
+
function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10824
|
+
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; } }
|
|
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,
|
|
@@ -10907,32 +10907,32 @@ var defaultProps = {
|
|
|
10907
10907
|
trapFocus: false
|
|
10908
10908
|
};
|
|
10909
10909
|
var Modal = /*#__PURE__*/function (_React$Component) {
|
|
10910
|
-
_inherits$
|
|
10911
|
-
var _super = _createSuper$
|
|
10910
|
+
_inherits$1(Modal, _React$Component);
|
|
10911
|
+
var _super = _createSuper$1(Modal);
|
|
10912
10912
|
function Modal(props) {
|
|
10913
10913
|
var _this;
|
|
10914
|
-
_classCallCheck$
|
|
10914
|
+
_classCallCheck$1(this, Modal);
|
|
10915
10915
|
_this = _super.call(this, props);
|
|
10916
10916
|
_this._element = null;
|
|
10917
10917
|
_this._originalBodyPadding = null;
|
|
10918
|
-
_this.getFocusableChildren = _this.getFocusableChildren.bind(_assertThisInitialized$
|
|
10919
|
-
_this.handleBackdropClick = _this.handleBackdropClick.bind(_assertThisInitialized$
|
|
10920
|
-
_this.handleBackdropMouseDown = _this.handleBackdropMouseDown.bind(_assertThisInitialized$
|
|
10921
|
-
_this.handleEscape = _this.handleEscape.bind(_assertThisInitialized$
|
|
10922
|
-
_this.handleStaticBackdropAnimation = _this.handleStaticBackdropAnimation.bind(_assertThisInitialized$
|
|
10923
|
-
_this.handleTab = _this.handleTab.bind(_assertThisInitialized$
|
|
10924
|
-
_this.onOpened = _this.onOpened.bind(_assertThisInitialized$
|
|
10925
|
-
_this.onClosed = _this.onClosed.bind(_assertThisInitialized$
|
|
10926
|
-
_this.manageFocusAfterClose = _this.manageFocusAfterClose.bind(_assertThisInitialized$
|
|
10927
|
-
_this.clearBackdropAnimationTimeout = _this.clearBackdropAnimationTimeout.bind(_assertThisInitialized$
|
|
10928
|
-
_this.trapFocus = _this.trapFocus.bind(_assertThisInitialized$
|
|
10918
|
+
_this.getFocusableChildren = _this.getFocusableChildren.bind(_assertThisInitialized$1(_this));
|
|
10919
|
+
_this.handleBackdropClick = _this.handleBackdropClick.bind(_assertThisInitialized$1(_this));
|
|
10920
|
+
_this.handleBackdropMouseDown = _this.handleBackdropMouseDown.bind(_assertThisInitialized$1(_this));
|
|
10921
|
+
_this.handleEscape = _this.handleEscape.bind(_assertThisInitialized$1(_this));
|
|
10922
|
+
_this.handleStaticBackdropAnimation = _this.handleStaticBackdropAnimation.bind(_assertThisInitialized$1(_this));
|
|
10923
|
+
_this.handleTab = _this.handleTab.bind(_assertThisInitialized$1(_this));
|
|
10924
|
+
_this.onOpened = _this.onOpened.bind(_assertThisInitialized$1(_this));
|
|
10925
|
+
_this.onClosed = _this.onClosed.bind(_assertThisInitialized$1(_this));
|
|
10926
|
+
_this.manageFocusAfterClose = _this.manageFocusAfterClose.bind(_assertThisInitialized$1(_this));
|
|
10927
|
+
_this.clearBackdropAnimationTimeout = _this.clearBackdropAnimationTimeout.bind(_assertThisInitialized$1(_this));
|
|
10928
|
+
_this.trapFocus = _this.trapFocus.bind(_assertThisInitialized$1(_this));
|
|
10929
10929
|
_this.state = {
|
|
10930
10930
|
isOpen: false,
|
|
10931
10931
|
showStaticBackdropAnimation: false
|
|
10932
10932
|
};
|
|
10933
10933
|
return _this;
|
|
10934
10934
|
}
|
|
10935
|
-
_createClass$
|
|
10935
|
+
_createClass$1(Modal, [{
|
|
10936
10936
|
key: "componentDidMount",
|
|
10937
10937
|
value: function componentDidMount() {
|
|
10938
10938
|
var _this$props = this.props,
|
|
@@ -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,82 +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
|
-
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); }
|
|
11305
|
-
var _excluded$1 = ["className", "cssModule", "tag", "innerRef"];
|
|
11306
|
-
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); }
|
|
11307
|
-
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; }
|
|
11308
|
-
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; }
|
|
11309
|
-
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11310
|
-
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); } }
|
|
11311
|
-
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; }
|
|
11312
|
-
function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
|
|
11313
|
-
function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
|
|
11314
|
-
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
|
|
11315
|
-
function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$1(self); }
|
|
11316
|
-
function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11317
|
-
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; } }
|
|
11318
|
-
function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
|
|
11319
|
-
var propTypes$1 = {
|
|
11320
|
-
children: PropTypes.node,
|
|
11321
|
-
tag: tagPropType,
|
|
11322
|
-
innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),
|
|
11323
|
-
className: PropTypes.string,
|
|
11324
|
-
cssModule: PropTypes.object
|
|
11325
|
-
};
|
|
11326
|
-
var Form = /*#__PURE__*/function (_Component) {
|
|
11327
|
-
_inherits$1(Form, _Component);
|
|
11328
|
-
var _super = _createSuper$1(Form);
|
|
11329
|
-
function Form(props) {
|
|
11330
|
-
var _this;
|
|
11331
|
-
_classCallCheck$1(this, Form);
|
|
11332
|
-
_this = _super.call(this, props);
|
|
11333
|
-
_this.getRef = _this.getRef.bind(_assertThisInitialized$1(_this));
|
|
11334
|
-
_this.submit = _this.submit.bind(_assertThisInitialized$1(_this));
|
|
11335
|
-
return _this;
|
|
11336
|
-
}
|
|
11337
|
-
_createClass$1(Form, [{
|
|
11338
|
-
key: "getRef",
|
|
11339
|
-
value: function getRef(ref) {
|
|
11340
|
-
if (this.props.innerRef) {
|
|
11341
|
-
this.props.innerRef(ref);
|
|
11342
|
-
}
|
|
11343
|
-
this.ref = ref;
|
|
11344
|
-
}
|
|
11345
|
-
}, {
|
|
11346
|
-
key: "submit",
|
|
11347
|
-
value: function submit() {
|
|
11348
|
-
if (this.ref) {
|
|
11349
|
-
this.ref.submit();
|
|
11350
|
-
}
|
|
11351
|
-
}
|
|
11352
|
-
}, {
|
|
11353
|
-
key: "render",
|
|
11354
|
-
value: function render() {
|
|
11355
|
-
var _this$props = this.props,
|
|
11356
|
-
className = _this$props.className,
|
|
11357
|
-
cssModule = _this$props.cssModule,
|
|
11358
|
-
_this$props$tag = _this$props.tag,
|
|
11359
|
-
Tag = _this$props$tag === void 0 ? 'form' : _this$props$tag,
|
|
11360
|
-
innerRef = _this$props.innerRef,
|
|
11361
|
-
attributes = _objectWithoutProperties$1(_this$props, _excluded$1);
|
|
11362
|
-
var classes = mapToCssModules(className, cssModule);
|
|
11363
|
-
return /*#__PURE__*/React__default.createElement(Tag, _extends$1({}, attributes, {
|
|
11364
|
-
ref: innerRef,
|
|
11365
|
-
className: classes
|
|
11366
|
-
}));
|
|
11367
|
-
}
|
|
11368
|
-
}]);
|
|
11369
|
-
return Form;
|
|
11370
|
-
}(Component);
|
|
11371
|
-
Form.propTypes = propTypes$1;
|
|
11372
|
-
var Form$1 = Form;
|
|
11373
|
-
|
|
11374
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); }
|
|
11375
11305
|
var _excluded = ["className", "cssModule", "type", "bsSize", "valid", "invalid", "tag", "addon", "plaintext", "innerRef"];
|
|
11376
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); }
|
|
@@ -11513,9 +11443,6 @@ const SettingApp = (props) => {
|
|
|
11513
11443
|
//Sự kiện sau khi đã đóng cài đặt
|
|
11514
11444
|
const handleFormClosed = () => {
|
|
11515
11445
|
};
|
|
11516
|
-
//Sự kiện lưu
|
|
11517
|
-
const handleSubmit = () => {
|
|
11518
|
-
};
|
|
11519
11446
|
//Hàm chuyển đổi ngôn ngữ
|
|
11520
11447
|
const t = (l) => {
|
|
11521
11448
|
return l;
|
|
@@ -11641,6 +11568,7 @@ const SettingApp = (props) => {
|
|
|
11641
11568
|
const _renderInput = (root, data) => {
|
|
11642
11569
|
console.log((new Date()).getTime(), 111);
|
|
11643
11570
|
switch (data.type) {
|
|
11571
|
+
case "switch":
|
|
11644
11572
|
case "checkbox":
|
|
11645
11573
|
return (jsx("div", { className: "checkbox", title: data.description, children: jsx(Input$1, { type: "checkbox", className: "" }) }, data.id));
|
|
11646
11574
|
case "radio":
|
|
@@ -11649,14 +11577,19 @@ const SettingApp = (props) => {
|
|
|
11649
11577
|
return (jsx("div", { className: "combobox", title: data.description, children: jsxs(Input$1, { type: "select", className: "input-custom", name: data.name, id: data.name, children: [jsx("option", { value: "", children: "Ch\u1ECDn m\u1ED9t gi\u00E1 tr\u1ECB" }), data.option?.map((opt, index) => (jsx("option", { value: opt.value, children: opt.name }, index)))] }) }, data.id));
|
|
11650
11578
|
case "text":
|
|
11651
11579
|
return (jsx("div", { className: "text-input", title: data.description, children: jsx(Input$1, { type: "text", className: "input-custom", placeholder: data.name }) }, data.id));
|
|
11580
|
+
case "password":
|
|
11581
|
+
return (jsx("div", { className: "text-input", title: data.description, children: jsx(Input$1, { type: "password", className: "input-custom", placeholder: data.name }) }, data.id));
|
|
11652
11582
|
case "number":
|
|
11653
11583
|
return (jsx("div", { className: "number-input", title: data.description, children: jsx(Input$1, { type: "number", className: "t-right input-custom", placeholder: data.name }) }, data.id));
|
|
11654
11584
|
case "date":
|
|
11655
|
-
return (jsx("div", { className: "date-input", title: data.description, children: jsx(Input$1, { type: "date", className: "input-custom" }) }, data.id));
|
|
11656
|
-
case "
|
|
11657
|
-
return (jsx("div", { className: "
|
|
11585
|
+
return (jsx("div", { className: "date-input", title: data.description, children: jsx(Input$1, { type: "date", className: "t-right input-custom" }) }, data.id));
|
|
11586
|
+
case "time":
|
|
11587
|
+
return (jsx("div", { className: "date-input", title: data.description, children: jsx(Input$1, { type: "time", className: "t-right input-custom" }) }, data.id));
|
|
11588
|
+
case "datetime":
|
|
11589
|
+
return (jsx("div", { className: "date-input", title: data.description, children: jsx(Input$1, { type: "datetime", className: "t-right input-custom" }) }, data.id));
|
|
11658
11590
|
case "slider":
|
|
11659
11591
|
return (jsx("div", { className: "slider", title: data.description }, data.id));
|
|
11592
|
+
case "image":
|
|
11660
11593
|
case "file":
|
|
11661
11594
|
return (jsx("div", { className: "file-input", title: data.description, children: jsx(Input$1, { type: "file", className: "input-custom" }) }, data.id));
|
|
11662
11595
|
case "color":
|
|
@@ -11678,7 +11611,7 @@ const SettingApp = (props) => {
|
|
|
11678
11611
|
: null);
|
|
11679
11612
|
};
|
|
11680
11613
|
return (jsx(Fragment, { children: isOpen ?
|
|
11681
|
-
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(
|
|
11614
|
+
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("div", { id: 'form-modal-globalzone', className: 'todo-modal', 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 ?
|
|
11682
11615
|
dataSettingGroup.map((item) => {
|
|
11683
11616
|
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));
|
|
11684
11617
|
}) : 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() }) })] })] }) }) })
|