@lanaco/lnc-react-ui 2.1.15 → 2.1.19
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/lib/index.esm.js +379 -143
- package/lib/index.js +379 -142
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -4616,7 +4616,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
4616
4616
|
}
|
|
4617
4617
|
}
|
|
4618
4618
|
|
|
4619
|
-
var _templateObject$
|
|
4619
|
+
var _templateObject$q;
|
|
4620
4620
|
|
|
4621
4621
|
var getCheckboxCss = function getCheckboxCss(props) {
|
|
4622
4622
|
var left, top, width, height, checkWidth, checkHeight, margin, marginLeft, padingLeft, paddingTop;
|
|
@@ -4661,7 +4661,7 @@ var getCheckboxCss = function getCheckboxCss(props) {
|
|
|
4661
4661
|
height = "1.6875rem";
|
|
4662
4662
|
}
|
|
4663
4663
|
|
|
4664
|
-
return css(_templateObject$
|
|
4664
|
+
return css(_templateObject$q || (_templateObject$q = _taggedTemplateLiteral__default['default'](["\n .c-", "-container {\n font-family: ", ";\n display: inline-block;\n position: relative;\n padding: 0.25rem;\n padding-left: ", ";\n ", "\n cursor: pointer;\n font-size: ", ";\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n margin: ", ";\n margin-left: ", ";\n cursor: pointer;\n }\n\n /* Hide the browser's default checkbox */\n .c-", "-container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n\n /* Create a custom checkbox */\n .c-", "-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n height: ", ";\n width: ", ";\n background-color: #eee;\n border: 0.0625rem solid ", ";\n border-radius: 2px;\n transition: all 200ms ease;\n }\n\n /* On mouse-over, add a grey background color */\n .c-", "-container:hover input ~ .c-", "-checkmark {\n cursor: pointer;\n }\n\n .c-", "-container:hover input:disabled ~ .c-", "-checkmark {\n background-color: ", ";\n cursor: default;\n }\n\n .c-", "-container input:disabled ~ .c-", "-checkmark {\n background-color: ", ";\n }\n\n /* When the checkbox is checked, add a blue background */\n .c-", "-container input:checked ~ .c-", "-checkmark {\n background-color: ", ";\n }\n\n .c-", "-container input:checked:disabled ~ .c-", "-checkmark {\n background-color: ", ";\n border: 0.0625rem solid ", ";\n cursor: default;\n }\n\n /* Create the checkmark/indicator (hidden when not checked) */\n .c-", "-checkmark:after {\n content: \"\";\n position: absolute;\n display: none;\n }\n\n /* Show the checkmark when checked */\n .c-", "-container input:checked ~ .c-", "-checkmark:after {\n display: block;\n }\n\n /* Style the checkmark/indicator */\n .c-", "-container .c-", "-checkmark:after {\n left: ", ";\n top: ", ";\n width: ", ";\n height: ", ";\n border: solid white;\n border-width: 0 0.21875rem 0.21875rem 0;\n -webkit-transform: rotate(35deg);\n -ms-transform: rotate(35deg);\n transform: rotate(35deg);\n }\n "])), props.id, props.theme.typography.fontFamily, padingLeft, paddingTop, props.theme.typography[props.size].fontSize, margin, marginLeft, props.id, props.id, height, width, props.theme.palette[props.color].main, props.id, props.id, props.id, props.id, props.theme.palette.gray[900], props.id, props.id, props.theme.palette.gray[900], props.id, props.id, props.theme.palette[props.color].main, props.id, props.id, props.theme.palette.gray[900], props.theme.palette.gray.textLight, props.id, props.id, props.id, props.id, props.id, left, top, checkWidth, checkHeight);
|
|
4665
4665
|
};
|
|
4666
4666
|
|
|
4667
4667
|
var CheckBox = function CheckBox(props) {
|
|
@@ -4716,7 +4716,7 @@ CheckBox.propTypes = {
|
|
|
4716
4716
|
color: PropTypes__default['default'].oneOf(["primary", "secondary", "success", "error", "warning", "gray"])
|
|
4717
4717
|
};
|
|
4718
4718
|
|
|
4719
|
-
var _templateObject$
|
|
4719
|
+
var _templateObject$p, _templateObject2$k, _templateObject3$e;
|
|
4720
4720
|
|
|
4721
4721
|
var getLabelAndTextProps = function getLabelAndTextProps() {
|
|
4722
4722
|
return {
|
|
@@ -4787,14 +4787,14 @@ var Label = newStyled.label(function (props) {
|
|
|
4787
4787
|
}
|
|
4788
4788
|
};
|
|
4789
4789
|
});
|
|
4790
|
-
var Text$2 = newStyled.label(_templateObject$
|
|
4790
|
+
var Text$2 = newStyled.label(_templateObject$p || (_templateObject$p = _taggedTemplateLiteral__default['default'](["\n position: relative;\n font-family: ", ";\n font-size: ", ";\n top: ", ";\n"])), function (props) {
|
|
4791
4791
|
return props.theme.typography.fontFamily;
|
|
4792
4792
|
}, function (props) {
|
|
4793
4793
|
return props.theme.typography[props.size].fontSize;
|
|
4794
4794
|
}, function (props) {
|
|
4795
4795
|
return getLabelAndTextProps()[props.size].top;
|
|
4796
4796
|
});
|
|
4797
|
-
var Input$4 = newStyled.input(_templateObject2$
|
|
4797
|
+
var Input$4 = newStyled.input(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteral__default['default'](["\n &:checked + span {\n background-color: ", ";\n }\n\n &:focus + span {\n box-shadow: 0 0 0.0625rem\n ", ";\n }\n\n &:checked + span:before {\n transform: translateX(90%);\n }\n\n &:checked:disabled + span {\n }\n\n &:checked:disabled + span:before {\n backround-color: red;\n }\n\n &:disabled + span {\n position: absolute;\n cursor: pointer;\n top: ", ";\n left: ", ";\n right: 0;\n bottom: 0;\n background-color: ", ";\n -webkit-transition: 0.4s;\n transition: 0.4s;\n height: ", ";\n width: ", ";\n border: 0.0625rem solid ", ";\n border-radius: 0.125rem;\n }\n\n &:disabled + span:before {\n position: absolute;\n content: \"\";\n height: ", ";\n width: ", ";\n left: 0.0625rem;\n top: -0.125rem;\n background-color: ", ";\n -webkit-transition: 0.4s;\n transition: 0.4s;\n border: 0.0625rem solid ", ";\n border-radius: 0.125rem;\n }\n\n &:checked:disabled + span:before {\n position: absolute;\n content: \"\";\n height: ", ";\n width: ", ";\n left: 0.0625rem;\n top: -0.125rem;\n background-color: ", ";\n -webkit-transition: 0.4s;\n transition: 0.4s;\n border: 0.0625rem solid ", ";\n border-radius: 0.125rem;\n }\n"])), function (props) {
|
|
4798
4798
|
return props.theme.palette[props.color].main;
|
|
4799
4799
|
}, function (props) {
|
|
4800
4800
|
return props.theme.palette[props.color].main;
|
|
@@ -6554,11 +6554,11 @@ SwitchTransition.defaultProps = {
|
|
|
6554
6554
|
};
|
|
6555
6555
|
var SwitchTransition$1 = SwitchTransition;
|
|
6556
6556
|
|
|
6557
|
-
var _templateObject$
|
|
6558
|
-
var Container$
|
|
6557
|
+
var _templateObject$o, _templateObject2$j, _templateObject3$d, _templateObject4$b, _templateObject5$b, _templateObject6$9, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject10$7, _templateObject11$5, _templateObject12$5, _templateObject13$3;
|
|
6558
|
+
var Container$l = newStyled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteral__default['default'](["\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n box-shadow: 0 0 6px #bebebe;\n border-radius: 0.175rem;\n padding: 8px;\n width: ", ";\n\n font-family: ", ";\n"])), function (props) {
|
|
6559
6559
|
return props.width && props.width !== "" ? props.width : "fit-content";
|
|
6560
6560
|
}, theme.typography.fontFamily);
|
|
6561
|
-
var Table$1 = newStyled.div(_templateObject2$
|
|
6561
|
+
var Table$1 = newStyled.div(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteral__default['default'](["\n display: flex;\n flex-direction: column;\n border: 1.7px solid #80808060;\n background-color: whitesmoke;\n border-radius: 0.175rem;\n"])));
|
|
6562
6562
|
var Body = newStyled.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteral__default['default'](["\n display: flex;\n flex-direction: column;\n &::-webkit-scrollbar {\n background: white;\n height: 0;\n width: 0;\n }\n overflow: auto;\n height: ", ";\n"])), function (props) {
|
|
6563
6563
|
return props.height && props.height !== "" ? props.height : "auto";
|
|
6564
6564
|
});
|
|
@@ -6636,7 +6636,7 @@ var CheckboxLookup = function CheckboxLookup(props) {
|
|
|
6636
6636
|
|
|
6637
6637
|
var _options = pagination ? options.slice((page - 1) * displayedItemsCount, page * displayedItemsCount) : options;
|
|
6638
6638
|
|
|
6639
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
6639
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$l, _extends__default['default']({}, themeProps, {
|
|
6640
6640
|
className: className
|
|
6641
6641
|
}), /*#__PURE__*/React__default['default'].createElement(Global, {
|
|
6642
6642
|
styles: css(_templateObject13$3 || (_templateObject13$3 = _taggedTemplateLiteral__default['default'](["\n .item-enter {\n opacity: 0;\n }\n\n .item-enter-active {\n transition: all 0.4s ease-in;\n opacity: 1;\n }\n\n .item-exit {\n }\n\n .item-exit-active {\n opacity: 0;\n transition: opacity 400ms ease-out;\n }\n "])))
|
|
@@ -22432,7 +22432,7 @@ var heightBySize$d = function heightBySize(size, hasText) {
|
|
|
22432
22432
|
if (size === "large") return "2.375rem";
|
|
22433
22433
|
};
|
|
22434
22434
|
|
|
22435
|
-
var Container$
|
|
22435
|
+
var Container$k = newStyled.span(function (props) {
|
|
22436
22436
|
return {
|
|
22437
22437
|
"& .react-datepicker__triangle": {
|
|
22438
22438
|
display: "none"
|
|
@@ -22529,7 +22529,7 @@ var DateInput = function DateInput(props) {
|
|
|
22529
22529
|
setDateText(moment(jsDateObject).format("DD.MM.YYYY."));
|
|
22530
22530
|
};
|
|
22531
22531
|
|
|
22532
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
22532
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$k, {
|
|
22533
22533
|
theme: theme,
|
|
22534
22534
|
size: size,
|
|
22535
22535
|
color: color
|
|
@@ -22694,13 +22694,13 @@ DropDown.propTypes = {
|
|
|
22694
22694
|
|
|
22695
22695
|
var _excluded = ["duration", "delay", "children"];
|
|
22696
22696
|
|
|
22697
|
-
var _templateObject$
|
|
22697
|
+
var _templateObject$n, _templateObject2$i;
|
|
22698
22698
|
|
|
22699
22699
|
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
22700
22700
|
|
|
22701
22701
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
22702
|
-
var fadeIn = keyframes$2(_templateObject$
|
|
22703
|
-
var Wrapper$2 = newStyled.div(_templateObject2$
|
|
22702
|
+
var fadeIn = keyframes$2(_templateObject$n || (_templateObject$n = _taggedTemplateLiteral__default['default'](["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"])));
|
|
22703
|
+
var Wrapper$2 = newStyled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteral__default['default'](["\n @media (prefers-reduced-motion: no-preference) {\n animation-name: ", ";\n animation-fill-mode: backwards;\n }\n"])), fadeIn);
|
|
22704
22704
|
|
|
22705
22705
|
var FadeIn = function FadeIn(_ref) {
|
|
22706
22706
|
var _ref$duration = _ref.duration,
|
|
@@ -22718,7 +22718,7 @@ var FadeIn = function FadeIn(_ref) {
|
|
|
22718
22718
|
}), children);
|
|
22719
22719
|
};
|
|
22720
22720
|
|
|
22721
|
-
var _templateObject$
|
|
22721
|
+
var _templateObject$m, _templateObject2$h, _templateObject3$c, _templateObject4$a, _templateObject5$a, _templateObject6$8, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject10$6, _DropdownLookup$propT;
|
|
22722
22722
|
|
|
22723
22723
|
var paddingBySize$a = function paddingBySize(size) {
|
|
22724
22724
|
if (size === "small") return "0.325rem 0.375rem";
|
|
@@ -22732,8 +22732,8 @@ var heightBySize$b = function heightBySize(size) {
|
|
|
22732
22732
|
if (size === "large") return "2.25rem";
|
|
22733
22733
|
};
|
|
22734
22734
|
|
|
22735
|
-
var spin$2 = keyframes$2(_templateObject$
|
|
22736
|
-
var Container$
|
|
22735
|
+
var spin$2 = keyframes$2(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral__default['default'](["\n 100% {\n transform: rotate(360deg);\n }\n\n 0% {\n transform: rotate(0deg);\n }\n"])));
|
|
22736
|
+
var Container$j = newStyled.div(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteral__default['default'](["\n display: inline-block;\n position: relative;\n margin: 0;\n padding: 0;\n width: 100%;\n border-bottom: 0.125rem solid\n ", ";\n min-height: ", ";\n max-height: ", ";\n transition: all 250ms ease;\n border-radius: 0.125rem;\n background-color: ", ";\n"])), function (props) {
|
|
22737
22737
|
return props.disabled ? props.theme.palette.gray[900] : props.theme.palette[props.color].main;
|
|
22738
22738
|
}, function (props) {
|
|
22739
22739
|
return heightBySize$b(props.size);
|
|
@@ -22959,7 +22959,7 @@ var DropdownLookup = function DropdownLookup(props) {
|
|
|
22959
22959
|
}
|
|
22960
22960
|
};
|
|
22961
22961
|
|
|
22962
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
22962
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$j, themeProps, /*#__PURE__*/React__default['default'].createElement(Inner$4, themeProps, /*#__PURE__*/React__default['default'].createElement(InputContainer$2, themeProps, /*#__PURE__*/React__default['default'].createElement(Input$3, _extends__default['default']({}, themeProps, {
|
|
22963
22963
|
ref: InputRef,
|
|
22964
22964
|
autoComplete: "off",
|
|
22965
22965
|
id: id,
|
|
@@ -23019,7 +23019,7 @@ DropdownLookup.propTypes = (_DropdownLookup$propT = {
|
|
|
23019
23019
|
onChange: PropTypes__default['default'].func
|
|
23020
23020
|
}, _defineProperty__default['default'](_DropdownLookup$propT, "load", PropTypes__default['default'].func), _defineProperty__default['default'](_DropdownLookup$propT, "clear", PropTypes__default['default'].func), _defineProperty__default['default'](_DropdownLookup$propT, "className", PropTypes__default['default'].string), _defineProperty__default['default'](_DropdownLookup$propT, "initialValue", PropTypes__default['default'].object), _defineProperty__default['default'](_DropdownLookup$propT, "notItemsFoundText", PropTypes__default['default'].string), _defineProperty__default['default'](_DropdownLookup$propT, "size", PropTypes__default['default'].oneOf(["small", "medium", "large"])), _defineProperty__default['default'](_DropdownLookup$propT, "color", PropTypes__default['default'].oneOf(["primary", "secondary", "success", "error", "warning", "gray"])), _DropdownLookup$propT);
|
|
23021
23021
|
|
|
23022
|
-
var _templateObject$
|
|
23022
|
+
var _templateObject$l;
|
|
23023
23023
|
|
|
23024
23024
|
var getPadding = function getPadding(size) {
|
|
23025
23025
|
if (size === "small") return "0.4125rem 0.34375rem";
|
|
@@ -23033,7 +23033,7 @@ var heightBySize$a = function heightBySize(size) {
|
|
|
23033
23033
|
if (size === "large") return "max-height: 2.375rem; min-height: 2.375rem;";
|
|
23034
23034
|
};
|
|
23035
23035
|
|
|
23036
|
-
var Span$1 = newStyled.span(_templateObject$
|
|
23036
|
+
var Span$1 = newStyled.span(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral__default['default'](["\n display: inline-block;\n box-sizing: border-box;\n background-color: inherit;\n font-size: ", ";\n padding: ", ";\n color: ", ";\n ", "\n"])), function (props) {
|
|
23037
23037
|
return props.theme.typography[props.size].fontSize;
|
|
23038
23038
|
}, function (props) {
|
|
23039
23039
|
return getPadding(props.size);
|
|
@@ -23290,7 +23290,7 @@ var Icon = newStyled.i(function (props) {
|
|
|
23290
23290
|
fontSize: props.theme.typography[props.size].fontSize
|
|
23291
23291
|
};
|
|
23292
23292
|
});
|
|
23293
|
-
var Container$
|
|
23293
|
+
var Container$i = newStyled.div(function (props) {
|
|
23294
23294
|
return {
|
|
23295
23295
|
display: "flex",
|
|
23296
23296
|
fontFamily: props.theme.typography.fontFamily,
|
|
@@ -23374,7 +23374,7 @@ var PasswordInput = /*#__PURE__*/React__default['default'].forwardRef(function (
|
|
|
23374
23374
|
size: size,
|
|
23375
23375
|
color: color
|
|
23376
23376
|
};
|
|
23377
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(Container$
|
|
23377
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(Container$i, themeProps, /*#__PURE__*/React__default['default'].createElement(Input$2, _extends__default['default']({}, themeProps, {
|
|
23378
23378
|
type: locked ? "password" : "text",
|
|
23379
23379
|
autoComplete: autoComplete ? "true" : "false",
|
|
23380
23380
|
value: value,
|
|
@@ -31314,11 +31314,11 @@ var AnimatePresence = function (_a) {
|
|
|
31314
31314
|
: childrenToRender.map(function (child) { return React.cloneElement(child); })));
|
|
31315
31315
|
};
|
|
31316
31316
|
|
|
31317
|
-
var _templateObject$
|
|
31318
|
-
var Overlay = newStyled(motion.div)(_templateObject$
|
|
31317
|
+
var _templateObject$k, _templateObject2$g;
|
|
31318
|
+
var Overlay = newStyled(motion.div)(_templateObject$k || (_templateObject$k = _taggedTemplateLiteral__default['default'](["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.3);\n z-index: ", ";\n"])), function (props) {
|
|
31319
31319
|
return props.zIndex;
|
|
31320
31320
|
});
|
|
31321
|
-
var ModalContainer = newStyled(motion.div)(_templateObject2$
|
|
31321
|
+
var ModalContainer = newStyled(motion.div)(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteral__default['default'](["\n width: 50%;\n background-color: white;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: ", ";\n border-radius: 0.2rem;\n background: white;\n z-index: ", ";\n"])), function (props) {
|
|
31322
31322
|
return props.width;
|
|
31323
31323
|
}, function (props) {
|
|
31324
31324
|
return props.zIndex;
|
|
@@ -31354,7 +31354,9 @@ var Content$4 = newStyled.div(function (props) {
|
|
|
31354
31354
|
padding: "0.3125rem",
|
|
31355
31355
|
border: "0.065rem solid ".concat(props.theme.palette.gray[600]),
|
|
31356
31356
|
borderTop: props.basic ? "none" : "0.065rem solid ".concat(props.theme.palette.gray[600]),
|
|
31357
|
-
borderRadius: "0 0 0.2rem 0.2rem"
|
|
31357
|
+
borderRadius: "0 0 0.2rem 0.2rem",
|
|
31358
|
+
maxHeight: "calc(100vh - 220px)",
|
|
31359
|
+
overflowY: "auto"
|
|
31358
31360
|
};
|
|
31359
31361
|
});
|
|
31360
31362
|
|
|
@@ -31447,7 +31449,7 @@ Modal$1.propTypes = {
|
|
|
31447
31449
|
color: PropTypes__default['default'].oneOf(["primary", "secondary", "success", "error", "warning", "gray", "background"])
|
|
31448
31450
|
};
|
|
31449
31451
|
|
|
31450
|
-
var Container$
|
|
31452
|
+
var Container$h = newStyled.div(function (props) {
|
|
31451
31453
|
return {
|
|
31452
31454
|
position: "fixed",
|
|
31453
31455
|
alignItems: "center",
|
|
@@ -31550,7 +31552,7 @@ var ConfirmationForm = function ConfirmationForm(props) {
|
|
|
31550
31552
|
if (clickOutsideToClose || !showHeader) onClose();
|
|
31551
31553
|
};
|
|
31552
31554
|
|
|
31553
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
31555
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$h, _extends__default['default']({}, themeProps, {
|
|
31554
31556
|
className: className,
|
|
31555
31557
|
onClick: onClickOutsideModal
|
|
31556
31558
|
}), /*#__PURE__*/React__default['default'].createElement(Modal, themeProps, showHeader ? /*#__PURE__*/React__default['default'].createElement(Header, themeProps, /*#__PURE__*/React__default['default'].createElement(Title, themeProps, header), /*#__PURE__*/React__default['default'].createElement(CloseButton, themeProps, /*#__PURE__*/React__default['default'].createElement(Button$1, {
|
|
@@ -31621,12 +31623,12 @@ var css_248z$6 = ".styles-module_dropbtn__3BuA0 {\n font-size: var(--base-addit
|
|
|
31621
31623
|
var styles$1 = {"dropbtn":"styles-module_dropbtn__3BuA0","disabled":"styles-module_disabled__3pCU6","dropdownContent":"styles-module_dropdownContent__2g5rN","dropdown":"styles-module_dropdown__zPTAO","linkInnerSpan":"styles-module_linkInnerSpan__2Gjny","linkIconSpan":"styles-module_linkIconSpan__1IQ0O","iconSpan":"styles-module_iconSpan__2IYf9","mymove":"styles-module_mymove__2DflL"};
|
|
31622
31624
|
styleInject(css_248z$6);
|
|
31623
31625
|
|
|
31624
|
-
var _templateObject$
|
|
31626
|
+
var _templateObject$j, _templateObject2$f, _templateObject3$b;
|
|
31625
31627
|
|
|
31626
|
-
var Dropdown = newStyled.div(_templateObject$
|
|
31628
|
+
var Dropdown = newStyled.div(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral__default['default'](["\n display: ", ";\n position: absolute;\n background-color: white;\n min-width: 160px;\n border-radius: 3.5px;\n box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);\n z-index: 1;\n"])), function (props) {
|
|
31627
31629
|
return props.show ? "block" : "none";
|
|
31628
31630
|
});
|
|
31629
|
-
var ItemWrapper$2 = newStyled.div(_templateObject2$
|
|
31631
|
+
var ItemWrapper$2 = newStyled.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteral__default['default'](["\n padding: 2px;\n"])));
|
|
31630
31632
|
var Item$4 = newStyled.a(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteral__default['default'](["\n background-color: white;\n color: ", ";\n padding: 6px 6px;\n text-decoration: none;\n display: block;\n font-size: 12px;\n padding: 2px;\n\n &:hover {\n background-color: whitesmoke;\n color: ", ";\n }\n"])), theme.palette.primary.main, theme.palette.primary.light); //============================================================
|
|
31631
31633
|
|
|
31632
31634
|
var DropdownMenu = function DropdownMenu(props) {
|
|
@@ -31703,13 +31705,13 @@ var freeze = function freeze(dependcies) {
|
|
|
31703
31705
|
return freeze;
|
|
31704
31706
|
};
|
|
31705
31707
|
|
|
31706
|
-
var _templateObject$
|
|
31707
|
-
var Container$
|
|
31708
|
+
var _templateObject$i, _templateObject2$e;
|
|
31709
|
+
var Container$g = newStyled.div(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral__default['default'](["\n display: flex;\n flex-direction: row;\n justify-content: left;\n align-items: center;\n font-size: ", ";\n font-family: ", ";\n padding: 0px 8px;\n"])), function (props) {
|
|
31708
31710
|
return props.theme.typography.small.fontSize;
|
|
31709
31711
|
}, function (props) {
|
|
31710
31712
|
return props.theme.typography.fontFamily;
|
|
31711
31713
|
});
|
|
31712
|
-
var Item$3 = newStyled.div(_templateObject2$
|
|
31714
|
+
var Item$3 = newStyled.div(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteral__default['default'](["\n padding-left: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
|
|
31713
31715
|
return props.first ? "0" : "6px";
|
|
31714
31716
|
});
|
|
31715
31717
|
|
|
@@ -31786,7 +31788,7 @@ var FormViewMovement = function FormViewMovement(props) {
|
|
|
31786
31788
|
})));
|
|
31787
31789
|
};
|
|
31788
31790
|
|
|
31789
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
31791
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$g, themeProps, renderFirst(), renderPrevious(), renderNext(), renderLast());
|
|
31790
31792
|
};
|
|
31791
31793
|
|
|
31792
31794
|
FormViewMovement.defaultProps = {
|
|
@@ -49026,13 +49028,13 @@ var TableSelectionType = {
|
|
|
49026
49028
|
MULTIPLE: "multiple"
|
|
49027
49029
|
};
|
|
49028
49030
|
|
|
49029
|
-
var _templateObject$
|
|
49030
|
-
var Container$
|
|
49031
|
+
var _templateObject$h, _templateObject2$d, _templateObject3$a, _templateObject4$9, _templateObject5$9, _templateObject6$7;
|
|
49032
|
+
var Container$f = newStyled.div(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral__default['default'](["\n display: flex;\n flex-direction: row;\n justify-content: left;\n align-items: center;\n\n border-radius: 3px;\n padding: 4px;\n font-size: ", ";\n font-family: ", ";\n"])), function (props) {
|
|
49031
49033
|
return props.theme.typography.small.fontSize;
|
|
49032
49034
|
}, function (props) {
|
|
49033
49035
|
return props.theme.typography.fontFamily;
|
|
49034
49036
|
});
|
|
49035
|
-
var Item$2 = newStyled.div(_templateObject2$
|
|
49037
|
+
var Item$2 = newStyled.div(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral__default['default'](["\n padding-left: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
|
|
49036
49038
|
return props.first ? "0" : "6px";
|
|
49037
49039
|
});
|
|
49038
49040
|
var ExportItem = newStyled.div(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteral__default['default'](["\n padding-left: 6px;\n display: flex;\n align-items: center;\n margin-left: auto;\n"])));
|
|
@@ -49206,7 +49208,7 @@ var Pagination = function Pagination(props) {
|
|
|
49206
49208
|
})));
|
|
49207
49209
|
};
|
|
49208
49210
|
|
|
49209
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
49211
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$f, themeProps, renderFirst(), renderPrevious(), renderCurrentPage(), renderNext(), renderLast(), renderPageSize(), renderRowInformation(), renderExportButtons());
|
|
49210
49212
|
};
|
|
49211
49213
|
|
|
49212
49214
|
Pagination.defaultProps = {
|
|
@@ -49271,9 +49273,9 @@ Pagination.propTypes = {
|
|
|
49271
49273
|
color: PropTypes__default['default'].oneOf(["primary", "secondary", "success", "error", "warning", "gray"])
|
|
49272
49274
|
};
|
|
49273
49275
|
|
|
49274
|
-
var _templateObject$
|
|
49275
|
-
var Container$
|
|
49276
|
-
var Wrapper$1 = newStyled.div(_templateObject2$
|
|
49276
|
+
var _templateObject$g, _templateObject2$c, _templateObject3$9, _templateObject4$8, _templateObject5$8, _templateObject6$6, _templateObject7$5, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$4, _templateObject12$4;
|
|
49277
|
+
var Container$e = newStyled.div(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral__default['default'](["\n border-radius: 3px;\n font-size: ", ";\n font-family: ", ";\n"])), theme.typography.small.fontSize, theme.typography.fontFamily);
|
|
49278
|
+
var Wrapper$1 = newStyled.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteral__default['default'](["\n display: block;\n overflow-x: auto;\n white-space: nowrap;\n"])));
|
|
49277
49279
|
var TableTable$1 = newStyled.table(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteral__default['default'](["\n border-collapse: collapse;\n width: 100%;\n"])));
|
|
49278
49280
|
var TableHead$1 = newStyled.thead(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteral__default['default'](["\n color: ", ";\n border-top: 1px solid #80808025;\n"])), theme.palette.primary.textDark);
|
|
49279
49281
|
var TableHeadRow$1 = newStyled.tr(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteral__default['default'](["\n border-bottom: 1px solid #80808025;\n"])));
|
|
@@ -49321,7 +49323,9 @@ var TableView = function TableView(props) {
|
|
|
49321
49323
|
OnHeaderClick = _props$Config$OnHeade === void 0 ? function () {} : _props$Config$OnHeade,
|
|
49322
49324
|
ReadOnly = _props$Config.ReadOnly,
|
|
49323
49325
|
_props$Config$IsLooku = _props$Config.IsLookup,
|
|
49324
|
-
IsLookup = _props$Config$IsLooku === void 0 ? false : _props$Config$IsLooku
|
|
49326
|
+
IsLookup = _props$Config$IsLooku === void 0 ? false : _props$Config$IsLooku,
|
|
49327
|
+
_props$Config$LookupT = _props$Config.LookupTakeItem,
|
|
49328
|
+
LookupTakeItem = _props$Config$LookupT === void 0 ? function () {} : _props$Config$LookupT;
|
|
49325
49329
|
var _props$Localization = props.Localization,
|
|
49326
49330
|
Localization = _props$Localization === void 0 ? {} : _props$Localization;
|
|
49327
49331
|
props.Export;
|
|
@@ -49375,7 +49379,16 @@ var TableView = function TableView(props) {
|
|
|
49375
49379
|
ChangeToFormView(dataItem);
|
|
49376
49380
|
} : function () {};
|
|
49377
49381
|
if (!EnableFormView) onClick = function onClick() {};
|
|
49378
|
-
if (!EnableSelection || ReadOnly
|
|
49382
|
+
if (!EnableSelection || ReadOnly) onClick = function onClick() {};
|
|
49383
|
+
|
|
49384
|
+
if (IsLookup) {
|
|
49385
|
+
onClick = function onClick() {
|
|
49386
|
+
if (!IsLoading) {
|
|
49387
|
+
LookupTakeItem(dataItem);
|
|
49388
|
+
}
|
|
49389
|
+
};
|
|
49390
|
+
}
|
|
49391
|
+
|
|
49379
49392
|
var cellData = def.isObject === true ? dataItem[def.accessor][def.objectAccessor] : dataItem[def.accessor];
|
|
49380
49393
|
return /*#__PURE__*/React__default['default'].createElement(TableBodyCell$1, {
|
|
49381
49394
|
key: tabIndex,
|
|
@@ -49384,7 +49397,22 @@ var TableView = function TableView(props) {
|
|
|
49384
49397
|
};
|
|
49385
49398
|
|
|
49386
49399
|
var renderSelectionCell = function renderSelectionCell(dataItem, selected, rowIndex) {
|
|
49387
|
-
if (
|
|
49400
|
+
if (IsLookup) {
|
|
49401
|
+
return /*#__PURE__*/React__default['default'].createElement(TableBodyCell$1, {
|
|
49402
|
+
selectionCell: true,
|
|
49403
|
+
key: -1
|
|
49404
|
+
}, /*#__PURE__*/React__default['default'].createElement(Button$1, {
|
|
49405
|
+
inverted: true,
|
|
49406
|
+
onClick: function onClick() {
|
|
49407
|
+
if (!IsLoading) {
|
|
49408
|
+
LookupTakeItem(dataItem);
|
|
49409
|
+
}
|
|
49410
|
+
},
|
|
49411
|
+
icon: "arrow-right"
|
|
49412
|
+
}));
|
|
49413
|
+
}
|
|
49414
|
+
|
|
49415
|
+
if (!EnableSelection || ReadOnly || IsLookup) return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
49388
49416
|
return /*#__PURE__*/React__default['default'].createElement(TableBodyCell$1, {
|
|
49389
49417
|
selectionCell: true,
|
|
49390
49418
|
key: -1
|
|
@@ -49431,6 +49459,10 @@ var TableView = function TableView(props) {
|
|
|
49431
49459
|
};
|
|
49432
49460
|
|
|
49433
49461
|
var renderSelectAllHeaderCell = function renderSelectAllHeaderCell() {
|
|
49462
|
+
if (IsLookup) return /*#__PURE__*/React__default['default'].createElement(TableHeadCell$1, {
|
|
49463
|
+
selectionCell: true,
|
|
49464
|
+
key: -1
|
|
49465
|
+
});
|
|
49434
49466
|
if (!EnableSelection || ReadOnly || IsLookup && SelectionType === TableSelectionType.SINGLE) return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
49435
49467
|
if (SelectedEntirePage && Localization.DeselectAll) ;
|
|
49436
49468
|
if (!SelectedEntirePage && Localization.SelectAll) ;
|
|
@@ -49446,7 +49478,7 @@ var TableView = function TableView(props) {
|
|
|
49446
49478
|
}));
|
|
49447
49479
|
};
|
|
49448
49480
|
|
|
49449
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
49481
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$e, null, /*#__PURE__*/React__default['default'].createElement(Wrapper$1, null, /*#__PURE__*/React__default['default'].createElement(TableTable$1, {
|
|
49450
49482
|
cellSpacing: 0
|
|
49451
49483
|
}, /*#__PURE__*/React__default['default'].createElement(TableHead$1, null, /*#__PURE__*/React__default['default'].createElement(TableHeadRow$1, null, renderSelectAllHeaderCell(), Columns.filter(function (x) {
|
|
49452
49484
|
return x.hide !== true;
|
|
@@ -49455,7 +49487,7 @@ var TableView = function TableView(props) {
|
|
|
49455
49487
|
}))), /*#__PURE__*/React__default['default'].createElement(TableBody$1, null, renderBody()))));
|
|
49456
49488
|
};
|
|
49457
49489
|
|
|
49458
|
-
var _templateObject$
|
|
49490
|
+
var _templateObject$f, _templateObject2$b;
|
|
49459
49491
|
|
|
49460
49492
|
var heightBySize$5 = function heightBySize(size) {
|
|
49461
49493
|
if (size === "small") return "\n width: 1.4rem;\n height: 1.4rem;\n ";
|
|
@@ -49463,8 +49495,8 @@ var heightBySize$5 = function heightBySize(size) {
|
|
|
49463
49495
|
if (size === "large") return "\n width: 1.8rem;\n height: 1.8rem;\n ";
|
|
49464
49496
|
};
|
|
49465
49497
|
|
|
49466
|
-
var spin$1 = keyframes$2(_templateObject$
|
|
49467
|
-
var StyledSpinner = newStyled.div(_templateObject2$
|
|
49498
|
+
var spin$1 = keyframes$2(_templateObject$f || (_templateObject$f = _taggedTemplateLiteral__default['default'](["\n to {\n transform: rotate(360deg);\n }\n"])));
|
|
49499
|
+
var StyledSpinner = newStyled.div(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteral__default['default'](["\n display: inline-block;\n ", "\n border: 0.3125rem solid ", ";\n border-radius: 50%;\n border-top-color: ", ";\n animation: ", " 0.8s ease-in-out infinite;\n"])), function (props) {
|
|
49468
49500
|
return heightBySize$5(props.size);
|
|
49469
49501
|
}, function (props) {
|
|
49470
49502
|
return props.theme.palette[props.color].lighter;
|
|
@@ -49503,7 +49535,7 @@ Spinner.propTypes = {
|
|
|
49503
49535
|
var css_248z$4 = ".fade1-enter {\n opacity: 0;\n}\n.fade1-exit {\n opacity: 1;\n}\n.fade1-enter-active {\n opacity: 1;\n}\n.fade1-exit-active {\n opacity: 0;\n}\n.fade1-enter-active,\n.fade1-exit-active {\n transition: opacity 330ms;\n}\n\n.fade2-enter {\n opacity: 0;\n}\n.fade2-exit {\n opacity: 1;\n}\n.fade2-enter-active {\n opacity: 1;\n}\n.fade2-exit-active {\n opacity: 0;\n}\n.fade2-enter-active,\n.fade2-exit-active {\n transition: opacity 330ms;\n}\n";
|
|
49504
49536
|
styleInject(css_248z$4);
|
|
49505
49537
|
|
|
49506
|
-
var _templateObject$
|
|
49538
|
+
var _templateObject$e, _templateObject2$a, _templateObject3$8, _templateObject4$7, _templateObject5$7, _templateObject6$5, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject10$4, _templateObject11$3, _templateObject12$3, _templateObject13$2;
|
|
49507
49539
|
|
|
49508
49540
|
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
49509
49541
|
|
|
@@ -49533,10 +49565,10 @@ var getBorderSyle$1 = function getBorderSyle(borderStyle, read, theme, color) {
|
|
|
49533
49565
|
return css;
|
|
49534
49566
|
};
|
|
49535
49567
|
|
|
49536
|
-
var Container$
|
|
49568
|
+
var Container$d = newStyled.div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteral__default['default'](["\n box-shadow: ", ";\n border-radius: 3px;\n padding: 0 4px;\n"])), function (props) {
|
|
49537
49569
|
return props.shadow === false ? "0" : "0 0 12px #bebebe";
|
|
49538
49570
|
});
|
|
49539
|
-
var TableContainer$1 = newStyled.div(_templateObject2$
|
|
49571
|
+
var TableContainer$1 = newStyled.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral__default['default'](["\n font-family: var(--font-base-ubuntu);\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n"])));
|
|
49540
49572
|
var PaginationContainer$1 = newStyled.div(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteral__default['default'](["\n border-top: 1px solid #80808025;\n"])));
|
|
49541
49573
|
var FormContainer$2 = newStyled.div(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteral__default['default'](["\n height: 100%;\n // overflow-y: auto;\n // max-height: calc(100vh - 120px);\n border-radius: 3px;\n\n ", "\n"])), function (props) {
|
|
49542
49574
|
return getBorderSyle$1(props.borderStyle, props.read, props.theme, props.color);
|
|
@@ -49598,12 +49630,10 @@ var DataView = function DataView(props) {
|
|
|
49598
49630
|
GoToAdd = _props$GoToAdd === void 0 ? emptyFunc : _props$GoToAdd;
|
|
49599
49631
|
props.GoToAddWithCopy;
|
|
49600
49632
|
var _props$DiscardEdited = props.DiscardEdited,
|
|
49601
|
-
DiscardEdited = _props$DiscardEdited === void 0 ? emptyFunc : _props$DiscardEdited
|
|
49602
|
-
|
|
49603
|
-
|
|
49604
|
-
_props$
|
|
49605
|
-
ClearSelectedData = _props$ClearSelectedD === void 0 ? emptyFunc : _props$ClearSelectedD,
|
|
49606
|
-
_props$Localization = props.Localization,
|
|
49633
|
+
DiscardEdited = _props$DiscardEdited === void 0 ? emptyFunc : _props$DiscardEdited;
|
|
49634
|
+
props.SetSelectedData;
|
|
49635
|
+
props.ClearSelectedData;
|
|
49636
|
+
var _props$Localization = props.Localization,
|
|
49607
49637
|
Localization = _props$Localization === void 0 ? {} : _props$Localization,
|
|
49608
49638
|
_props$Export = props.Export,
|
|
49609
49639
|
Export = _props$Export === void 0 ? function () {} : _props$Export,
|
|
@@ -49679,15 +49709,15 @@ var DataView = function DataView(props) {
|
|
|
49679
49709
|
size: size,
|
|
49680
49710
|
color: color
|
|
49681
49711
|
}; //======== LOOKUP ========
|
|
49682
|
-
|
|
49683
|
-
|
|
49684
|
-
|
|
49685
|
-
|
|
49686
|
-
|
|
49687
|
-
|
|
49688
|
-
|
|
49689
|
-
|
|
49690
|
-
|
|
49712
|
+
// useEffect(() => {
|
|
49713
|
+
// if (General.IsLookup) SetSelectedData(Lookup.SelectedData);
|
|
49714
|
+
// }, [Lookup.SelectedData]);
|
|
49715
|
+
// useEffect(() => {
|
|
49716
|
+
// return function cleanup() {
|
|
49717
|
+
// if (General.IsLookup) ClearSelectedData();
|
|
49718
|
+
// };
|
|
49719
|
+
// }, []);
|
|
49720
|
+
//======== CONFIGS ========
|
|
49691
49721
|
|
|
49692
49722
|
var formViewMovementConfig = {
|
|
49693
49723
|
Dirty: Form.Dirty,
|
|
@@ -49719,6 +49749,9 @@ var DataView = function DataView(props) {
|
|
|
49719
49749
|
SelectedData: Table.SelectedData,
|
|
49720
49750
|
ChangeToFormView: ChangeToFormView,
|
|
49721
49751
|
//---------------------------
|
|
49752
|
+
IsLookup: General.IsLookup,
|
|
49753
|
+
LookupTakeItem: Lookup.LookupTakeItem ? Lookup.LookupTakeItem : function () {},
|
|
49754
|
+
//---------------------------
|
|
49722
49755
|
EnableOrdering: Options.EnableOrdering,
|
|
49723
49756
|
Column: Ordering.Column,
|
|
49724
49757
|
Accessor: Ordering.Accessor,
|
|
@@ -49749,27 +49782,6 @@ var DataView = function DataView(props) {
|
|
|
49749
49782
|
if (Form.Mode === FormMode.ADD) return "add";
|
|
49750
49783
|
}; //======== RENDER ========
|
|
49751
49784
|
|
|
49752
|
-
|
|
49753
|
-
var renderLookupTakeValues = function renderLookupTakeValues() {
|
|
49754
|
-
if (General.IsLookup) {
|
|
49755
|
-
var loading = freezeLoading([Table.SelectedData.length === 0]);
|
|
49756
|
-
return /*#__PURE__*/React__default['default'].createElement(FlexItem$1, null, /*#__PURE__*/React__default['default'].createElement(Button$1, {
|
|
49757
|
-
tooltip: Localization.TakeValues,
|
|
49758
|
-
onClick: function onClick() {
|
|
49759
|
-
if (!loading) {
|
|
49760
|
-
Lookup.TakeValues(Table.SelectedData);
|
|
49761
|
-
if (ClearSelectedData) ClearSelectedData();
|
|
49762
|
-
}
|
|
49763
|
-
},
|
|
49764
|
-
disabled: Table.SelectedData.length === 0,
|
|
49765
|
-
icon: "arrow-circle-down",
|
|
49766
|
-
inverted: true
|
|
49767
|
-
}));
|
|
49768
|
-
}
|
|
49769
|
-
|
|
49770
|
-
return false;
|
|
49771
|
-
};
|
|
49772
|
-
|
|
49773
49785
|
var renderContextMenu = function renderContextMenu() {
|
|
49774
49786
|
if (Options.EnableActions && General.CurrentView === ViewType.TABLE_VIEW && Table.Actions && Table.Actions.length > 0) {
|
|
49775
49787
|
return /*#__PURE__*/React__default['default'].createElement(FlexItem$1, null, /*#__PURE__*/React__default['default'].createElement(DropdownMenu, {
|
|
@@ -49895,7 +49907,7 @@ var DataView = function DataView(props) {
|
|
|
49895
49907
|
var x6 = General.CurrentView !== "TableView" ? false : true;
|
|
49896
49908
|
var x7 = General.IsLookup && Table.SelectionType === "multiple" ? true : false;
|
|
49897
49909
|
var x8 = Options.EnableActions && General.CurrentView === ViewType.TABLE_VIEW && Table.Actions && Table.Actions.length > 0;
|
|
49898
|
-
if (x1 || x2 || x3 || x4 || x5 || x6 || x7 || x8) return /*#__PURE__*/React__default['default'].createElement(HeaderContainer$1, null, renderChangeToTableView(), renderDeleteSelectedButton(), renderGoToAddButton(), renderFormViewMovement(), renderSwitchToEditModeButton(), renderRefreshButton(),
|
|
49910
|
+
if (x1 || x2 || x3 || x4 || x5 || x6 || x7 || x8) return /*#__PURE__*/React__default['default'].createElement(HeaderContainer$1, null, renderChangeToTableView(), renderDeleteSelectedButton(), renderGoToAddButton(), renderFormViewMovement(), renderSwitchToEditModeButton(), renderRefreshButton(), renderContextMenu());
|
|
49899
49911
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
49900
49912
|
};
|
|
49901
49913
|
|
|
@@ -49947,7 +49959,7 @@ var DataView = function DataView(props) {
|
|
|
49947
49959
|
|
|
49948
49960
|
var renderComponent = function renderComponent() {
|
|
49949
49961
|
var key = General.CurrentView !== "TableView" && General.DataFromBackend;
|
|
49950
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
49962
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$d, _extends__default['default']({}, themeProps, {
|
|
49951
49963
|
shadow: Shadow
|
|
49952
49964
|
}), renderFiltering(), renderHeader(), /*#__PURE__*/React__default['default'].createElement(SwitchTransition$1, {
|
|
49953
49965
|
mode: "out-in"
|
|
@@ -49982,8 +49994,8 @@ DataView.propTypes = {
|
|
|
49982
49994
|
color: PropTypes__default['default'].string
|
|
49983
49995
|
};
|
|
49984
49996
|
|
|
49985
|
-
var _templateObject$
|
|
49986
|
-
var Item$1 = newStyled.div(_templateObject$
|
|
49997
|
+
var _templateObject$d;
|
|
49998
|
+
var Item$1 = newStyled.div(_templateObject$d || (_templateObject$d = _taggedTemplateLiteral__default['default'](["\n padding-left: 0.1875rem;\n padding-right: 0.25rem;\n"])));
|
|
49987
49999
|
|
|
49988
50000
|
var FormMovement = function FormMovement(props) {
|
|
49989
50001
|
//====== PROPS ======
|
|
@@ -50093,9 +50105,9 @@ FormMovement.propTypes = {
|
|
|
50093
50105
|
var css_248z$3 = "@charset \"UTF-8\";\n@import \"https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap\";\n\n:root {\n /* BASE COLORS */\n --color-base-blue: #00537a;\n --color-base-blue-darker: #003b57;\n --color-base-blue-lighter: #006999;\n --color-base-gray: #a2a5ab;\n --color-base-gray-darker: #777a80;\n --color-base-gray-lighter: #dee1e6;\n --color-base-gray-lightest: #f0f2f7;\n --color-base-green: #2a963c;\n --color-base-green-darker: #21732f;\n --color-base-green-ligher: #3eb051;\n --color-base-red: #e0223e;\n --color-base-red-darker: #e3566b;\n --color-base-red-ligher: #9c1f32;\n --color-base-dirty-white: #fcfcfc;\n --color-base-white: white;\n --color-base-backgroud: #dceff5;\n\n /* BASE FONTS */\n --font-base-ubuntu: \"Ubuntu\", sans-serif;\n --font-size-base: 14px;\n\n /* DISABLED */\n --disabled-bg-color: #dedede;\n --disabled-text-color: #666666;\n\n /* TRANSITIONS */\n --transition-base-duration: 220ms;\n}\n\n.styles-module_baseContainer__38IbG {\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 1px;\n background-color: inherit;\n background: inherit;\n color: inherit;\n width: max-content;\n font-family: var(--font-base-ubuntu);\n}\n\n.styles-module_baseContainerWithSideLabel__2emzZ {\n width: min-content;\n display: flex;\n flex-direction: row;\n justify-content: center;\n padding: 1px;\n background-color: inherit;\n background: inherit;\n color: inherit;\n width: max-content;\n font-family: var(--font-base-ubuntu);\n}\n\n.styles-module_baseContainerWithSideLabel__2emzZ .styles-module_baseLabel__2rgVW {\n width: auto;\n}\n\n.styles-module_baseLabel__2rgVW {\n font-size: 0.8em;\n font-weight: 400;\n color: var(--color-base-gray-darker);\n width: 100%;\n display: flex;\n justify-content: left;\n align-items: flex-end;\n height: 1em;\n min-height: 1em;\n}\n\n.styles-module_baseInputHolder__3VF0D {\n border: 0px;\n height: 2em;\n min-height: 2em;\n width: 100%;\n}\n\n.styles-module_baseInputHolder__3VF0D > div {\n min-height: 100%;\n}\n\n.styles-module_baseInputHolder__3VF0D > div > div {\n min-height: 100%;\n}\n\n.styles-module_baseErrorText__M44G8 {\n font-size: 0.8em;\n font-weight: 400;\n color: var(--color-base-red);\n width: 100%;\n display: flex;\n justify-content: left;\n align-items: flex-start;\n height: 1em;\n min-height: 1em;\n}\n\n/*----------------- ICONS AND FONTS ------------------------*/\n\n.styles-module_lnc__16g9S {\n font-family: \"lnclines\";\n font-size: 12px;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n line-height: 1;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.styles-module_ubuntuFont__ybxMw {\n font-family: var(--font-base-ubuntu);\n}\n\n.styles-module_lnc_anchor__1mOUZ:before {\n content: \"\\61\";\n}\n.styles-module_lnc_armchair__1ya1K:before {\n content: \"\\62\";\n}\n.styles-module_lnc_arrow_contract__g0Nfy:before {\n content: \"\\63\";\n}\n.styles-module_lnc_arrow_down__3vJHh:before {\n content: \"\\64\";\n}\n.styles-module_lnc_arrow_down_up__35ACC:before {\n content: \"\\65\";\n}\n.styles-module_lnc_arrow_expand__wPIqf:before {\n content: \"\\66\";\n}\n.styles-module_lnc_arrow_left___DGbf:before {\n content: \"\\67\";\n}\n.styles-module_lnc_arrow_left_right__1PiwM:before {\n content: \"\\68\";\n}\n.styles-module_lnc_arrow_right__1buc1:before {\n content: \"\\69\";\n}\n.styles-module_lnc_arrow_right_left__A_6hC:before {\n content: \"\\6a\";\n}\n.styles-module_lnc_arrow_up__27fzF:before {\n content: \"\\6b\";\n}\n.styles-module_lnc_arrow_up_down__3XdKK:before {\n content: \"\\6c\";\n}\n.styles-module_lnc_arrow_x__2PHh1:before {\n content: \"\\6d\";\n}\n.styles-module_lnc_arrow_y__2IWUO:before {\n content: \"\\6e\";\n}\n.styles-module_lnc_at__2SfkV:before {\n content: \"\\6f\";\n}\n.styles-module_lnc_badge__1ar9m:before {\n content: \"\\70\";\n}\n.styles-module_lnc_battery_empty__2UtUR:before {\n content: \"\\71\";\n}\n.styles-module_lnc_battery_full__3iSFV:before {\n content: \"\\72\";\n}\n.styles-module_lnc_battery_halfempty__HJsq8:before {\n content: \"\\73\";\n}\n.styles-module_lnc_battery_halffull__34JQt:before {\n content: \"\\74\";\n}\n.styles-module_lnc_bed__2Bv8u:before {\n content: \"\\75\";\n}\n.styles-module_lnc_bell__3-99o:before {\n content: \"\\76\";\n}\n.styles-module_lnc_bill__2WK08:before {\n content: \"\\77\";\n}\n.styles-module_lnc_book__2uUqR:before {\n content: \"\\78\";\n}\n.styles-module_lnc_bookmark__3xtMI:before {\n content: \"\\79\";\n}\n.styles-module_lnc_box__1GQ6r:before {\n content: \"\\7a\";\n}\n.styles-module_lnc_box2__1mgu3:before {\n content: \"\\41\";\n}\n.styles-module_lnc_briefcase__1WEOE:before {\n content: \"\\42\";\n}\n.styles-module_lnc_brightness__2b3sQ:before {\n content: \"\\43\";\n}\n.styles-module_lnc_broom__lxEs9:before {\n content: \"\\44\";\n}\n.styles-module_lnc_browser__11uX3:before {\n content: \"\\45\";\n}\n.styles-module_lnc_browser_software__3WUtv:before {\n content: \"\\46\";\n}\n.styles-module_lnc_brush__6mPfK:before {\n content: \"\\47\";\n}\n.styles-module_lnc_bubble__19XCr:before {\n content: \"\\48\";\n}\n.styles-module_lnc_bubble_check__3EDz2:before {\n content: \"\\49\";\n}\n.styles-module_lnc_bubble_dots__3UiH_:before {\n content: \"\\4a\";\n}\n.styles-module_lnc_bubbles__3IArb:before {\n content: \"\\4b\";\n}\n.styles-module_lnc_building__2xoeI:before {\n content: \"\\4c\";\n}\n.styles-module_lnc_bulb__o7i2f:before {\n content: \"\\4d\";\n}\n.styles-module_lnc_calculations__1xUSk:before {\n content: \"\\4e\";\n}\n.styles-module_lnc_calendar__3FtsF:before {\n content: \"\\4f\";\n}\n.styles-module_lnc_cctv__3RxxA:before {\n content: \"\\50\";\n}\n.styles-module_lnc_chart__1vxPE:before {\n content: \"\\51\";\n}\n.styles-module_lnc_chart_down__3lKSV:before {\n content: \"\\52\";\n}\n.styles-module_lnc_chart_pie__-pJZV:before {\n content: \"\\53\";\n}\n.styles-module_lnc_chart_up__1ZO5x:before {\n content: \"\\54\";\n}\n.styles-module_lnc_check__1RPUp:before {\n content: \"\\55\";\n}\n.styles-module_lnc_checkbox__2Dzv0:before {\n content: \"\\56\";\n}\n.styles-module_lnc_clock__1_sBx:before {\n content: \"\\57\";\n}\n.styles-module_lnc_clone__3EVg8:before {\n content: \"\\58\";\n}\n.styles-module_lnc_cloud__3G0gK:before {\n content: \"\\59\";\n}\n.styles-module_lnc_cloud_download__3wjl3:before {\n content: \"\\5a\";\n}\n.styles-module_lnc_cloud_no__2_RSN:before {\n content: \"\\30\";\n}\n.styles-module_lnc_cloud_upload__UtjX8:before {\n content: \"\\31\";\n}\n.styles-module_lnc_code__83D7f:before {\n content: \"\\32\";\n}\n.styles-module_lnc_coffe__3lvps:before {\n content: \"\\33\";\n}\n.styles-module_lnc_cog__1cfYg:before {\n content: \"\\34\";\n}\n.styles-module_lnc_comparation__15_VM:before {\n content: \"\\35\";\n}\n.styles-module_lnc_contract__3vyx2:before {\n content: \"\\36\";\n}\n.styles-module_lnc_cpu__1ASGP:before {\n content: \"\\37\";\n}\n.styles-module_lnc_creditcard__2wdg_:before {\n content: \"\\38\";\n}\n.styles-module_lnc_cursor__1keXd:before {\n content: \"\\39\";\n}\n.styles-module_lnc_cut__3n_2y:before {\n content: \"\\21\";\n}\n.styles-module_lnc_dashboard__3nW31:before {\n content: \"\\22\";\n}\n.styles-module_lnc_database__2n8Gb:before {\n content: \"\\23\";\n}\n.styles-module_lnc_down__2C-R7:before {\n content: \"\\24\";\n}\n.styles-module_lnc_download__3W4eN:before {\n content: \"\\25\";\n}\n.styles-module_lnc_download2__FQJRc:before {\n content: \"\\26\";\n}\n.styles-module_lnc_drop__prcFy:before {\n content: \"\\27\";\n}\n.styles-module_lnc_earth__2kk6C:before {\n content: \"\\28\";\n}\n.styles-module_lnc_equal__1idc4:before {\n content: \"\\29\";\n}\n.styles-module_lnc_eraser__140Tm:before {\n content: \"\\2a\";\n}\n.styles-module_lnc_exchange__1F8Xe:before {\n content: \"\\2b\";\n}\n.styles-module_lnc_exchange2__TK1ey:before {\n content: \"\\2c\";\n}\n.styles-module_lnc_expand__SuCNT:before {\n content: \"\\2d\";\n}\n.styles-module_lnc_eyedropper__ztoSi:before {\n content: \"\\2e\";\n}\n.styles-module_lnc_file__1qiUG:before {\n content: \"\\2f\";\n}\n.styles-module_lnc_file_broken__1fRaz:before {\n content: \"\\3a\";\n}\n.styles-module_lnc_file_check__1Afkt:before {\n content: \"\\3b\";\n}\n.styles-module_lnc_file_download__B7cX-:before {\n content: \"\\3c\";\n}\n.styles-module_lnc_file_image__2li0v:before {\n content: \"\\3d\";\n}\n.styles-module_lnc_file_minus__2GUoy:before {\n content: \"\\3e\";\n}\n.styles-module_lnc_file_plus__1tiZy:before {\n content: \"\\3f\";\n}\n.styles-module_lnc_file_text__NwM9m:before {\n content: \"\\40\";\n}\n.styles-module_lnc_file_upload__1IwPA:before {\n content: \"\\5b\";\n}\n.styles-module_lnc_file_warning__2e102:before {\n content: \"\\5d\";\n}\n.styles-module_lnc_file_x__BSBn1:before {\n content: \"\\5e\";\n}\n.styles-module_lnc_filter__1gYeq:before {\n content: \"\\5f\";\n}\n.styles-module_lnc_fingerprint__L3_2j:before {\n content: \"\\60\";\n}\n.styles-module_lnc_flag__3FTpw:before {\n content: \"\\7b\";\n}\n.styles-module_lnc_flashdrive__11xkO:before {\n content: \"\\7c\";\n}\n.styles-module_lnc_folder__1mArN:before {\n content: \"\\7d\";\n}\n.styles-module_lnc_fragile__a_RLx:before {\n content: \"\\7e\";\n}\n.styles-module_lnc_glass__wBAnb:before {\n content: \"\\5c\";\n}\n.styles-module_lnc_grid__1B2cs:before {\n content: \"\\e000\";\n}\n.styles-module_lnc_grid_masonery__6vAwP:before {\n content: \"\\e001\";\n}\n.styles-module_lnc_harddrive__3HecB:before {\n content: \"\\e002\";\n}\n.styles-module_lnc_headphones__1IRid:before {\n content: \"\\e003\";\n}\n.styles-module_lnc_heart__30_Dc:before {\n content: \"\\e004\";\n}\n.styles-module_lnc_home__1LWG5:before {\n content: \"\\e005\";\n}\n.styles-module_lnc_image__3XWmh:before {\n content: \"\\e006\";\n}\n.styles-module_lnc_in__IuJWj:before {\n content: \"\\e007\";\n}\n.styles-module_lnc_inbox__E74SS:before {\n content: \"\\e008\";\n}\n.styles-module_lnc_infinity__1RvvQ:before {\n content: \"\\e009\";\n}\n.styles-module_lnc_info__z95Ob:before {\n content: \"\\e00a\";\n}\n.styles-module_lnc_injection__2IsuK:before {\n content: \"\\e00b\";\n}\n.styles-module_lnc_internet__cxoEO:before {\n content: \"\\e00c\";\n}\n.styles-module_lnc_internet2__3LMdv:before {\n content: \"\\e00d\";\n}\n.styles-module_lnc_intersect__39vbH:before {\n content: \"\\e00e\";\n}\n.styles-module_lnc_key__2y70L:before {\n content: \"\\e00f\";\n}\n.styles-module_lnc_laptop__34gQU:before {\n content: \"\\e010\";\n}\n.styles-module_lnc_layers__36j1J:before {\n content: \"\\e011\";\n}\n.styles-module_lnc_layout__3Nu0-:before {\n content: \"\\e012\";\n}\n.styles-module_lnc_leaf__TnTjW:before {\n content: \"\\e013\";\n}\n.styles-module_lnc_left__10F5v:before {\n content: \"\\e014\";\n}\n.styles-module_lnc_lifering__2xRtL:before {\n content: \"\\e015\";\n}\n.styles-module_lnc_link__1L7Lq:before {\n content: \"\\e016\";\n}\n.styles-module_lnc_list__3cGnx:before {\n content: \"\\e017\";\n}\n.styles-module_lnc_list2__1g9i8:before {\n content: \"\\e018\";\n}\n.styles-module_lnc_location__2K1vc:before {\n content: \"\\e019\";\n}\n.styles-module_lnc_lock_off__1pwfe:before {\n content: \"\\e01a\";\n}\n.styles-module_lnc_lock_on__R7CsM:before {\n content: \"\\e01b\";\n}\n.styles-module_lnc_magnet__1xUko:before {\n content: \"\\e01c\";\n}\n.styles-module_lnc_mail__1-4Wq:before {\n content: \"\\e01d\";\n}\n.styles-module_lnc_map__2G6fo:before {\n content: \"\\e01e\";\n}\n.styles-module_lnc_megaphone__1U1Tj:before {\n content: \"\\e01f\";\n}\n.styles-module_lnc_microphone__1NMns:before {\n content: \"\\e020\";\n}\n.styles-module_lnc_microphone_no__2RWUY:before {\n content: \"\\e021\";\n}\n.styles-module_lnc_microscope__2AQCZ:before {\n content: \"\\e022\";\n}\n.styles-module_lnc_minus__28NzW:before {\n content: \"\\e023\";\n}\n.styles-module_lnc_mobile__3U8Lo:before {\n content: \"\\e024\";\n}\n.styles-module_lnc_monitor__1FYh4:before {\n content: \"\\e025\";\n}\n.styles-module_lnc_move__2cnG4:before {\n content: \"\\e026\";\n}\n.styles-module_lnc_move2__2-1c-:before {\n content: \"\\e027\";\n}\n.styles-module_lnc_network__1MijV:before {\n content: \"\\e028\";\n}\n.styles-module_lnc_onoff__1ZOVJ:before {\n content: \"\\e029\";\n}\n.styles-module_lnc_out___Zvj0:before {\n content: \"\\e02a\";\n}\n.styles-module_lnc_pause__2GVgP:before {\n content: \"\\e02b\";\n}\n.styles-module_lnc_pencil__2agKN:before {\n content: \"\\e02c\";\n}\n.styles-module_lnc_pencil_ruler__24nqS:before {\n content: \"\\e02d\";\n}\n.styles-module_lnc_peper_plane__1qFRM:before {\n content: \"\\e02e\";\n}\n.styles-module_lnc_peperclip__13DaN:before {\n content: \"\\e02f\";\n}\n.styles-module_lnc_phone__19YBI:before {\n content: \"\\e030\";\n}\n.styles-module_lnc_phone_ringing__a3Kv8:before {\n content: \"\\e031\";\n}\n.styles-module_lnc_photo__18Q1V:before {\n content: \"\\e032\";\n}\n.styles-module_lnc_photo_no__3oatk:before {\n content: \"\\e033\";\n}\n.styles-module_lnc_pin__3lM5Z:before {\n content: \"\\e034\";\n}\n.styles-module_lnc_plaster__2vI3i:before {\n content: \"\\e035\";\n}\n.styles-module_lnc_play__1OC8v:before {\n content: \"\\e036\";\n}\n.styles-module_lnc_plus__1c00f:before {\n content: \"\\e037\";\n}\n.styles-module_lnc_power_cable__Kxpjn:before {\n content: \"\\e038\";\n}\n.styles-module_lnc_presentation__34sFZ:before {\n content: \"\\e039\";\n}\n.styles-module_lnc_printer__CTvDs:before {\n content: \"\\e03a\";\n}\n.styles-module_lnc_question__Fx68o:before {\n content: \"\\e03b\";\n}\n.styles-module_lnc_redo__128IY:before {\n content: \"\\e03c\";\n}\n.styles-module_lnc_refresh__MrGzd:before {\n content: \"\\e03d\";\n}\n.styles-module_lnc_reload__9QGWt:before {\n content: \"\\e03e\";\n}\n.styles-module_lnc_repeat__2zF-q:before {\n content: \"\\e03f\";\n}\n.styles-module_lnc_replace__2NrlU:before {\n content: \"\\e040\";\n}\n.styles-module_lnc_right__1Tjn9:before {\n content: \"\\e041\";\n}\n.styles-module_lnc_rocket__2IgNF:before {\n content: \"\\e042\";\n}\n.styles-module_lnc_router__3Lmyt:before {\n content: \"\\e043\";\n}\n.styles-module_lnc_ruler__1zJy4:before {\n content: \"\\e044\";\n}\n.styles-module_lnc_safety__ODng_:before {\n content: \"\\e045\";\n}\n.styles-module_lnc_search__3fsCd:before {\n content: \"\\e047\";\n}\n.styles-module_lnc_settings__aYSqN:before {\n content: \"\\e048\";\n}\n.styles-module_lnc_settings2__1QxU2:before {\n content: \"\\e049\";\n}\n.styles-module_lnc_share__u6ngi:before {\n content: \"\\e04a\";\n}\n.styles-module_lnc_shield_check__2EWRM:before {\n content: \"\\e04b\";\n}\n.styles-module_lnc_shop_basket__26vEs:before {\n content: \"\\e04c\";\n}\n.styles-module_lnc_shop_cart__3N0Nv:before {\n content: \"\\e04d\";\n}\n.styles-module_lnc_shop_cart2__1TlL0:before {\n content: \"\\e04e\";\n}\n.styles-module_lnc_shuffle__vZLlv:before {\n content: \"\\e04f\";\n}\n.styles-module_lnc_slash__2YK_q:before {\n content: \"\\e050\";\n}\n.styles-module_lnc_spanner__129hA:before {\n content: \"\\e051\";\n}\n.styles-module_lnc_speaker__19oJH:before {\n content: \"\\e052\";\n}\n.styles-module_lnc_speaker_minus__BLI9-:before {\n content: \"\\e053\";\n}\n.styles-module_lnc_speaker_plus__1QtrR:before {\n content: \"\\e054\";\n}\n.styles-module_lnc_speaker_x__1VIfZ:before {\n content: \"\\e055\";\n}\n.styles-module_lnc_star__3kpNQ:before {\n content: \"\\e056\";\n}\n.styles-module_lnc_stop__tNiYb:before {\n content: \"\\e057\";\n}\n.styles-module_lnc_tag__2Fv-2:before {\n content: \"\\e059\";\n}\n.styles-module_lnc_target__VrxN8:before {\n content: \"\\e05a\";\n}\n.styles-module_lnc_trash__3cF6w:before {\n content: \"\\e05b\";\n}\n.styles-module_lnc_trolley__3OvXo:before {\n content: \"\\e05c\";\n}\n.styles-module_lnc_undo__1tJoX:before {\n content: \"\\e05d\";\n}\n.styles-module_lnc_up__3eKPI:before {\n content: \"\\e05e\";\n}\n.styles-module_lnc_upload__3gwmX:before {\n content: \"\\e05f\";\n}\n.styles-module_lnc_upload2__3hTP1:before {\n content: \"\\e060\";\n}\n.styles-module_lnc_user__1942u:before {\n content: \"\\e061\";\n}\n.styles-module_lnc_user2__21L0B:before {\n content: \"\\e062\";\n}\n.styles-module_lnc_user3__12PJt:before {\n content: \"\\e063\";\n}\n.styles-module_lnc_users__uUh5y:before {\n content: \"\\e064\";\n}\n.styles-module_lnc_video_player__eTudW:before {\n content: \"\\e065\";\n}\n.styles-module_lnc_wallet__NWMof:before {\n content: \"\\e066\";\n}\n.styles-module_lnc_warning__1XnCh:before {\n content: \"\\e067\";\n}\n.styles-module_lnc_wheelchair__-fneh:before {\n content: \"\\e068\";\n}\n.styles-module_lnc_wifi__1PB6c:before {\n content: \"\\e069\";\n}\n.styles-module_lnc_x__2NqwY:before {\n content: \"\\e06a\";\n}\n.styles-module_lnc_zoom_in__2p5NL:before {\n content: \"\\e06b\";\n}\n.styles-module_lnc_zoom_out__3-N8X:before {\n content: \"\\e06c\";\n}\n.styles-module_lnc_firewall__1T-xo:before {\n content: \"\\e06d\";\n}\n.styles-module_lnc_down_double__eQn46:before {\n content: \"\\e046\";\n}\n.styles-module_lnc_file_search__2NdXs:before {\n content: \"\\e06e\";\n}\n.styles-module_lnc_filter2__25zUC:before {\n content: \"\\e06f\";\n}\n.styles-module_lnc_flash__2spoO:before {\n content: \"\\e070\";\n}\n.styles-module_lnc_left_double__lGlAL:before {\n content: \"\\e071\";\n}\n.styles-module_lnc_right_double__2LGrY:before {\n content: \"\\e072\";\n}\n.styles-module_lnc_save__1es4N:before {\n content: \"\\e073\";\n}\n.styles-module_lnc_save_plus__3mggy:before {\n content: \"\\e074\";\n}\n.styles-module_lnc_server__npXWA:before {\n content: \"\\e075\";\n}\n.styles-module_lnc_table__Wz3bc:before {\n content: \"\\e076\";\n}\n.styles-module_lnc_table2__11-XY:before {\n content: \"\\e077\";\n}\n.styles-module_lnc_time_back__3_jgl:before {\n content: \"\\e078\";\n}\n.styles-module_lnc_time_forward__3ttuV:before {\n content: \"\\e079\";\n}\n.styles-module_lnc_up_double__2McTh:before {\n content: \"\\e07a\";\n}\n.styles-module_lnc_align_center__1lFF1:before {\n content: \"\\e058\";\n}\n.styles-module_lnc_align_left__2EEHH:before {\n content: \"\\e07b\";\n}\n.styles-module_lnc_align_right__wdwMo:before {\n content: \"\\e07c\";\n}\n.styles-module_lnc_car__2O1gg:before {\n content: \"\\e07d\";\n}\n.styles-module_lnc_cashregister__29tQ6:before {\n content: \"\\e07e\";\n}\n.styles-module_lnc_file_excel__1vcQh:before {\n content: \"\\e07f\";\n}\n.styles-module_lnc_file_pdf__2t9O1:before {\n content: \"\\e080\";\n}\n.styles-module_lnc_file_word__2DGwd:before {\n content: \"\\e081\";\n}\n.styles-module_lnc_puzzle__2C4g9:before {\n content: \"\\e082\";\n}\n.styles-module_lnc_rotate_vertical__NlAcx:before {\n content: \"\\e083\";\n}\n.styles-module_lnc_rotate_horizontal__1A2w-:before {\n content: \"\\e084\";\n}\n.styles-module_lnc_sum__10wqe:before {\n content: \"\\e085\";\n}\n.styles-module_lnc_usb__12ZHW:before {\n content: \"\\e086\";\n}\n.styles-module_lnc_checklist__2Sfo3:before {\n content: \"\\e087\";\n}\n.styles-module_lnc_checklist2__3UhHY:before {\n content: \"\\e088\";\n}\n.styles-module_lnc_concentrate__umSCo:before {\n content: \"\\e089\";\n}\n.styles-module_lnc_cutlery__13cgD:before {\n content: \"\\e08a\";\n}\n.styles-module_lnc_exchange3__3AZld:before {\n content: \"\\e08b\";\n}\n.styles-module_lnc_graduate_cap__1ByaN:before {\n content: \"\\e08c\";\n}\n.styles-module_lnc_id__2geFo:before {\n content: \"\\e08d\";\n}\n.styles-module_lnc_printer_check__3iWO0:before {\n content: \"\\e08e\";\n}\n.styles-module_lnc_slide_left__1lNSO:before {\n content: \"\\e08f\";\n}\n.styles-module_lnc_slide_right__2Kkpl:before {\n content: \"\\e090\";\n}\n.styles-module_lnc_user_switch__2Hki4:before {\n content: \"\\e091\";\n}\n.styles-module_lnc_aggregate__1b8Xb:before {\n content: \"\\e092\";\n}\n.styles-module_lnc_backspace__2SgjG:before {\n content: \"\\e093\";\n}\n.styles-module_lnc_code2__1EbMZ:before {\n content: \"\\e094\";\n}\n.styles-module_lnc_edit__3BwLt:before {\n content: \"\\e095\";\n}\n.styles-module_lnc_handshake__k9t7X:before {\n content: \"\\e096\";\n}\n.styles-module_lnc_input__1BsI_:before {\n content: \"\\e097\";\n}\n.styles-module_lnc_intersect2__D0t4N:before {\n content: \"\\e098\";\n}\n.styles-module_lnc_logo_dropbox__1bBky:before {\n content: \"\\e099\";\n}\n.styles-module_lnc_logo_facebook__2LFx7:before {\n content: \"\\e09a\";\n}\n.styles-module_lnc_logo_gdrive__lm2Xx:before {\n content: \"\\e09b\";\n}\n.styles-module_lnc_logo_hangouts__3mBpc:before {\n content: \"\\e09c\";\n}\n.styles-module_lnc_logo_instagram__1yoE_:before {\n content: \"\\e09d\";\n}\n.styles-module_lnc_logo_linkedin___bnn1:before {\n content: \"\\e09e\";\n}\n.styles-module_lnc_logo_messenger__22UXJ:before {\n content: \"\\e09f\";\n}\n.styles-module_lnc_logo_paypal__1ctNm:before {\n content: \"\\e0a0\";\n}\n.styles-module_lnc_logo_pinterest__2WBvf:before {\n content: \"\\e0a1\";\n}\n.styles-module_lnc_logo_playstore__2dNKy:before {\n content: \"\\e0a2\";\n}\n.styles-module_lnc_logo_skype__4zqs0:before {\n content: \"\\e0a3\";\n}\n.styles-module_lnc_logo_twitter__2qNGG:before {\n content: \"\\e0a4\";\n}\n.styles-module_lnc_logo_viber__a0Vu8:before {\n content: \"\\e0a5\";\n}\n.styles-module_lnc_logo_whatsapp__1pRGX:before {\n content: \"\\e0a6\";\n}\n.styles-module_lnc_logo_youtube__2rBKz:before {\n content: \"\\e0a7\";\n}\n.styles-module_lnc_measure__7wXpY:before {\n content: \"\\e0a8\";\n}\n.styles-module_lnc_percent__3qmzf:before {\n content: \"\\e0a9\";\n}\n.styles-module_lnc_scan_barcode__2BfUT:before {\n content: \"\\e0aa\";\n}\n.styles-module_lnc_scan_number__20DM5:before {\n content: \"\\e0ab\";\n}\n.styles-module_lnc_scan_qr__2TG1C:before {\n content: \"\\e0ac\";\n}\n.styles-module_lnc_user_speaker__2XqGz:before {\n content: \"\\e0ad\";\n}\n.styles-module_lnc_users_connected__2gVEp:before {\n content: \"\\e0ae\";\n}\n.styles-module_lnc_dots__iFPx7:before {\n content: \"\\e0af\";\n}\n.styles-module_lnc_grid_plus__13nKs:before {\n content: \"\\e0b0\";\n}\n.styles-module_lnc_sort_vertical__27lK1:before {\n content: \"\\e0b1\";\n}\n.styles-module_lnc_sort_horizontal__NCpoS:before {\n content: \"\\e0b2\";\n}\n.styles-module_lnc_grid_minus__YaD5A:before {\n content: \"\\e0b3\";\n}\n.styles-module_lnc_calendar_check__Xk2zp:before {\n content: \"\\e0b4\";\n}\n.styles-module_lnc_calendar_minus__1WJp0:before {\n content: \"\\e0b5\";\n}\n.styles-module_lnc_calendar_plus__3dmG_:before {\n content: \"\\e0b6\";\n}\n.styles-module_lnc_calendar_x__MI4zD:before {\n content: \"\\e0b7\";\n}\n.styles-module_lnc_eye__3StZy:before {\n content: \"\\e0b8\";\n}\n.styles-module_lnc_eye_no__3YiHU:before {\n content: \"\\e0b9\";\n}\n";
|
|
50094
50106
|
styleInject(css_248z$3);
|
|
50095
50107
|
|
|
50096
|
-
var _templateObject$
|
|
50097
|
-
var Container$
|
|
50098
|
-
var Wrapper = newStyled.div(_templateObject2$
|
|
50108
|
+
var _templateObject$c, _templateObject2$9, _templateObject3$7, _templateObject4$6, _templateObject5$6, _templateObject6$4, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject10$3, _templateObject11$2, _templateObject12$2, _templateObject13$1;
|
|
50109
|
+
var Container$c = newStyled.div(_templateObject$c || (_templateObject$c = _taggedTemplateLiteral__default['default'](["\n border-radius: 3px;\n font-size: ", ";\n font-family: ", ";\n"])), theme.typography.small.fontSize, theme.typography.fontFamily);
|
|
50110
|
+
var Wrapper = newStyled.div(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteral__default['default']([""])));
|
|
50099
50111
|
var TableTable = newStyled.table(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteral__default['default'](["\n border-collapse: collapse;\n width: 100%;\n"])));
|
|
50100
50112
|
var TableHead = newStyled.thead(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteral__default['default'](["\n color: ", ";\n border-top: 1px solid #80808025;\n"])), theme.palette.primary.textDark);
|
|
50101
50113
|
var TableHeadRow = newStyled.tr(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteral__default['default'](["\n border-bottom: 1px solid #80808025;\n"])));
|
|
@@ -50302,7 +50314,7 @@ var Table = function Table(props) {
|
|
|
50302
50314
|
}));
|
|
50303
50315
|
};
|
|
50304
50316
|
|
|
50305
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
50317
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$c, null, /*#__PURE__*/React__default['default'].createElement(Wrapper, null, /*#__PURE__*/React__default['default'].createElement(TableTable, {
|
|
50306
50318
|
cellSpacing: 0
|
|
50307
50319
|
}, /*#__PURE__*/React__default['default'].createElement(TableHead, null, /*#__PURE__*/React__default['default'].createElement(TableHeadRow, null, renderSelectAllHeaderCell(), /*#__PURE__*/React__default['default'].createElement("th", {
|
|
50308
50320
|
style: {
|
|
@@ -50592,7 +50604,7 @@ uuid.v4 = v4;
|
|
|
50592
50604
|
|
|
50593
50605
|
var uuid_1 = uuid;
|
|
50594
50606
|
|
|
50595
|
-
var _templateObject$
|
|
50607
|
+
var _templateObject$b, _templateObject2$8, _templateObject3$6, _templateObject4$5, _templateObject5$5, _templateObject6$3, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$1, _templateObject12$1;
|
|
50596
50608
|
|
|
50597
50609
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
50598
50610
|
|
|
@@ -50700,8 +50712,8 @@ var getBorderSyle = function getBorderSyle(borderStyle, read, theme, color) {
|
|
|
50700
50712
|
return css;
|
|
50701
50713
|
};
|
|
50702
50714
|
|
|
50703
|
-
var Container$
|
|
50704
|
-
var TableContainer = newStyled.div(_templateObject2$
|
|
50715
|
+
var Container$b = newStyled.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteral__default['default'](["\n box-shadow: 0 0 12px #bebebe;\n borderradius: 3px;\n padding: 4px;\n"])));
|
|
50716
|
+
var TableContainer = newStyled.div(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteral__default['default'](["\n font-family: var(--font-base-ubuntu);\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n"])));
|
|
50705
50717
|
var PaginationContainer = newStyled.div(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral__default['default'](["\n margin-top: 6px;\n border-top: 1px solid #80808025;\n"])));
|
|
50706
50718
|
var FormContainer$1 = newStyled.div(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteral__default['default'](["\n height: 100%;\n overflow-y: auto;\n max-height: calc(100vh - 120px);\n ", "\n"])), function (props) {
|
|
50707
50719
|
return getBorderSyle(props.borderStyle, props.read, props.theme, props.color);
|
|
@@ -51958,7 +51970,7 @@ var Grid = /*#__PURE__*/React__default['default'].forwardRef(function (props, re
|
|
|
51958
51970
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
51959
51971
|
};
|
|
51960
51972
|
|
|
51961
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
51973
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$b, themeProps, renderHeader(), /*#__PURE__*/React__default['default'].createElement(TableContainer, themeProps, renderDeleteConfirmationBox(), renderTable(), renderForm(), renderDeveloperMessages()), renderPagination());
|
|
51962
51974
|
});
|
|
51963
51975
|
Grid.defaultProps = {
|
|
51964
51976
|
theme: theme,
|
|
@@ -51991,7 +52003,7 @@ Grid.propTypes = {
|
|
|
51991
52003
|
Developer: PropTypes__default['default'].bool
|
|
51992
52004
|
};
|
|
51993
52005
|
|
|
51994
|
-
var _templateObject$
|
|
52006
|
+
var _templateObject$a;
|
|
51995
52007
|
|
|
51996
52008
|
var paddingBySize$5 = function paddingBySize(size, hasText) {
|
|
51997
52009
|
if (size === "small") return "0.34375rem 0.4rem";
|
|
@@ -52005,7 +52017,7 @@ var heightBySize$4 = function heightBySize(size) {
|
|
|
52005
52017
|
if (size === "large") return "2.375rem";
|
|
52006
52018
|
};
|
|
52007
52019
|
|
|
52008
|
-
var Button = newStyled.button(_templateObject$
|
|
52020
|
+
var Button = newStyled.button(_templateObject$a || (_templateObject$a = _taggedTemplateLiteral__default['default'](["\n font-size: ", ";\n font-family: ", ";\n padding: ", ";\n max-height: ", ";\n min-height: ", ";\n flex-grow: 1;\n appearance: none;\n outline: none;\n border: none;\n transition: all 220ms;\n display: inline-block;\n cursor: pointer;\n margin: 0.125rem;\n border-radius: 0.125rem;\n border: 0.09375rem solid transparent;\n ", "\n color: ", ";\n background-color: ", ";\n\n &:hover {\n ", "\n color: ", ";\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n\n color: ", ";\n opacity: 0.7;\n cursor: default;\n border: 0.09375rem solid #bfbfbf80;\n }\n"])), function (props) {
|
|
52009
52021
|
return props.theme.typography[props.size].fontSize;
|
|
52010
52022
|
}, function (props) {
|
|
52011
52023
|
return props.theme.typography.fontFamily;
|
|
@@ -52055,8 +52067,8 @@ var TagItem = function TagItem(props) {
|
|
|
52055
52067
|
}, text);
|
|
52056
52068
|
};
|
|
52057
52069
|
|
|
52058
|
-
var _templateObject$
|
|
52059
|
-
var Container$
|
|
52070
|
+
var _templateObject$9;
|
|
52071
|
+
var Container$a = newStyled.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteral__default['default'](["\n display: flex;\n width: fit-content;\n flex-direction: row;\n padding: 3px;\n border: 1.5px solid #bfbfbf80;\n border-radius: 2px;\n flex-wrap: wrap;\n justify-content: flex-start;\n"])));
|
|
52060
52072
|
|
|
52061
52073
|
var TagSelector = function TagSelector(props) {
|
|
52062
52074
|
var _props$tags = props.tags,
|
|
@@ -52095,7 +52107,7 @@ var TagSelector = function TagSelector(props) {
|
|
|
52095
52107
|
});
|
|
52096
52108
|
};
|
|
52097
52109
|
|
|
52098
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
52110
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$a, {
|
|
52099
52111
|
size: size,
|
|
52100
52112
|
color: color,
|
|
52101
52113
|
theme: theme,
|
|
@@ -52177,7 +52189,7 @@ var ItemCounter = function ItemCounter(props) {
|
|
|
52177
52189
|
}
|
|
52178
52190
|
};
|
|
52179
52191
|
|
|
52180
|
-
var _templateObject$
|
|
52192
|
+
var _templateObject$8, _templateObject2$7, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$2;
|
|
52181
52193
|
|
|
52182
52194
|
var getBtnContainerColor = function getBtnContainerColor(props) {
|
|
52183
52195
|
if (props.additional && props.inactive) return props.theme.palette.gray[100];
|
|
@@ -52205,8 +52217,8 @@ var heightBySize$3 = function heightBySize(size) {
|
|
|
52205
52217
|
if (size === "large") return "2.25rem";
|
|
52206
52218
|
};
|
|
52207
52219
|
|
|
52208
|
-
var Container$
|
|
52209
|
-
var Inner$3 = newStyled.div(_templateObject2$
|
|
52220
|
+
var Container$9 = newStyled.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteral__default['default'](["\n display: inline-block;\n box-sizing: border-box;\n"])));
|
|
52221
|
+
var Inner$3 = newStyled.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteral__default['default'](["\n display: flex;\n align-items: flex-start;\n flex-direction: row;\n border: 0.0625rem solid #bfbfbf80;\n font-family: ", ";\n font-size: ", ";\n padding: 0;\n margin: 0;\n border-radius: 0.5rem;\n cursor: pointer;\n\n min-height: ", ";\n max-height: ", ";\n"])), function (props) {
|
|
52210
52222
|
return props.theme.typography.fontFamily;
|
|
52211
52223
|
}, function (props) {
|
|
52212
52224
|
return props.theme.typography[props.size].fontSize;
|
|
@@ -52261,7 +52273,7 @@ var Chip = function Chip(props) {
|
|
|
52261
52273
|
disabled: disabled,
|
|
52262
52274
|
inactive: inactive
|
|
52263
52275
|
};
|
|
52264
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
52276
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$9, _extends__default['default']({}, themeProps, {
|
|
52265
52277
|
className: className
|
|
52266
52278
|
}), /*#__PURE__*/React__default['default'].createElement(Inner$3, themeProps, /*#__PURE__*/React__default['default'].createElement(Text$1, _extends__default['default']({}, themeProps, {
|
|
52267
52279
|
onClick: function onClick() {
|
|
@@ -52316,7 +52328,7 @@ Chip.propTypes = {
|
|
|
52316
52328
|
var css_248z$1 = ".item-enter {\n opacity: 0;\n}\n\n.item-enter-active {\n transition: all 0.2s ease-in;\n opacity: 1;\n}\n\n.item-exit {\n}\n\n.item-exit-active {\n opacity: 0;\n transition: opacity 200ms ease-out;\n}\n";
|
|
52317
52329
|
styleInject(css_248z$1);
|
|
52318
52330
|
|
|
52319
|
-
var _templateObject$
|
|
52331
|
+
var _templateObject$7, _templateObject2$6, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1;
|
|
52320
52332
|
|
|
52321
52333
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
52322
52334
|
|
|
@@ -52340,8 +52352,8 @@ var iconPaddingBySize$1 = function iconPaddingBySize(size) {
|
|
|
52340
52352
|
if (size === "large") return "0.78125rem 0.625rem 0.375rem 0.625rem";
|
|
52341
52353
|
};
|
|
52342
52354
|
|
|
52343
|
-
var Container$
|
|
52344
|
-
var ItemContainer$1 = newStyled.div(_templateObject2$
|
|
52355
|
+
var Container$8 = newStyled.div(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteral__default['default'](["\n display: inline-block;\n position: relative;\n box-sizing: border-box;\n border: 0.09375rem solid #bfbfbf;\n background-color: white;\n border-radius: 0.1875rem;\n width: 100%;\n\n transition: all 250ms ease;\n"])));
|
|
52356
|
+
var ItemContainer$1 = newStyled.div(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral__default['default'](["\n padding: 0.15rem;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-grow: 10;\n transition: all 250ms ease;\n"])));
|
|
52345
52357
|
var ItemWrapper$1 = newStyled.div(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral__default['default'](["\n display: inline-block;\n margin: 0.125rem;\n flex-grow: 1;\n transition: all 250ms ease;\n\n & > div {\n width: 100%;\n }\n"])));
|
|
52346
52358
|
var InputContainer$1 = newStyled.div(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral__default['default'](["\n display: inline-block;\n box-sizing: border-box;\n margin: 0.125rem;\n margin-left: 0.25rem;\n flex-grow: 1;\n transition: all 250ms ease;\n"])));
|
|
52347
52359
|
var Input$1 = newStyled.input(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteral__default['default'](["\n width: 100%;\n transition: all 250ms ease;\n text-decoration: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n box-sizing: border-box;\n outline: none;\n border: none;\n padding: ", ";\n background-color: transparent;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n border-radius: 0.1875rem;\n"])), function (props) {
|
|
@@ -52499,7 +52511,7 @@ var SearchBar = function SearchBar(props) {
|
|
|
52499
52511
|
}
|
|
52500
52512
|
};
|
|
52501
52513
|
|
|
52502
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
52514
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$8, _extends__default['default']({
|
|
52503
52515
|
className: className
|
|
52504
52516
|
}, themeProps), /*#__PURE__*/React__default['default'].createElement(Inner$2, themeProps, /*#__PURE__*/React__default['default'].createElement(SearchIcon, themeProps, /*#__PURE__*/React__default['default'].createElement("i", {
|
|
52505
52517
|
className: "fas fa-search fa-fw"
|
|
@@ -52561,7 +52573,7 @@ SearchBar.propTypes = {
|
|
|
52561
52573
|
color: PropTypes__default['default'].oneOf(["primary", "secondary", "success", "error", "warning", "gray", "background", "transparent"])
|
|
52562
52574
|
};
|
|
52563
52575
|
|
|
52564
|
-
var _templateObject$
|
|
52576
|
+
var _templateObject$6, _templateObject2$5, _templateObject3$3, _templateObject4$2, _templateObject5$2;
|
|
52565
52577
|
|
|
52566
52578
|
var paddingBySize$3 = function paddingBySize(size) {
|
|
52567
52579
|
if (size === "small") {
|
|
@@ -52583,10 +52595,10 @@ var heightBySize$2 = function heightBySize(size, hasText) {
|
|
|
52583
52595
|
if (size === "large") return "max-height: 2.375rem; min-height: 2.375rem;";
|
|
52584
52596
|
};
|
|
52585
52597
|
|
|
52586
|
-
var Container$
|
|
52598
|
+
var Container$7 = newStyled.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteral__default['default'](["\n overflow: hidden;\n background-color: #f1f1f1;\n border-radius: 0.1875rem 0.1875rem 0 0;\n background-color: ", ";\n"])), function (props) {
|
|
52587
52599
|
return props.theme.palette[props.color].main;
|
|
52588
52600
|
});
|
|
52589
|
-
var Tab = newStyled.button(_templateObject2$
|
|
52601
|
+
var Tab = newStyled.button(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteral__default['default'](["\n ", "\n background-color: inherit;\n float: left;\n border: none;\n outline: none;\n cursor: pointer;\n ", "\n transition: 0.25s;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n background-color: ", ";\n"])), function (props) {
|
|
52590
52602
|
return heightBySize$2(props.size);
|
|
52591
52603
|
}, function (props) {
|
|
52592
52604
|
return paddingBySize$3(props.size);
|
|
@@ -52646,7 +52658,7 @@ var Tabs = function Tabs(props) {
|
|
|
52646
52658
|
});
|
|
52647
52659
|
};
|
|
52648
52660
|
|
|
52649
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(Container$
|
|
52661
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(Container$7, _extends__default['default']({}, themeProps, {
|
|
52650
52662
|
className: className
|
|
52651
52663
|
}), tabs.map(function (tab) {
|
|
52652
52664
|
return /*#__PURE__*/React__default['default'].createElement(Tab, _extends__default['default']({
|
|
@@ -52677,7 +52689,7 @@ Tabs.propTypes = {
|
|
|
52677
52689
|
color: PropTypes__default['default'].oneOf(["primary", "secondary", "success", "error", "warning", "gray"])
|
|
52678
52690
|
};
|
|
52679
52691
|
|
|
52680
|
-
var _templateObject$
|
|
52692
|
+
var _templateObject$5, _templateObject2$4;
|
|
52681
52693
|
|
|
52682
52694
|
var fontSize$1 = function fontSize(props) {
|
|
52683
52695
|
var fontSize = props.theme.typography[props.size].fontSize;
|
|
@@ -52706,7 +52718,7 @@ var paddingBySizeContainerBox = function paddingBySizeContainerBox(size) {
|
|
|
52706
52718
|
if (size === "large") return "0.3125rem 0.5rem";
|
|
52707
52719
|
};
|
|
52708
52720
|
|
|
52709
|
-
var ContainerBox = newStyled.div(_templateObject$
|
|
52721
|
+
var ContainerBox = newStyled.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral__default['default'](["\n border: 0.0625rem solid ", ";\n border-radius: 0.15625rem;\n background-color: ", ";\n color: ", ";\n font-size: ", ";\n font-family: ", ";\n padding: ", ";\n word-wrap: break-word;\n box-sizing: border-box;\n"])), function (props) {
|
|
52710
52722
|
return props.theme.palette[props.color].dark;
|
|
52711
52723
|
}, function (props) {
|
|
52712
52724
|
return props.theme.palette[props.color].lighter;
|
|
@@ -52719,7 +52731,7 @@ var ContainerBox = newStyled.div(_templateObject$4 || (_templateObject$4 = _tagg
|
|
|
52719
52731
|
}, function (props) {
|
|
52720
52732
|
return paddingBySizeContainerBox(props.size);
|
|
52721
52733
|
});
|
|
52722
|
-
var Container$
|
|
52734
|
+
var Container$6 = newStyled.div(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteral__default['default'](["\n color: ", ";\n font-size: ", ";\n font-family: ", ";\n padding: ", ";\n padding-left: 0px;\n word-wrap: break-word;\n box-sizing: border-box;\n"])), function (props) {
|
|
52723
52735
|
return props.theme.palette[props.color].dark;
|
|
52724
52736
|
}, function (props) {
|
|
52725
52737
|
return fontSize$1(props);
|
|
@@ -52744,7 +52756,7 @@ var Alet = function Alet(props) {
|
|
|
52744
52756
|
if (hasContainer) return /*#__PURE__*/React__default['default'].createElement(ContainerBox, _extends__default['default']({}, themeProps, {
|
|
52745
52757
|
className: className
|
|
52746
52758
|
}), message);
|
|
52747
|
-
if (!hasContainer) return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
52759
|
+
if (!hasContainer) return /*#__PURE__*/React__default['default'].createElement(Container$6, _extends__default['default']({}, themeProps, {
|
|
52748
52760
|
className: className
|
|
52749
52761
|
}), message);
|
|
52750
52762
|
};
|
|
@@ -52754,9 +52766,11 @@ Alet.defaultProps = {
|
|
|
52754
52766
|
size: "small",
|
|
52755
52767
|
theme: theme,
|
|
52756
52768
|
color: "primary",
|
|
52757
|
-
hasContainer: true
|
|
52769
|
+
hasContainer: true,
|
|
52770
|
+
message: ""
|
|
52758
52771
|
};
|
|
52759
52772
|
Alet.propTypes = {
|
|
52773
|
+
message: PropTypes__default['default'].string,
|
|
52760
52774
|
theme: PropTypes__default['default'].object.isRequired,
|
|
52761
52775
|
className: PropTypes__default['default'].string,
|
|
52762
52776
|
hasContainer: PropTypes__default['default'].bool,
|
|
@@ -52764,7 +52778,7 @@ Alet.propTypes = {
|
|
|
52764
52778
|
color: PropTypes__default['default'].oneOf(["primary", "secondary", "success", "error", "warning", "gray", "background"])
|
|
52765
52779
|
};
|
|
52766
52780
|
|
|
52767
|
-
var _templateObject$
|
|
52781
|
+
var _templateObject$4, _templateObject2$3, _templateObject3$2;
|
|
52768
52782
|
|
|
52769
52783
|
var fontSize = function fontSize(props) {
|
|
52770
52784
|
var fontSize = props.theme.typography[props.size].fontSize;
|
|
@@ -52781,12 +52795,12 @@ var fontSize = function fontSize(props) {
|
|
|
52781
52795
|
return newFontSize;
|
|
52782
52796
|
};
|
|
52783
52797
|
|
|
52784
|
-
var Container$
|
|
52798
|
+
var Container$5 = newStyled.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral__default['default'](["\n font-size: ", ";\n font-family: ", ";\n"])), function (props) {
|
|
52785
52799
|
return props.theme.typography[props.size].fontSize;
|
|
52786
52800
|
}, function (props) {
|
|
52787
52801
|
return props.theme.typography.fontFamily;
|
|
52788
52802
|
});
|
|
52789
|
-
var LabelContainer = newStyled.div(_templateObject2$
|
|
52803
|
+
var LabelContainer = newStyled.div(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteral__default['default'](["\n font-size: ", ";\n font-family: ", ";\n margin-bottom: 0.1875rem;\n color: #777a80;\n"])), function (props) {
|
|
52790
52804
|
return fontSize(props);
|
|
52791
52805
|
}, function (props) {
|
|
52792
52806
|
return props.theme.typography.fontFamily;
|
|
@@ -52810,7 +52824,7 @@ var FormField = function FormField(props) {
|
|
|
52810
52824
|
size: size,
|
|
52811
52825
|
color: color
|
|
52812
52826
|
};
|
|
52813
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
52827
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$5, _extends__default['default']({}, themeProps, {
|
|
52814
52828
|
className: className
|
|
52815
52829
|
}), label && label !== null && /*#__PURE__*/React__default['default'].createElement(LabelContainer, themeProps, label, required ? "*" : ""), children, errorMessage && errorMessage !== "" && /*#__PURE__*/React__default['default'].createElement(ErrorContainer, _extends__default['default']({}, themeProps, {
|
|
52816
52830
|
hasContainer: hasContainer
|
|
@@ -52840,7 +52854,7 @@ FormField.propTypes = {
|
|
|
52840
52854
|
size: PropTypes__default['default'].oneOf(["small", "medium", "large"])
|
|
52841
52855
|
};
|
|
52842
52856
|
|
|
52843
|
-
var _templateObject$
|
|
52857
|
+
var _templateObject$3;
|
|
52844
52858
|
|
|
52845
52859
|
var getColumns = function getColumns(columns) {
|
|
52846
52860
|
var frs = "";
|
|
@@ -52852,7 +52866,7 @@ var getColumns = function getColumns(columns) {
|
|
|
52852
52866
|
return frs;
|
|
52853
52867
|
};
|
|
52854
52868
|
|
|
52855
|
-
var Container$
|
|
52869
|
+
var Container$4 = newStyled.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral__default['default'](["\n display: grid;\n grid-template-columns: ", ";\n\n & > div {\n margin: ", ";\n }\n"])), function (props) {
|
|
52856
52870
|
return getColumns(props.columns);
|
|
52857
52871
|
}, function (props) {
|
|
52858
52872
|
return props.fieldMargin;
|
|
@@ -52863,7 +52877,7 @@ var FormContainer = function FormContainer(props) {
|
|
|
52863
52877
|
columns = props.columns,
|
|
52864
52878
|
children = props.children,
|
|
52865
52879
|
fieldMargin = props.fieldMargin;
|
|
52866
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
52880
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$4, {
|
|
52867
52881
|
columns: columns,
|
|
52868
52882
|
fieldMargin: fieldMargin,
|
|
52869
52883
|
className: className
|
|
@@ -52893,13 +52907,13 @@ var heightBySize$1 = function heightBySize(size, hasText) {
|
|
|
52893
52907
|
if (size === "large") return "2.375rem";
|
|
52894
52908
|
};
|
|
52895
52909
|
|
|
52896
|
-
var Container$
|
|
52910
|
+
var Container$3 = newStyled.span(function (props) {
|
|
52897
52911
|
return {
|
|
52898
52912
|
"& .react-datepicker__triangle": {
|
|
52899
52913
|
display: "none"
|
|
52900
52914
|
},
|
|
52901
52915
|
"& .react-datepicker-wrapper": {
|
|
52902
|
-
width: "
|
|
52916
|
+
width: "25%",
|
|
52903
52917
|
boxSizing: "border-box"
|
|
52904
52918
|
},
|
|
52905
52919
|
"& input": {
|
|
@@ -53031,7 +53045,7 @@ var PeriodSelector = function PeriodSelector(props) {
|
|
|
53031
53045
|
setEndDateText(moment(jsDateObject).format("DD.MM.YYYY."));
|
|
53032
53046
|
};
|
|
53033
53047
|
|
|
53034
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
53048
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$3, {
|
|
53035
53049
|
theme: theme,
|
|
53036
53050
|
size: size,
|
|
53037
53051
|
color: color
|
|
@@ -53041,7 +53055,7 @@ var PeriodSelector = function PeriodSelector(props) {
|
|
|
53041
53055
|
dateFormat: dateFormat ? dateFormat : "dd.MM.yyyy.",
|
|
53042
53056
|
disabled: disabled,
|
|
53043
53057
|
className: className
|
|
53044
|
-
}),
|
|
53058
|
+
}), " ", /*#__PURE__*/React__default['default'].createElement(DatePicker, {
|
|
53045
53059
|
selected: getEndDate(),
|
|
53046
53060
|
onChange: handleOnEndDateChange,
|
|
53047
53061
|
dateFormat: dateFormat ? dateFormat : "dd.MM.yyyy.",
|
|
@@ -53079,10 +53093,10 @@ PeriodSelector.propTypes = {
|
|
|
53079
53093
|
color: PropTypes__default['default'].oneOf(["primary", "secondary", "success", "error", "warning", "gray"])
|
|
53080
53094
|
};
|
|
53081
53095
|
|
|
53082
|
-
var _templateObject$
|
|
53096
|
+
var _templateObject$2, _templateObject2$2, _templateObject3$1, _templateObject4$1, _templateObject5$1;
|
|
53083
53097
|
|
|
53084
53098
|
var paddingBySize = function paddingBySize(size) {
|
|
53085
|
-
if (size === "small") return "0.
|
|
53099
|
+
if (size === "small") return "0.25rem 0.4rem 0.2rem 0.4rem";
|
|
53086
53100
|
if (size === "medium") return "0.2625rem 0.5rem 0.2625rem 0.5rem";
|
|
53087
53101
|
if (size === "large") return "0.35rem 0.7rem 0.35rem 0.7rem";
|
|
53088
53102
|
};
|
|
@@ -53093,8 +53107,8 @@ var heightBySize = function heightBySize(size) {
|
|
|
53093
53107
|
if (size === "large") return "2rem";
|
|
53094
53108
|
};
|
|
53095
53109
|
|
|
53096
|
-
var Container$
|
|
53097
|
-
var Inner$1 = newStyled.div(_templateObject2$
|
|
53110
|
+
var Container$2 = newStyled.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral__default['default'](["\n display: inline-block;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n"])));
|
|
53111
|
+
var Inner$1 = newStyled.div(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral__default['default'](["\n display: flex;\n align-items: flex-start;\n flex-direction: row;\n font-family: ", ";\n font-size: ", ";\n padding: 0;\n margin: 0;\n border-radius: 0.5rem;\n\n min-height: ", ";\n max-height: ", ";\n"])), function (props) {
|
|
53098
53112
|
return props.theme.typography.fontFamily;
|
|
53099
53113
|
}, function (props) {
|
|
53100
53114
|
return props.theme.typography[props.size].fontSize;
|
|
@@ -53137,7 +53151,7 @@ var Item = function Item(props) {
|
|
|
53137
53151
|
color: color,
|
|
53138
53152
|
disabled: disabled
|
|
53139
53153
|
};
|
|
53140
|
-
return /*#__PURE__*/React__default['default'].createElement(Container$
|
|
53154
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$2, _extends__default['default']({}, themeProps, {
|
|
53141
53155
|
className: className
|
|
53142
53156
|
}), /*#__PURE__*/React__default['default'].createElement(Inner$1, themeProps, /*#__PURE__*/React__default['default'].createElement(Text, _extends__default['default']({}, themeProps, {
|
|
53143
53157
|
title: tooltip
|
|
@@ -53177,8 +53191,8 @@ Item.propTypes = {
|
|
|
53177
53191
|
var css_248z = ".option-item-enter {\n opacity: 0;\n}\n\n.option-item-enter-active {\n transition: all 0.2s ease-in;\n opacity: 1;\n}\n\n.option-item-exit {\n}\n\n.option--exit-active {\n opacity: 0;\n transition: opacity 200ms ease-out;\n}\n";
|
|
53178
53192
|
styleInject(css_248z);
|
|
53179
53193
|
|
|
53180
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
|
|
53181
|
-
var spin = keyframes$2(_templateObject || (_templateObject = _taggedTemplateLiteral__default['default'](["\n 100% {\n transform: rotate(360deg);\n }\n\n 0% {\n transform: rotate(0deg);\n }\n"])));
|
|
53194
|
+
var _templateObject$1, _templateObject2$1, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
|
|
53195
|
+
var spin = keyframes$2(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral__default['default'](["\n 100% {\n transform: rotate(360deg);\n }\n\n 0% {\n transform: rotate(0deg);\n }\n"])));
|
|
53182
53196
|
|
|
53183
53197
|
var getIconFontSize = function getIconFontSize(props) {
|
|
53184
53198
|
if (props.size === "small") return props.theme.typography.small.fontSize;
|
|
@@ -53204,7 +53218,7 @@ var containerColor = function containerColor(props) {
|
|
|
53204
53218
|
return props.theme.palette[props.color].lighter;
|
|
53205
53219
|
};
|
|
53206
53220
|
|
|
53207
|
-
var Container = newStyled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral__default['default'](["\n display: inline-block;\n position: relative;\n box-sizing: border-box;\n border-bottom: 0.125rem solid\n ", ";\n background-color: ", ";\n border-radius: 0.125rem;\n width: 100%;\n transition: all 250ms ease;\n"])), function (props) {
|
|
53221
|
+
var Container$1 = newStyled.div(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral__default['default'](["\n display: inline-block;\n position: relative;\n box-sizing: border-box;\n border-bottom: 0.125rem solid\n ", ";\n background-color: ", ";\n border-radius: 0.125rem;\n width: 100%;\n transition: all 250ms ease;\n"])), function (props) {
|
|
53208
53222
|
return props.disabled ? props.theme.palette.gray[900] : props.theme.palette[props.color].main;
|
|
53209
53223
|
}, function (props) {
|
|
53210
53224
|
return containerColor(props);
|
|
@@ -53439,7 +53453,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(props) {
|
|
|
53439
53453
|
}
|
|
53440
53454
|
};
|
|
53441
53455
|
|
|
53442
|
-
return /*#__PURE__*/React__default['default'].createElement(Container, _extends__default['default']({
|
|
53456
|
+
return /*#__PURE__*/React__default['default'].createElement(Container$1, _extends__default['default']({
|
|
53443
53457
|
className: className
|
|
53444
53458
|
}, themeProps, {
|
|
53445
53459
|
focus: inputFocus
|
|
@@ -53528,6 +53542,228 @@ MultiSelectDropdown.propTypes = {
|
|
|
53528
53542
|
addOptionText: PropTypes__default['default'].string
|
|
53529
53543
|
};
|
|
53530
53544
|
|
|
53545
|
+
var _templateObject, _templateObject2;
|
|
53546
|
+
var Container = newStyled.div(function (props) {
|
|
53547
|
+
return {
|
|
53548
|
+
gridArea: "timeSpentItem",
|
|
53549
|
+
display: "flex",
|
|
53550
|
+
columnGap: "2px",
|
|
53551
|
+
justifyContent: "start"
|
|
53552
|
+
};
|
|
53553
|
+
});
|
|
53554
|
+
var FlexCenter = newStyled.div(_templateObject || (_templateObject = _taggedTemplateLiteral__default['default'](["\n display: flex;\n justify-content: center;\n align-items: end;\n"])));
|
|
53555
|
+
var ButtonWraper = newStyled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral__default['default'](["\n padding-right: 2%;\n"])));
|
|
53556
|
+
|
|
53557
|
+
var TimeInput = function TimeInput(props) {
|
|
53558
|
+
var id = props.id,
|
|
53559
|
+
value = props.value,
|
|
53560
|
+
size = props.size,
|
|
53561
|
+
color = props.color,
|
|
53562
|
+
theme = props.theme,
|
|
53563
|
+
className = props.className,
|
|
53564
|
+
onChange = props.onChange,
|
|
53565
|
+
_props$disabled = props.disabled,
|
|
53566
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
53567
|
+
_props$step = props.step,
|
|
53568
|
+
step = _props$step === void 0 ? 1 : _props$step;
|
|
53569
|
+
|
|
53570
|
+
var _useState = React.useState(value),
|
|
53571
|
+
_useState2 = _slicedToArray__default['default'](_useState, 2),
|
|
53572
|
+
val = _useState2[0],
|
|
53573
|
+
setVal = _useState2[1];
|
|
53574
|
+
|
|
53575
|
+
var _useState3 = React.useState(Math.trunc(props.value)),
|
|
53576
|
+
_useState4 = _slicedToArray__default['default'](_useState3, 2),
|
|
53577
|
+
spentHours = _useState4[0],
|
|
53578
|
+
setSpentHours = _useState4[1];
|
|
53579
|
+
|
|
53580
|
+
var _useState5 = React.useState(Math.trunc(props.value % 1 * 60)),
|
|
53581
|
+
_useState6 = _slicedToArray__default['default'](_useState5, 2),
|
|
53582
|
+
spentMinutes = _useState6[0],
|
|
53583
|
+
setSpentMinutes = _useState6[1];
|
|
53584
|
+
|
|
53585
|
+
var stepDecimal = step / 60;
|
|
53586
|
+
var stepValue = parseInt(step);
|
|
53587
|
+
React.useEffect(function () {
|
|
53588
|
+
setVal(value);
|
|
53589
|
+
setSpentHours(Math.trunc(props.value));
|
|
53590
|
+
setSpentMinutes(Math.trunc(props.value % 1 * 60));
|
|
53591
|
+
}, [value]);
|
|
53592
|
+
|
|
53593
|
+
var ConvertMinutesToDecimal = function ConvertMinutesToDecimal(newMinutesValue) {
|
|
53594
|
+
var timeSpent = parseFloat(newMinutesValue);
|
|
53595
|
+
|
|
53596
|
+
if (isNaN(timeSpent) || timeSpent === undefined) {
|
|
53597
|
+
timeSpent = 0;
|
|
53598
|
+
}
|
|
53599
|
+
|
|
53600
|
+
if (!Number.isInteger(timeSpent)) {
|
|
53601
|
+
timeSpent = Math.trunc(timeSpent);
|
|
53602
|
+
}
|
|
53603
|
+
|
|
53604
|
+
var hoursToAdd = 0;
|
|
53605
|
+
|
|
53606
|
+
if (timeSpent > 60) {
|
|
53607
|
+
hoursToAdd = Math.trunc(timeSpent / 60);
|
|
53608
|
+
timeSpent %= 60;
|
|
53609
|
+
}
|
|
53610
|
+
|
|
53611
|
+
timeSpent = Math.trunc(timeSpent / stepValue) * stepValue;
|
|
53612
|
+
var oldTime = val;
|
|
53613
|
+
|
|
53614
|
+
if (oldTime <= stepDecimal) {
|
|
53615
|
+
if (timeSpent <= stepValue || isNaN(timeSpent) || timeSpent === undefined) {
|
|
53616
|
+
timeSpent = stepValue;
|
|
53617
|
+
}
|
|
53618
|
+
}
|
|
53619
|
+
|
|
53620
|
+
if (oldTime <= 24) {
|
|
53621
|
+
var oldHours = Math.trunc(val);
|
|
53622
|
+
var newTimeSpent = oldHours + hoursToAdd + timeSpent / 60;
|
|
53623
|
+
newTimeSpent = parseFloat(newTimeSpent.toFixed(5));
|
|
53624
|
+
if (newTimeSpent > 24) return 24;
|
|
53625
|
+
return newTimeSpent;
|
|
53626
|
+
}
|
|
53627
|
+
};
|
|
53628
|
+
|
|
53629
|
+
var ConvertHoursToDecimal = function ConvertHoursToDecimal(newHoursValue) {
|
|
53630
|
+
var timeSpent = parseFloat(newHoursValue);
|
|
53631
|
+
|
|
53632
|
+
if (isNaN(timeSpent) || timeSpent === undefined) {
|
|
53633
|
+
timeSpent = 0;
|
|
53634
|
+
}
|
|
53635
|
+
|
|
53636
|
+
if (timeSpent >= 24) {
|
|
53637
|
+
return 24.0;
|
|
53638
|
+
} else if (parseInt(timeSpent) === 0) {
|
|
53639
|
+
var oldTime = parseFloat(val);
|
|
53640
|
+
|
|
53641
|
+
if (oldTime % 1 <= stepDecimal) {
|
|
53642
|
+
return stepDecimal;
|
|
53643
|
+
} else {
|
|
53644
|
+
return oldTime % 1;
|
|
53645
|
+
}
|
|
53646
|
+
} else {
|
|
53647
|
+
var _oldTime = val;
|
|
53648
|
+
|
|
53649
|
+
var oldDecimalValue = ("" + _oldTime).split(".")[1];
|
|
53650
|
+
|
|
53651
|
+
if (oldDecimalValue === undefined || oldDecimalValue === "") {
|
|
53652
|
+
oldDecimalValue = "0.0";
|
|
53653
|
+
}
|
|
53654
|
+
|
|
53655
|
+
oldDecimalValue = "0." + oldDecimalValue;
|
|
53656
|
+
var newTimeSpent = timeSpent + parseFloat(oldDecimalValue);
|
|
53657
|
+
newTimeSpent = newTimeSpent.toFixed(2);
|
|
53658
|
+
return parseFloat(newTimeSpent);
|
|
53659
|
+
}
|
|
53660
|
+
};
|
|
53661
|
+
|
|
53662
|
+
var plusButtonClickHandler = function plusButtonClickHandler() {
|
|
53663
|
+
var time = ConvertMinutesToDecimal(spentMinutes + stepValue);
|
|
53664
|
+
setSpentHours(Math.trunc(time));
|
|
53665
|
+
setSpentMinutes(Math.round(time % 1 * 60));
|
|
53666
|
+
setVal(time);
|
|
53667
|
+
onChange(id, time);
|
|
53668
|
+
};
|
|
53669
|
+
|
|
53670
|
+
var minusButtonClickHandler = function minusButtonClickHandler() {
|
|
53671
|
+
var time = ConvertMinutesToDecimal(spentMinutes - stepValue);
|
|
53672
|
+
setSpentHours(Math.trunc(time));
|
|
53673
|
+
setSpentMinutes(Math.round(time % 1 * 60));
|
|
53674
|
+
setVal(time);
|
|
53675
|
+
onChange(id, time);
|
|
53676
|
+
};
|
|
53677
|
+
|
|
53678
|
+
var minutesChangeHandler = function minutesChangeHandler(_, value) {
|
|
53679
|
+
setSpentMinutes(value);
|
|
53680
|
+
var time = ConvertMinutesToDecimal(value);
|
|
53681
|
+
setTimeout(function () {
|
|
53682
|
+
setSpentHours(Math.trunc(time));
|
|
53683
|
+
setSpentMinutes(Math.round(time % 1 * 60));
|
|
53684
|
+
setVal(time);
|
|
53685
|
+
}, 100);
|
|
53686
|
+
onChange(id, time);
|
|
53687
|
+
};
|
|
53688
|
+
|
|
53689
|
+
var hoursChangeHandler = function hoursChangeHandler(_, value) {
|
|
53690
|
+
setSpentHours(value);
|
|
53691
|
+
var time = ConvertHoursToDecimal(value);
|
|
53692
|
+
setTimeout(function () {
|
|
53693
|
+
setSpentHours(Math.trunc(time));
|
|
53694
|
+
setSpentMinutes(Math.round(time % 1 * 60));
|
|
53695
|
+
setVal(time);
|
|
53696
|
+
}, 100);
|
|
53697
|
+
onChange(id, time);
|
|
53698
|
+
};
|
|
53699
|
+
|
|
53700
|
+
return /*#__PURE__*/React__default['default'].createElement(Container, {
|
|
53701
|
+
className: className
|
|
53702
|
+
}, /*#__PURE__*/React__default['default'].createElement(FlexCenter, null, /*#__PURE__*/React__default['default'].createElement(ButtonWraper, null, /*#__PURE__*/React__default['default'].createElement(Button$1, {
|
|
53703
|
+
icon: "minus",
|
|
53704
|
+
onClick: minusButtonClickHandler,
|
|
53705
|
+
disabled: disabled,
|
|
53706
|
+
size: size,
|
|
53707
|
+
color: color,
|
|
53708
|
+
theme: theme
|
|
53709
|
+
})), /*#__PURE__*/React__default['default'].createElement(ButtonWraper, null, /*#__PURE__*/React__default['default'].createElement(Button$1, {
|
|
53710
|
+
id: "addButton",
|
|
53711
|
+
icon: "plus",
|
|
53712
|
+
onClick: plusButtonClickHandler,
|
|
53713
|
+
disabled: disabled,
|
|
53714
|
+
size: size,
|
|
53715
|
+
color: color,
|
|
53716
|
+
theme: theme
|
|
53717
|
+
}))), /*#__PURE__*/React__default['default'].createElement(FormField, {
|
|
53718
|
+
label: "h",
|
|
53719
|
+
required: true
|
|
53720
|
+
}, /*#__PURE__*/React__default['default'].createElement(NumberInput, {
|
|
53721
|
+
id: "timeSpentHours",
|
|
53722
|
+
value: spentHours,
|
|
53723
|
+
onChange: hoursChangeHandler,
|
|
53724
|
+
disabled: disabled,
|
|
53725
|
+
size: size,
|
|
53726
|
+
color: color,
|
|
53727
|
+
theme: theme
|
|
53728
|
+
})), /*#__PURE__*/React__default['default'].createElement(FormField, {
|
|
53729
|
+
label: "min",
|
|
53730
|
+
required: true
|
|
53731
|
+
}, /*#__PURE__*/React__default['default'].createElement(NumberInput, {
|
|
53732
|
+
id: "timeSpentMinutes",
|
|
53733
|
+
value: spentMinutes,
|
|
53734
|
+
onChange: minutesChangeHandler,
|
|
53735
|
+
label: "min",
|
|
53736
|
+
disabled: disabled,
|
|
53737
|
+
size: size,
|
|
53738
|
+
color: color,
|
|
53739
|
+
theme: theme
|
|
53740
|
+
})));
|
|
53741
|
+
};
|
|
53742
|
+
|
|
53743
|
+
TimeInput.defaultProps = {
|
|
53744
|
+
id: "",
|
|
53745
|
+
theme: theme,
|
|
53746
|
+
disabled: false,
|
|
53747
|
+
onChange: function onChange() {},
|
|
53748
|
+
className: "",
|
|
53749
|
+
preventDefault: true,
|
|
53750
|
+
size: "small",
|
|
53751
|
+
color: "primary",
|
|
53752
|
+
value: "",
|
|
53753
|
+
step: ""
|
|
53754
|
+
};
|
|
53755
|
+
TimeInput.propTypes = {
|
|
53756
|
+
theme: PropTypes__default['default'].object.isRequired,
|
|
53757
|
+
id: PropTypes__default['default'].string,
|
|
53758
|
+
disabled: PropTypes__default['default'].bool,
|
|
53759
|
+
onChange: PropTypes__default['default'].func,
|
|
53760
|
+
className: PropTypes__default['default'].string,
|
|
53761
|
+
value: PropTypes__default['default'].string,
|
|
53762
|
+
size: PropTypes__default['default'].oneOf(["small", "medium", "large"]),
|
|
53763
|
+
color: PropTypes__default['default'].oneOf(["primary", "secondary", "gray"]),
|
|
53764
|
+
step: PropTypes__default['default'].string
|
|
53765
|
+
};
|
|
53766
|
+
|
|
53531
53767
|
exports.Alert = Alet;
|
|
53532
53768
|
exports.Button = Button$1;
|
|
53533
53769
|
exports.CheckBox = CheckBox;
|
|
@@ -53555,5 +53791,6 @@ exports.Tabs = Tabs;
|
|
|
53555
53791
|
exports.TagSelector = TagSelector;
|
|
53556
53792
|
exports.TextArea = TextArea;
|
|
53557
53793
|
exports.TextInput = TextInput;
|
|
53794
|
+
exports.TimeInput = TimeInput;
|
|
53558
53795
|
exports.ToggleSwitch = ToggleSwitch;
|
|
53559
53796
|
exports.theme = theme;
|