sag_components 1.0.225 → 1.0.227
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.
|
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
12
12
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
13
13
|
var fadeIn = (0, _styledComponents.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"])));
|
|
14
|
-
var ModalOverlay = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.7);\n display: flex;\n justify-content: center;\n align-items: center;\n animation: ", " 0.3s ease-in-out;\n"])), fadeIn);
|
|
14
|
+
var ModalOverlay = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index:999999;\n background-color: rgba(0, 0, 0, 0.7);\n display: flex;\n justify-content: center;\n align-items: center;\n animation: ", " 0.3s ease-in-out;\n"])), fadeIn);
|
|
15
15
|
exports.ModalOverlay = ModalOverlay;
|
|
16
16
|
var ModalContent = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background-color: #fff;\n overflow: scroll;\n padding: 20px;\n border-radius: 8px;\n width: 50%;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n animation: ", " 0.5s ease-in-out;\n"])), fadeIn);
|
|
17
17
|
exports.ModalContent = ModalContent;
|
|
@@ -15,7 +15,8 @@ var _reactHookForm = require("react-hook-form");
|
|
|
15
15
|
var TotalCostModal = function TotalCostModal(_ref) {
|
|
16
16
|
var title = _ref.title,
|
|
17
17
|
isModalOpen = _ref.isModalOpen,
|
|
18
|
-
setModalOpen = _ref.setModalOpen
|
|
18
|
+
setModalOpen = _ref.setModalOpen,
|
|
19
|
+
setResult = _ref.setResult;
|
|
19
20
|
var _useState = (0, _react.useState)("Select PACKAGE_COST,REDEMPTION_COST,(PACKAGE_COST+REDEMPTION_COST) AS TOTAL_COST,from FACT_EVENT_MEASURES A INNER JOIN DIM_EVENTS B ON A.EVENT_CODE = B.EVENT_CODE"),
|
|
20
21
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
21
22
|
code = _useState2[0],
|
|
@@ -27,7 +28,7 @@ var TotalCostModal = function TotalCostModal(_ref) {
|
|
|
27
28
|
control = _useForm.control,
|
|
28
29
|
errors = _useForm.formState.errors;
|
|
29
30
|
var onSubmit = function onSubmit(data) {
|
|
30
|
-
return
|
|
31
|
+
return setResult(data);
|
|
31
32
|
};
|
|
32
33
|
return /*#__PURE__*/_react.default.createElement("form", {
|
|
33
34
|
onSubmit: handleSubmit(onSubmit)
|