@lanaco/lnc-react-ui 2.1.45 → 2.1.47

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.
Files changed (3) hide show
  1. package/lib/index.esm.js +573 -562
  2. package/lib/index.js +573 -562
  3. package/package.json +1 -1
package/lib/index.esm.js CHANGED
@@ -6982,6 +6982,148 @@ ConfirmationForm.propTypes = {
6982
6982
  color: PropTypes.oneOf(["primary", "secondary", "success", "error", "warning", "gray", "background"])
6983
6983
  };
6984
6984
 
6985
+ var css_248z$5 = ".styles-module_dropbtn__3BuA0 {\n font-size: var(--base-additional-text-font-size);\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n\n.styles-module_disabled__3pCU6 {\n color: gray;\n}\n\n.styles-module_dropdownContent__2g5rN {\n display: none;\n position: absolute;\n background-color: #f1f1f1;\n min-width: 160px;\n box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);\n z-index: 1;\n}\n\n.styles-module_dropdownContent__2g5rN a {\n background-color: var(--lanaco-grids-and-forms-color);\n color: var(--color-base-blue) !important;\n padding: 6px 6px;\n text-decoration: none;\n display: block;\n font-size: 14px;\n padding: 2px;\n}\n\n.styles-module_dropdownContent__2g5rN a:hover {\n background-color: gainsboro;\n color: #0091a7 !important;\n}\n\n.styles-module_dropdown__zPTAO:hover .styles-module_dropdownContent__2g5rN {\n display: block;\n}\n\n.styles-module_linkInnerSpan__2Gjny {\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: flex-start;\n padding: 2px;\n}\n\n.styles-module_linkIconSpan__1IQ0O {\n min-width: 20%;\n max-width: 20%;\n}\n\n.styles-module_iconSpan__2IYf9 {\n position: relative;\n}\n\n@keyframes styles-module_mymove__2DflL {\n from {\n top: 0px;\n }\n to {\n top: 3px;\n }\n}\n\n.styles-module_dropdown__zPTAO:hover .styles-module_iconSpan__2IYf9 {\n animation: styles-module_mymove__2DflL 0.4s;\n animation-iteration-count: infinite;\n}\n";
6986
+ var styles = {"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"};
6987
+ styleInject(css_248z$5);
6988
+
6989
+ var _templateObject$q;
6990
+
6991
+ var getPadding = function getPadding(size) {
6992
+ if (size === "small") return "0.4125rem 0.34375rem";
6993
+ if (size === "medium") return "0.475rem 0.415625rem";
6994
+ if (size === "large") return "0.5375rem 0.44375rem";
6995
+ };
6996
+
6997
+ var heightBySize$d = function heightBySize(size) {
6998
+ if (size === "small") return "max-height: 1.625rem; min-height: 1.625rem;";
6999
+ if (size === "medium") return "max-height: 2rem; min-height: 2rem;";
7000
+ if (size === "large") return "max-height: 2.375rem; min-height: 2.375rem;";
7001
+ };
7002
+
7003
+ var Span$1 = newStyled.span(_templateObject$q || (_templateObject$q = _taggedTemplateLiteral(["\n display: inline-block;\n box-sizing: border-box;\n background-color: inherit;\n font-size: ", ";\n padding: ", ";\n color: ", ";\n ", "\n"])), function (props) {
7004
+ return props.theme.typography[props.size].fontSize;
7005
+ }, function (props) {
7006
+ return getPadding(props.size);
7007
+ }, function (props) {
7008
+ return props.theme.palette[props.color].main;
7009
+ }, function (props) {
7010
+ return heightBySize$d(props.size);
7011
+ });
7012
+
7013
+ var Icon$2 = function Icon(props) {
7014
+ var tooltip = props.tooltip,
7015
+ icon = props.icon,
7016
+ iconStyle = props.iconStyle,
7017
+ className = props.className,
7018
+ size = props.size,
7019
+ color = props.color,
7020
+ theme = props.theme;
7021
+ var themeProps = {
7022
+ theme: theme,
7023
+ size: size,
7024
+ color: color
7025
+ };
7026
+
7027
+ var getIconClass = function getIconClass() {
7028
+ var style = iconStyle === "solid" ? "fas" : "far";
7029
+ return "".concat(style, " fa-").concat(icon, " fa-fw");
7030
+ };
7031
+
7032
+ return /*#__PURE__*/React__default.createElement(Span$1, _extends$d({}, themeProps, {
7033
+ className: className,
7034
+ tooltip: tooltip
7035
+ }), /*#__PURE__*/React__default.createElement("i", {
7036
+ className: getIconClass()
7037
+ }));
7038
+ };
7039
+
7040
+ Icon$2.defaultProps = {
7041
+ tooltip: "",
7042
+ icon: "",
7043
+ iconStyle: "solid",
7044
+ className: "",
7045
+ size: "small",
7046
+ color: "primary",
7047
+ theme: theme
7048
+ };
7049
+ Icon$2.propTypes = {
7050
+ tooltip: PropTypes.string,
7051
+ theme: PropTypes.object.isRequired,
7052
+ icon: PropTypes.string,
7053
+ iconStyle: PropTypes.oneOf(["solid", "regular"]),
7054
+ className: PropTypes.string,
7055
+ size: PropTypes.oneOf(["small", "medium", "large"]),
7056
+ color: PropTypes.oneOf(["primary", "secondary", "success", "error", "warning", "gray", "white", "black"])
7057
+ };
7058
+
7059
+ var _templateObject$p, _templateObject2$k, _templateObject3$f;
7060
+
7061
+ var Dropdown = newStyled.div(_templateObject$p || (_templateObject$p = _taggedTemplateLiteral(["\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) {
7062
+ return props.show ? "block" : "none";
7063
+ });
7064
+ var ItemWrapper$2 = newStyled.div(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteral(["\n padding: 2px;\n"])));
7065
+ var Item$4 = newStyled.a(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteral(["\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); //============================================================
7066
+
7067
+ var DropdownMenu = function DropdownMenu(props) {
7068
+ var _props$actionData = props.actionData,
7069
+ actionData = _props$actionData === void 0 ? function () {} : _props$actionData,
7070
+ _props$items = props.items,
7071
+ items = _props$items === void 0 ? [] : _props$items;
7072
+
7073
+ var _useState = useState(false),
7074
+ _useState2 = _slicedToArray(_useState, 2),
7075
+ show = _useState2[0],
7076
+ setShow = _useState2[1];
7077
+
7078
+ var onHover = function onHover() {
7079
+ if (props.disabled !== true) setShow(true);
7080
+ };
7081
+
7082
+ var onBlur = function onBlur() {
7083
+ setShow(false);
7084
+ };
7085
+
7086
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
7087
+ onMouseOver: onHover,
7088
+ onMouseOut: onBlur
7089
+ }, /*#__PURE__*/React__default.createElement(Button$1, {
7090
+ disabled: props.disabled,
7091
+ onClick: onHover,
7092
+ icon: "bars",
7093
+ inverted: true
7094
+ })), /*#__PURE__*/React__default.createElement(Dropdown, {
7095
+ show: show
7096
+ }, items.map(function (x, i) {
7097
+ return /*#__PURE__*/React__default.createElement(ItemWrapper$2, {
7098
+ key: i,
7099
+ onMouseOver: onHover,
7100
+ onMouseOut: onBlur
7101
+ }, /*#__PURE__*/React__default.createElement(Item$4, {
7102
+ href: "#",
7103
+ onMouseOver: onHover,
7104
+ onMouseOut: onBlur,
7105
+ onClick: function onClick(e) {
7106
+ e.preventDefault();
7107
+ x.action(actionData);
7108
+ }
7109
+ }, /*#__PURE__*/React__default.createElement("span", {
7110
+ className: styles.linkInnerSpan
7111
+ }, /*#__PURE__*/React__default.createElement("span", {
7112
+ className: styles.linkIconSpan
7113
+ }, /*#__PURE__*/React__default.createElement(Icon$2, {
7114
+ icon: x.icon
7115
+ })), x.name)));
7116
+ })));
7117
+ };
7118
+
7119
+ var freeze = function freeze(dependcies) {
7120
+ var freeze = false;
7121
+ dependcies.forEach(function (el) {
7122
+ freeze = freeze || el;
7123
+ });
7124
+ return freeze;
7125
+ };
7126
+
6985
7127
  /*! *****************************************************************************
6986
7128
  Copyright (c) Microsoft Corporation.
6987
7129
 
@@ -14619,11 +14761,11 @@ var AnimatePresence = function (_a) {
14619
14761
  : childrenToRender.map(function (child) { return cloneElement(child); })));
14620
14762
  };
14621
14763
 
14622
- var _templateObject$q, _templateObject2$k;
14623
- var Overlay = newStyled(motion.div)(_templateObject$q || (_templateObject$q = _taggedTemplateLiteral(["\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) {
14764
+ var _templateObject$o, _templateObject2$j;
14765
+ var Overlay = newStyled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteral(["\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 overflow: hidden;\n"])), function (props) {
14624
14766
  return props.zIndex;
14625
14767
  });
14626
- var ModalContainer = newStyled(motion.div)(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteral(["\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) {
14768
+ var ModalContainer = newStyled(motion.div)(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteral(["\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) {
14627
14769
  return props.width;
14628
14770
  }, function (props) {
14629
14771
  return props.zIndex;
@@ -14666,8 +14808,7 @@ var Content$4 = newStyled.div(function (props) {
14666
14808
  });
14667
14809
 
14668
14810
  function Modal(props) {
14669
- var onClose = props.onClose,
14670
- open = props.open,
14811
+ var open = props.open,
14671
14812
  zIndex = props.zIndex,
14672
14813
  header = props.header,
14673
14814
  className = props.className,
@@ -14680,6 +14821,18 @@ function Modal(props) {
14680
14821
  width = props.width,
14681
14822
  basic = props.basic,
14682
14823
  headerTitleComponent = props.headerTitleComponent;
14824
+ useEffect(function () {
14825
+ if (open) {
14826
+ document.body.style.overflow = "hidden";
14827
+ } else {
14828
+ document.body.style.overflow = "auto";
14829
+ }
14830
+ }, [open]);
14831
+
14832
+ var onClose = function onClose(event) {
14833
+ props.onClose(event);
14834
+ };
14835
+
14683
14836
  var themeProps = {
14684
14837
  theme: theme,
14685
14838
  size: size,
@@ -14694,7 +14847,6 @@ function Modal(props) {
14694
14847
  if (event.target !== event.currentTarget) return;
14695
14848
 
14696
14849
  if (clickOutsideToClose || !showHeader) {
14697
- document.body.style.overflow = "auto";
14698
14850
  onClose(event);
14699
14851
  }
14700
14852
  };
@@ -14712,11 +14864,6 @@ function Modal(props) {
14712
14864
  top: "-50%"
14713
14865
  }
14714
14866
  };
14715
-
14716
- if (open) {
14717
- document.body.style.overflow = "hidden";
14718
- }
14719
-
14720
14867
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, open && /*#__PURE__*/React__default.createElement(Overlay, _extends$d({}, themeProps, {
14721
14868
  onClick: onClickOutsideModal,
14722
14869
  className: className
@@ -14729,7 +14876,6 @@ function Modal(props) {
14729
14876
  icon: "times",
14730
14877
  iconStyle: "solid",
14731
14878
  onClick: function onClick(e) {
14732
- document.body.style.overflow = "auto";
14733
14879
  onClose(e);
14734
14880
  },
14735
14881
  color: basic ? "transparent" : themeProps.color
@@ -14766,39 +14912,395 @@ Modal.propTypes = {
14766
14912
  headerTitleComponent: PropTypes.node
14767
14913
  };
14768
14914
 
14769
- var css_248z$5 = ".styles-module_dropbtn__3BuA0 {\n font-size: var(--base-additional-text-font-size);\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n\n.styles-module_disabled__3pCU6 {\n color: gray;\n}\n\n.styles-module_dropdownContent__2g5rN {\n display: none;\n position: absolute;\n background-color: #f1f1f1;\n min-width: 160px;\n box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);\n z-index: 1;\n}\n\n.styles-module_dropdownContent__2g5rN a {\n background-color: var(--lanaco-grids-and-forms-color);\n color: var(--color-base-blue) !important;\n padding: 6px 6px;\n text-decoration: none;\n display: block;\n font-size: 14px;\n padding: 2px;\n}\n\n.styles-module_dropdownContent__2g5rN a:hover {\n background-color: gainsboro;\n color: #0091a7 !important;\n}\n\n.styles-module_dropdown__zPTAO:hover .styles-module_dropdownContent__2g5rN {\n display: block;\n}\n\n.styles-module_linkInnerSpan__2Gjny {\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: flex-start;\n padding: 2px;\n}\n\n.styles-module_linkIconSpan__1IQ0O {\n min-width: 20%;\n max-width: 20%;\n}\n\n.styles-module_iconSpan__2IYf9 {\n position: relative;\n}\n\n@keyframes styles-module_mymove__2DflL {\n from {\n top: 0px;\n }\n to {\n top: 3px;\n }\n}\n\n.styles-module_dropdown__zPTAO:hover .styles-module_iconSpan__2IYf9 {\n animation: styles-module_mymove__2DflL 0.4s;\n animation-iteration-count: infinite;\n}\n";
14770
- var styles = {"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"};
14771
- styleInject(css_248z$5);
14915
+ var heightBySize$c = function heightBySize(size, hasText) {
14916
+ if (size === "small") return "1.625rem";
14917
+ if (size === "medium") return "2rem";
14918
+ if (size === "large") return "2.375rem";
14919
+ };
14772
14920
 
14773
- var _templateObject$p;
14921
+ var Select = newStyled.select(function (props) {
14922
+ return {
14923
+ fontFamily: props.theme.typography.fontFamily,
14924
+ outline: "none",
14925
+ backgroundColor: props.theme.palette[props.color].lighter,
14926
+ color: props.theme.palette[props.color].textDark,
14927
+ transition: "all 250ms",
14928
+ fontSize: props.theme.typography[props.size].fontSize,
14929
+ border: "0px",
14930
+ borderBottom: "0.125rem solid ".concat(props.theme.palette[props.color].main),
14931
+ width: "100%",
14932
+ boxSizing: "border-box",
14933
+ minHeight: heightBySize$c(props.size),
14934
+ maxHeight: heightBySize$c(props.size),
14935
+ cursor: "pointer",
14936
+ "&:focus": {
14937
+ backgroundColor: props.theme.palette.common.white,
14938
+ color: props.theme.palette.common.black
14939
+ },
14940
+ "&:disabled": {
14941
+ backgroundColor: props.theme.palette.gray[200],
14942
+ borderBottom: "0.125rem solid ".concat(props.theme.palette.gray[900]),
14943
+ color: props.theme.palette.gray.textLight,
14944
+ cursor: "default",
14945
+ opacity: 0.7
14946
+ }
14947
+ };
14948
+ });
14949
+ var Option = newStyled.option(function (props) {
14950
+ return {
14951
+ fontFamily: props.theme.typography.fontFamily
14952
+ };
14953
+ });
14954
+ var DropDown = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
14955
+ var mapNameTo = props.mapNameTo,
14956
+ mapValueTo = props.mapValueTo,
14957
+ id = props.id,
14958
+ preventDefault = props.preventDefault,
14959
+ onChange = props.onChange,
14960
+ items = props.items,
14961
+ disabled = props.disabled,
14962
+ size = props.size,
14963
+ color = props.color,
14964
+ theme = props.theme,
14965
+ value = props.value,
14966
+ tooltip = props.tooltip,
14967
+ withoutEmpty = props.withoutEmpty,
14968
+ className = props.className;
14774
14969
 
14775
- var getPadding = function getPadding(size) {
14776
- if (size === "small") return "0.4125rem 0.34375rem";
14777
- if (size === "medium") return "0.475rem 0.415625rem";
14778
- if (size === "large") return "0.5375rem 0.44375rem";
14970
+ var handleOnChange = function handleOnChange(e) {
14971
+ if (preventDefault) e.preventDefault();
14972
+ onChange(id, e.target.value);
14973
+ };
14974
+
14975
+ var getItems = function getItems() {
14976
+ var name = "name";
14977
+ var value = "value";
14978
+ if (mapNameTo && mapNameTo !== "") name = mapNameTo;
14979
+ if (mapValueTo && mapValueTo !== "") value = mapValueTo;
14980
+ return items.map(function (el, i) {
14981
+ return /*#__PURE__*/React__default.createElement(Option, {
14982
+ theme: theme,
14983
+ size: size,
14984
+ color: color,
14985
+ key: i,
14986
+ value: el[value]
14987
+ }, el[name]);
14988
+ });
14989
+ };
14990
+
14991
+ return /*#__PURE__*/React__default.createElement(Select, {
14992
+ theme: theme,
14993
+ size: size,
14994
+ color: color,
14995
+ className: className,
14996
+ disabled: disabled,
14997
+ "default": value,
14998
+ title: tooltip,
14999
+ onChange: handleOnChange,
15000
+ value: value,
15001
+ ref: ref
15002
+ }, !withoutEmpty && /*#__PURE__*/React__default.createElement(Option, {
15003
+ theme: theme,
15004
+ size: size,
15005
+ color: color,
15006
+ key: -1,
15007
+ value: -1
15008
+ }, "???"), getItems());
15009
+ });
15010
+ DropDown.defaultProps = {
15011
+ id: "",
15012
+ disabled: false,
15013
+ tooltip: "",
15014
+ onChange: function onChange() {},
15015
+ className: "",
15016
+ preventDefault: true,
15017
+ size: "small",
15018
+ color: "primary",
15019
+ theme: theme,
15020
+ items: [],
15021
+ withoutEmpty: false,
15022
+ mapValueTo: "value",
15023
+ mapNameTo: "name"
15024
+ };
15025
+ DropDown.propTypes = {
15026
+ theme: PropTypes.object.isRequired,
15027
+ id: PropTypes.string,
15028
+ disabled: PropTypes.bool,
15029
+ tooltip: PropTypes.string,
15030
+ onChange: PropTypes.func,
15031
+ className: PropTypes.string,
15032
+ preventDefault: PropTypes.bool,
15033
+ withoutEmpty: PropTypes.bool,
15034
+ mapValueTo: PropTypes.string,
15035
+ mapNameTo: PropTypes.string,
15036
+ size: PropTypes.oneOf(["small", "medium", "large"]),
15037
+ color: PropTypes.oneOf(["primary", "secondary", "success", "error", "warning", "gray"])
14779
15038
  };
14780
15039
 
14781
- var heightBySize$d = function heightBySize(size) {
14782
- if (size === "small") return "max-height: 1.625rem; min-height: 1.625rem;";
14783
- if (size === "medium") return "max-height: 2rem; min-height: 2rem;";
14784
- if (size === "large") return "max-height: 2.375rem; min-height: 2.375rem;";
15040
+ var _templateObject$n, _templateObject2$i, _templateObject3$e, _templateObject4$d, _templateObject5$c, _templateObject6$a;
15041
+ var Container$j = newStyled.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: left;\n align-items: center;\n border-radius: 3px;\n padding: 4px;\n font-size: ", ";\n font-family: ", ";\n"])), function (props) {
15042
+ return props.theme.typography.small.fontSize;
15043
+ }, function (props) {
15044
+ return props.theme.typography.fontFamily;
15045
+ });
15046
+ var Item$3 = newStyled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteral(["\n padding-left: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
15047
+ return props.first ? "0" : "6px";
15048
+ });
15049
+ var ExportItem = newStyled.div(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteral(["\n padding-left: 6px;\n display: flex;\n align-items: center;\n margin-left: auto;\n"])));
15050
+ var ItemText = newStyled.div(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteral(["\n padding-left: 12px;\n display: flex;\n align-items: center;\n"])));
15051
+ var ItemCurrentPage = newStyled.div(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteral(["\n padding-left: 6px;\n display: flex;\n align-items: center;\n"])));
15052
+ var ItemDropdown = newStyled.div(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteral(["\n padding-left: 14px;\n display: flex;\n align-items: center;\n"])));
15053
+
15054
+ var Pagination = function Pagination(props) {
15055
+ //======================== PROPS ============================================
15056
+ var EnableExports = props.EnableExports,
15057
+ CurrentPage = props.CurrentPage,
15058
+ IsLoading = props.IsLoading,
15059
+ DataCount = props.DataCount,
15060
+ PageSizes = props.PageSizes,
15061
+ PageSize = props.PageSize,
15062
+ OnPageSizeChanged = props.OnPageSizeChanged,
15063
+ LoadedDataCount = props.LoadedDataCount,
15064
+ CanGoToNextPage = props.CanGoToNextPage,
15065
+ CanGoToPreviousPage = props.CanGoToPreviousPage,
15066
+ CanGoToFirstPage = props.CanGoToFirstPage,
15067
+ CanGoToLastPage = props.CanGoToLastPage,
15068
+ goToNextPage = props.goToNextPage,
15069
+ goToPreviousPage = props.goToPreviousPage,
15070
+ goToFirstPage = props.goToFirstPage,
15071
+ goToLastPage = props.goToLastPage,
15072
+ Export = props.Export,
15073
+ Localization = props.Localization,
15074
+ withPageInformation = props.withPageInformation,
15075
+ inverted = props.inverted,
15076
+ theme = props.theme,
15077
+ size = props.size,
15078
+ color = props.color;
15079
+ var themeProps = {
15080
+ theme: theme,
15081
+ size: size,
15082
+ color: color,
15083
+ inverted: inverted
15084
+ }; //======================== METHODS ==========================================
15085
+
15086
+ var getShowingNumberOfRows = function getShowingNumberOfRows() {
15087
+ if (DataCount === 0) return Localization.NoRowsToShow || "No data to show";
15088
+ var text = Localization.Showing || "Showing ";
15089
+ var multiplicator = parseInt(CurrentPage - 1) * parseInt(PageSize);
15090
+ text += DataCount === 0 ? 0 : multiplicator + 1;
15091
+ text += "-";
15092
+ text += parseInt(LoadedDataCount) + multiplicator;
15093
+ text += (Localization.Of || " of ") + DataCount;
15094
+ return text;
15095
+ };
15096
+
15097
+ var freeze = function freeze(dependcies) {
15098
+ var freeze = false;
15099
+ dependcies.forEach(function (el) {
15100
+ freeze = freeze || el;
15101
+ });
15102
+ return freeze;
15103
+ };
15104
+
15105
+ var freezeLoading = function freezeLoading() {
15106
+ var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
15107
+ return freeze([IsLoading].concat(_toConsumableArray$3(args)));
15108
+ };
15109
+
15110
+ var getPageSizes = function getPageSizes() {
15111
+ return PageSizes.map(function (x) {
15112
+ return {
15113
+ name: x,
15114
+ value: x
15115
+ };
15116
+ });
15117
+ };
15118
+
15119
+ var exportToExcel = function exportToExcel() {
15120
+ return Export();
15121
+ };
15122
+
15123
+ var handlePageSizeChanged = function handlePageSizeChanged(_, value) {
15124
+ return OnPageSizeChanged(value);
15125
+ }; //======================== RENDER ==========================================
15126
+
15127
+
15128
+ var renderRowInformation = function renderRowInformation() {
15129
+ if (!withPageInformation) return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
15130
+ return /*#__PURE__*/React__default.createElement(ItemText, _extends$d({}, themeProps, {
15131
+ key: -1
15132
+ }), getShowingNumberOfRows());
15133
+ };
15134
+
15135
+ var renderCurrentPage = function renderCurrentPage() {
15136
+ return /*#__PURE__*/React__default.createElement(ItemCurrentPage, _extends$d({}, themeProps, {
15137
+ key: 0
15138
+ }), CurrentPage);
15139
+ };
15140
+
15141
+ var renderFirst = function renderFirst() {
15142
+ return /*#__PURE__*/React__default.createElement(Item$3, _extends$d({
15143
+ first: true
15144
+ }, themeProps, {
15145
+ key: 1
15146
+ }), /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
15147
+ icon: "angle-double-left",
15148
+ onClick: freezeLoading() ? function () {} : function () {
15149
+ return goToFirstPage(PageSize, CurrentPage);
15150
+ },
15151
+ disabled: !CanGoToFirstPage,
15152
+ tooltip: Localization.First
15153
+ })));
15154
+ };
15155
+
15156
+ var renderPrevious = function renderPrevious() {
15157
+ return /*#__PURE__*/React__default.createElement(Item$3, _extends$d({
15158
+ key: 2
15159
+ }, themeProps), /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
15160
+ icon: "angle-left",
15161
+ onClick: freezeLoading() ? function () {} : function () {
15162
+ return goToPreviousPage(PageSize, CurrentPage);
15163
+ },
15164
+ disabled: !CanGoToPreviousPage,
15165
+ tooltip: Localization.Previous
15166
+ })));
15167
+ };
15168
+
15169
+ var renderNext = function renderNext() {
15170
+ return /*#__PURE__*/React__default.createElement(Item$3, _extends$d({
15171
+ key: 3
15172
+ }, themeProps), /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
15173
+ icon: "angle-right",
15174
+ onClick: freezeLoading() ? function () {} : function () {
15175
+ return goToNextPage(PageSize, CurrentPage);
15176
+ },
15177
+ disabled: !CanGoToNextPage,
15178
+ tooltip: Localization.Next
15179
+ })));
15180
+ };
15181
+
15182
+ var renderLast = function renderLast() {
15183
+ return /*#__PURE__*/React__default.createElement(Item$3, _extends$d({
15184
+ key: 4
15185
+ }, themeProps), /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
15186
+ icon: "angle-double-right",
15187
+ onClick: freezeLoading() ? function () {} : function () {
15188
+ return goToLastPage(PageSize, CurrentPage);
15189
+ },
15190
+ disabled: !CanGoToLastPage,
15191
+ tooltip: Localization.Last
15192
+ })));
15193
+ };
15194
+
15195
+ var renderPageSize = function renderPageSize() {
15196
+ return /*#__PURE__*/React__default.createElement(ItemDropdown, _extends$d({
15197
+ key: 5
15198
+ }, themeProps), /*#__PURE__*/React__default.createElement(DropDown, _extends$d({}, themeProps, {
15199
+ items: getPageSizes(),
15200
+ value: PageSize // disabled={freezeLoading()}
15201
+ ,
15202
+ onChange: freezeLoading() ? function () {} : handlePageSizeChanged,
15203
+ withoutEmpty: true
15204
+ })));
15205
+ };
15206
+
15207
+ var renderExportButtons = function renderExportButtons() {
15208
+ if (!EnableExports) return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
15209
+ return /*#__PURE__*/React__default.createElement(ExportItem, _extends$d({
15210
+ key: 6
15211
+ }, themeProps), /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
15212
+ icon: "file-excel",
15213
+ onClick: freezeLoading() ? function () {} : function () {
15214
+ return exportToExcel();
15215
+ },
15216
+ tooltip: Localization.ExportToExcel
15217
+ })));
15218
+ };
15219
+
15220
+ return /*#__PURE__*/React__default.createElement(Container$j, themeProps, renderFirst(), renderPrevious(), renderCurrentPage(), renderNext(), renderLast(), renderPageSize(), renderRowInformation(), renderExportButtons());
14785
15221
  };
14786
15222
 
14787
- var Span$1 = newStyled.span(_templateObject$p || (_templateObject$p = _taggedTemplateLiteral(["\n display: inline-block;\n box-sizing: border-box;\n background-color: inherit;\n font-size: ", ";\n padding: ", ";\n color: ", ";\n ", "\n"])), function (props) {
14788
- return props.theme.typography[props.size].fontSize;
15223
+ Pagination.defaultProps = {
15224
+ Config: {},
15225
+ withPageInformation: true,
15226
+ Localization: {
15227
+ First: "First",
15228
+ Last: "Last",
15229
+ Next: "Next",
15230
+ Previous: "Previous"
15231
+ },
15232
+ //------------------------------
15233
+ EnableExports: false,
15234
+ CurrentPage: 1,
15235
+ IsLoading: false,
15236
+ DataCount: 0,
15237
+ PageSizes: [10, 20, 30, 40, 50],
15238
+ PageSize: 10,
15239
+ OnPageSizeChanged: function OnPageSizeChanged() {},
15240
+ LoadedDataCount: 0,
15241
+ CanGoToNextPage: false,
15242
+ CanGoToPreviousPage: false,
15243
+ CanGoToFirstPage: false,
15244
+ CanGoToLastPage: false,
15245
+ goToNextPage: function goToNextPage() {},
15246
+ goToPreviousPage: function goToPreviousPage() {},
15247
+ goToFirstPage: function goToFirstPage() {},
15248
+ goToLastPage: function goToLastPage() {},
15249
+ Export: function Export() {},
15250
+ //-------------------------------
15251
+ inverted: false,
15252
+ theme: theme,
15253
+ color: "primary",
15254
+ size: "small"
15255
+ };
15256
+ Pagination.propTypes = {
15257
+ Config: PropTypes.object,
15258
+ Localization: PropTypes.object,
15259
+ withPageInformation: PropTypes.bool,
15260
+ //------------------------------
15261
+ EnableExports: PropTypes.bool,
15262
+ CurrentPage: PropTypes.number,
15263
+ IsLoading: PropTypes.bool,
15264
+ DataCount: PropTypes.number,
15265
+ PageSizes: PropTypes.array,
15266
+ PageSize: PropTypes.number,
15267
+ OnPageSizeChanged: PropTypes.func,
15268
+ LoadedDataCount: PropTypes.number,
15269
+ CanGoToNextPage: PropTypes.bool,
15270
+ CanGoToPreviousPage: PropTypes.bool,
15271
+ CanGoToFirstPage: PropTypes.bool,
15272
+ CanGoToLastPage: PropTypes.bool,
15273
+ goToNextPage: PropTypes.func,
15274
+ goToPreviousPage: PropTypes.func,
15275
+ goToFirstPage: PropTypes.func,
15276
+ goToLastPage: PropTypes.func,
15277
+ Export: PropTypes.func,
15278
+ //-------------------------------
15279
+ inverted: PropTypes.bool,
15280
+ theme: PropTypes.object.isRequired,
15281
+ size: PropTypes.oneOf(["small", "medium", "large"]),
15282
+ color: PropTypes.oneOf(["primary", "secondary", "success", "error", "warning", "gray"])
15283
+ };
15284
+
15285
+ var _templateObject$m, _templateObject2$h;
15286
+
15287
+ var heightBySize$b = function heightBySize(size) {
15288
+ if (size === "small") return "\n width: 1.4rem;\n height: 1.4rem;\n ";
15289
+ if (size === "medium") return "\n width: 1.6rem;\n height: 1.6rem;\n ";
15290
+ if (size === "large") return "\n width: 1.8rem;\n height: 1.8rem;\n ";
15291
+ };
15292
+
15293
+ var spin$2 = keyframes$2(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n to {\n transform: rotate(360deg);\n }\n"])));
15294
+ var StyledSpinner = newStyled.div(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteral(["\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) {
15295
+ return heightBySize$b(props.size);
14789
15296
  }, function (props) {
14790
- return getPadding(props.size);
15297
+ return props.theme.palette[props.color].lighter;
14791
15298
  }, function (props) {
14792
15299
  return props.theme.palette[props.color].main;
14793
- }, function (props) {
14794
- return heightBySize$d(props.size);
14795
- });
15300
+ }, spin$2);
14796
15301
 
14797
- var Icon$2 = function Icon(props) {
14798
- var tooltip = props.tooltip,
14799
- icon = props.icon,
14800
- iconStyle = props.iconStyle,
14801
- className = props.className,
15302
+ var Spinner = function Spinner(props) {
15303
+ var className = props.className,
14802
15304
  size = props.size,
14803
15305
  color = props.color,
14804
15306
  theme = props.theme;
@@ -14807,98 +15309,26 @@ var Icon$2 = function Icon(props) {
14807
15309
  size: size,
14808
15310
  color: color
14809
15311
  };
14810
-
14811
- var getIconClass = function getIconClass() {
14812
- var style = iconStyle === "solid" ? "fas" : "far";
14813
- return "".concat(style, " fa-").concat(icon, " fa-fw");
14814
- };
14815
-
14816
- return /*#__PURE__*/React__default.createElement(Span$1, _extends$d({}, themeProps, {
14817
- className: className,
14818
- tooltip: tooltip
14819
- }), /*#__PURE__*/React__default.createElement("i", {
14820
- className: getIconClass()
15312
+ return /*#__PURE__*/React__default.createElement(StyledSpinner, _extends$d({}, themeProps, {
15313
+ className: className
14821
15314
  }));
14822
15315
  };
14823
15316
 
14824
- Icon$2.defaultProps = {
14825
- tooltip: "",
14826
- icon: "",
14827
- iconStyle: "solid",
15317
+ Spinner.defaultProps = {
14828
15318
  className: "",
14829
15319
  size: "small",
14830
15320
  color: "primary",
14831
15321
  theme: theme
14832
15322
  };
14833
- Icon$2.propTypes = {
14834
- tooltip: PropTypes.string,
15323
+ Spinner.propTypes = {
14835
15324
  theme: PropTypes.object.isRequired,
14836
- icon: PropTypes.string,
14837
- iconStyle: PropTypes.oneOf(["solid", "regular"]),
14838
15325
  className: PropTypes.string,
14839
15326
  size: PropTypes.oneOf(["small", "medium", "large"]),
14840
- color: PropTypes.oneOf(["primary", "secondary", "success", "error", "warning", "gray", "white", "black"])
15327
+ color: PropTypes.oneOf(["primary", "secondary", "success", "error", "warning", "gray"])
14841
15328
  };
14842
15329
 
14843
- var _templateObject$o, _templateObject2$j, _templateObject3$f;
14844
-
14845
- var Dropdown = newStyled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteral(["\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) {
14846
- return props.show ? "block" : "none";
14847
- });
14848
- var ItemWrapper$2 = newStyled.div(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteral(["\n padding: 2px;\n"])));
14849
- var Item$4 = newStyled.a(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteral(["\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); //============================================================
14850
-
14851
- var DropdownMenu = function DropdownMenu(props) {
14852
- var _props$actionData = props.actionData,
14853
- actionData = _props$actionData === void 0 ? function () {} : _props$actionData,
14854
- _props$items = props.items,
14855
- items = _props$items === void 0 ? [] : _props$items;
14856
-
14857
- var _useState = useState(false),
14858
- _useState2 = _slicedToArray(_useState, 2),
14859
- show = _useState2[0],
14860
- setShow = _useState2[1];
14861
-
14862
- var onHover = function onHover() {
14863
- if (props.disabled !== true) setShow(true);
14864
- };
14865
-
14866
- var onBlur = function onBlur() {
14867
- setShow(false);
14868
- };
14869
-
14870
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
14871
- onMouseOver: onHover,
14872
- onMouseOut: onBlur
14873
- }, /*#__PURE__*/React__default.createElement(Button$1, {
14874
- disabled: props.disabled,
14875
- onClick: onHover,
14876
- icon: "bars",
14877
- inverted: true
14878
- })), /*#__PURE__*/React__default.createElement(Dropdown, {
14879
- show: show
14880
- }, items.map(function (x, i) {
14881
- return /*#__PURE__*/React__default.createElement(ItemWrapper$2, {
14882
- key: i,
14883
- onMouseOver: onHover,
14884
- onMouseOut: onBlur
14885
- }, /*#__PURE__*/React__default.createElement(Item$4, {
14886
- href: "#",
14887
- onMouseOver: onHover,
14888
- onMouseOut: onBlur,
14889
- onClick: function onClick(e) {
14890
- e.preventDefault();
14891
- x.action(actionData);
14892
- }
14893
- }, /*#__PURE__*/React__default.createElement("span", {
14894
- className: styles.linkInnerSpan
14895
- }, /*#__PURE__*/React__default.createElement("span", {
14896
- className: styles.linkIconSpan
14897
- }, /*#__PURE__*/React__default.createElement(Icon$2, {
14898
- icon: x.icon
14899
- })), x.name)));
14900
- })));
14901
- };
15330
+ 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";
15331
+ styleInject(css_248z$4);
14902
15332
 
14903
15333
  var FormMode = {
14904
15334
  READ: "READ",
@@ -14911,24 +15341,16 @@ var ViewType = {
14911
15341
  FORM_VIEW: "FormView"
14912
15342
  };
14913
15343
 
14914
- var css_248z$4 = ".styles-module_editedBorder__1kxLW {\n border-top: 4.5px solid orange;\n /* padding-top: 10px; */\n}\n\n.styles-module_successBorder__2_tn2 {\n border-top: 4.5px solid green;\n /* padding-top: 10px; */\n}\n\n.styles-module_flexContainer__ifOLC {\n display: flex;\n justify-content: space-between;\n}\n\n@media only screen and (max-width: 1081px) {\n .styles-module_flexContainer__ifOLC {\n display: flex;\n flex-direction: column;\n }\n\n .styles-module_filterContainerHolder__3Fvqv {\n min-width: 100% !important;\n max-width: 100% !important;\n }\n}\n\n.styles-module_flexInnerContainer__29aU5 {\n display: flex;\n align-content: center;\n align-items: center;\n}\n\n.styles-module_filterContainerHolder__3Fvqv {\n min-width: 50%;\n max-width: 50%;\n}\n\n.styles-module_flexItem__2CpYr {\n padding-left: 6px;\n padding-right: 6px;\n font-size: 1.4em;\n max-height: 40px;\n}\n\n.styles-module_view__38xGS {\n margin-top: 15px;\n box-shadow: 0 0 20px #bebebe;\n height: 100%;\n overflow-y: auto;\n max-height: calc(100vh - 120px);\n}\n\n.styles-module_contextMenu__1wBsk {\n margin-left: 20px;\n}\n\n.styles-module_disabledChildren__3QAyB:hover {\n cursor: not-allowed;\n}\n\n.styles-module_disabledChildren__3QAyB * {\n pointer-events: none;\n opacity: 1;\n}\n\n.styles-module_movementFlexContainer__2DCXk {\n display: flex;\n flex-direction: row;\n}\n\n.styles-module_container__2BNuf {\n display: grid;\n grid-template-columns: 70% 30%;\n}\n\n.styles-module_flexContainerLeft__20szj {\n display: flex;\n flex-direction: row;\n padding-left: 15px;\n}\n\n.styles-module_flexContainerRight__2Dfw9 {\n display: flex;\n flex-direction: row-reverse;\n padding-right: 22px;\n}\n\n.styles-module_movementFlexItem__bTNJZ {\n padding: 10px;\n}\n\n.styles-module_row__19N86 {\n display: flex;\n flex-direction: row;\n}\n\n.styles-module_cell__1sqid {\n background-color: inherit;\n cursor: pointer;\n}\n\n.styles-module_pointer__3spmX {\n cursor: pointer !important;\n}\n\n.styles-module_header__1y2iY {\n cursor: pointer;\n background-color: var(--color-base-blue);\n color: var(--color-base-white);\n border-right: 1px solid #003954;\n text-align: left;\n padding-right: 5px;\n}\n\n.styles-module_header__1y2iY:hover {\n background-color: #00496b;\n}\n\n.styles-module_header__1y2iY:hover .styles-module_headerInnerIconDiv__bwi4x {\n color: white;\n}\n\n.styles-module_specialRenderCell__-KydO {\n background-color: inherit;\n cursor: pointer;\n font-size: 1em;\n}\n\n.styles-module_header__1y2iY,\n.styles-module_specialRenderCell__-KydO {\n text-align: center;\n padding-left: 5px;\n}\n\n.styles-module_withLeftPadding__3jC1x {\n padding-left: 5px;\n}\n\n.styles-module_cell__1sqid,\n.styles-module_specialRenderCell__-KydO {\n border-right: 1px solid #ccc;\n padding-left: 5px;\n}\n\n.styles-module_tableRowEven__jVl2g {\n background: white;\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-top: 1px solid transparent;\n}\n\n.styles-module_tableRowOdd__25e6T {\n background: whitesmoke;\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-top: 1px solid transparent;\n}\n\n.styles-module_tableRowEven__jVl2g:hover,\n.styles-module_tableRowOdd__25e6T:hover {\n border: 1px solid #0091a7 !important;\n position: relative;\n background-color: #73abf12e;\n}\n\n.styles-module_checkedRow__UiEsv {\n background-color: #ccebf0 !important;\n border-top: 1px solid gray;\n border-bottom: 1px solid gray;\n}\n\n.styles-module_table__3M2Ek {\n width: 100%;\n border-collapse: collapse;\n}\n\n@media screen and (max-width: 1400px) {\n .styles-module_table__3M2Ek {\n width: 100%;\n font-size: 0.7em;\n }\n}\n\n.styles-module_headerInnerDiv__39OF- {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.styles-module_headerInnerIconDiv__bwi4x {\n color: #b0b3b5;\n}\n\n.styles-module_selectColumn__2K77f {\n width: 50px !important;\n padding-right: 5px;\n}\n\n@media (max-width: 576px) {\n .styles-module_hide-576__1hiUv {\n display: none;\n }\n}\n\n@media (max-width: 768px) {\n .styles-module_hide-768__2KkSI {\n display: none;\n }\n}\n\n@media (max-width: 992px) {\n .styles-module_hide-992__2BwXA {\n display: none;\n }\n\n .styles-module_cell__1sqid,\n .styles-module_header__1y2iY {\n display: none;\n }\n\n .styles-module_cell__1sqid:first-child,\n .styles-module_cell__1sqid:nth-child(2),\n .styles-module_cell__1sqid:nth-child(3),\n .styles-module_header__1y2iY:first-child,\n .styles-module_header__1y2iY:nth-child(2),\n .styles-module_header__1y2iY:nth-child(3) {\n display: table-cell;\n }\n}\n\n@media (max-width: 1200px) {\n .styles-module_hide-1200__3CTPm {\n display: none;\n }\n}\n\n.styles-module_tablePaginationContainer__2vs7V {\n display: flex;\n flex-direction: row;\n font-size: 0.8em;\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n padding: 5px;\n}\n\n.styles-module_tablePaginationItem__3RjNk {\n padding-left: 10px;\n display: flex;\n align-items: center;\n}\n\n.styles-module_exportButtons__vd7yH {\n display: flex;\n font-size: 2em;\n justify-content: space-evenly;\n padding-right: 10px;\n width: 5%;\n}\n\n.styles-module_innerPaginationContainer__3eHKY {\n display: flex;\n}\n\n.styles-module_dirtyInfoButton__3U1xV {\n width: 100%;\n height: 100%;\n font-size: 1em;\n}\n";
14915
- styleInject(css_248z$4);
14916
-
14917
- var freeze = function freeze(dependcies) {
14918
- var freeze = false;
14919
- dependcies.forEach(function (el) {
14920
- freeze = freeze || el;
14921
- });
14922
- return freeze;
14923
- };
15344
+ var css_248z$3 = ".styles-module_editedBorder__1kxLW {\n border-top: 4.5px solid orange;\n /* padding-top: 10px; */\n}\n\n.styles-module_successBorder__2_tn2 {\n border-top: 4.5px solid green;\n /* padding-top: 10px; */\n}\n\n.styles-module_flexContainer__ifOLC {\n display: flex;\n justify-content: space-between;\n}\n\n@media only screen and (max-width: 1081px) {\n .styles-module_flexContainer__ifOLC {\n display: flex;\n flex-direction: column;\n }\n\n .styles-module_filterContainerHolder__3Fvqv {\n min-width: 100% !important;\n max-width: 100% !important;\n }\n}\n\n.styles-module_flexInnerContainer__29aU5 {\n display: flex;\n align-content: center;\n align-items: center;\n}\n\n.styles-module_filterContainerHolder__3Fvqv {\n min-width: 50%;\n max-width: 50%;\n}\n\n.styles-module_flexItem__2CpYr {\n padding-left: 6px;\n padding-right: 6px;\n font-size: 1.4em;\n max-height: 40px;\n}\n\n.styles-module_view__38xGS {\n margin-top: 15px;\n box-shadow: 0 0 20px #bebebe;\n height: 100%;\n overflow-y: auto;\n max-height: calc(100vh - 120px);\n}\n\n.styles-module_contextMenu__1wBsk {\n margin-left: 20px;\n}\n\n.styles-module_disabledChildren__3QAyB:hover {\n cursor: not-allowed;\n}\n\n.styles-module_disabledChildren__3QAyB * {\n pointer-events: none;\n opacity: 1;\n}\n\n.styles-module_movementFlexContainer__2DCXk {\n display: flex;\n flex-direction: row;\n}\n\n.styles-module_container__2BNuf {\n display: grid;\n grid-template-columns: 70% 30%;\n}\n\n.styles-module_flexContainerLeft__20szj {\n display: flex;\n flex-direction: row;\n padding-left: 15px;\n}\n\n.styles-module_flexContainerRight__2Dfw9 {\n display: flex;\n flex-direction: row-reverse;\n padding-right: 22px;\n}\n\n.styles-module_movementFlexItem__bTNJZ {\n padding: 10px;\n}\n\n.styles-module_row__19N86 {\n display: flex;\n flex-direction: row;\n}\n\n.styles-module_cell__1sqid {\n background-color: inherit;\n cursor: pointer;\n}\n\n.styles-module_pointer__3spmX {\n cursor: pointer !important;\n}\n\n.styles-module_header__1y2iY {\n cursor: pointer;\n background-color: var(--color-base-blue);\n color: var(--color-base-white);\n border-right: 1px solid #003954;\n text-align: left;\n padding-right: 5px;\n}\n\n.styles-module_header__1y2iY:hover {\n background-color: #00496b;\n}\n\n.styles-module_header__1y2iY:hover .styles-module_headerInnerIconDiv__bwi4x {\n color: white;\n}\n\n.styles-module_specialRenderCell__-KydO {\n background-color: inherit;\n cursor: pointer;\n font-size: 1em;\n}\n\n.styles-module_header__1y2iY,\n.styles-module_specialRenderCell__-KydO {\n text-align: center;\n padding-left: 5px;\n}\n\n.styles-module_withLeftPadding__3jC1x {\n padding-left: 5px;\n}\n\n.styles-module_cell__1sqid,\n.styles-module_specialRenderCell__-KydO {\n border-right: 1px solid #ccc;\n padding-left: 5px;\n}\n\n.styles-module_tableRowEven__jVl2g {\n background: white;\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-top: 1px solid transparent;\n}\n\n.styles-module_tableRowOdd__25e6T {\n background: whitesmoke;\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-top: 1px solid transparent;\n}\n\n.styles-module_tableRowEven__jVl2g:hover,\n.styles-module_tableRowOdd__25e6T:hover {\n border: 1px solid #0091a7 !important;\n position: relative;\n background-color: #73abf12e;\n}\n\n.styles-module_checkedRow__UiEsv {\n background-color: #ccebf0 !important;\n border-top: 1px solid gray;\n border-bottom: 1px solid gray;\n}\n\n.styles-module_table__3M2Ek {\n width: 100%;\n border-collapse: collapse;\n}\n\n@media screen and (max-width: 1400px) {\n .styles-module_table__3M2Ek {\n width: 100%;\n font-size: 0.7em;\n }\n}\n\n.styles-module_headerInnerDiv__39OF- {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.styles-module_headerInnerIconDiv__bwi4x {\n color: #b0b3b5;\n}\n\n.styles-module_selectColumn__2K77f {\n width: 50px !important;\n padding-right: 5px;\n}\n\n@media (max-width: 576px) {\n .styles-module_hide-576__1hiUv {\n display: none;\n }\n}\n\n@media (max-width: 768px) {\n .styles-module_hide-768__2KkSI {\n display: none;\n }\n}\n\n@media (max-width: 992px) {\n .styles-module_hide-992__2BwXA {\n display: none;\n }\n\n .styles-module_cell__1sqid,\n .styles-module_header__1y2iY {\n display: none;\n }\n\n .styles-module_cell__1sqid:first-child,\n .styles-module_cell__1sqid:nth-child(2),\n .styles-module_cell__1sqid:nth-child(3),\n .styles-module_header__1y2iY:first-child,\n .styles-module_header__1y2iY:nth-child(2),\n .styles-module_header__1y2iY:nth-child(3) {\n display: table-cell;\n }\n}\n\n@media (max-width: 1200px) {\n .styles-module_hide-1200__3CTPm {\n display: none;\n }\n}\n\n.styles-module_tablePaginationContainer__2vs7V {\n display: flex;\n flex-direction: row;\n font-size: 0.8em;\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n padding: 5px;\n}\n\n.styles-module_tablePaginationItem__3RjNk {\n padding-left: 10px;\n display: flex;\n align-items: center;\n}\n\n.styles-module_exportButtons__vd7yH {\n display: flex;\n font-size: 2em;\n justify-content: space-evenly;\n padding-right: 10px;\n width: 5%;\n}\n\n.styles-module_innerPaginationContainer__3eHKY {\n display: flex;\n}\n\n.styles-module_dirtyInfoButton__3U1xV {\n width: 100%;\n height: 100%;\n font-size: 1em;\n}\n";
15345
+ styleInject(css_248z$3);
14924
15346
 
14925
- var _templateObject$n, _templateObject2$i;
14926
- var Container$j = newStyled.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteral(["\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) {
15347
+ var _templateObject$l, _templateObject2$g;
15348
+ var Container$i = newStyled.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\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) {
14927
15349
  return props.theme.typography.small.fontSize;
14928
15350
  }, function (props) {
14929
15351
  return props.theme.typography.fontFamily;
14930
15352
  });
14931
- var Item$3 = newStyled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteral(["\n padding-left: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
15353
+ var Item$2 = newStyled.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteral(["\n padding-left: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
14932
15354
  return props.first ? "0" : "6px";
14933
15355
  });
14934
15356
 
@@ -14964,7 +15386,7 @@ var FormViewMovement = function FormViewMovement(props) {
14964
15386
 
14965
15387
 
14966
15388
  var renderFirst = function renderFirst() {
14967
- return /*#__PURE__*/React__default.createElement(Item$3, _extends$d({}, themeProps, {
15389
+ return /*#__PURE__*/React__default.createElement(Item$2, _extends$d({}, themeProps, {
14968
15390
  first: true
14969
15391
  }), /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
14970
15392
  icon: "angle-double-left",
@@ -14976,7 +15398,7 @@ var FormViewMovement = function FormViewMovement(props) {
14976
15398
  };
14977
15399
 
14978
15400
  var renderLast = function renderLast() {
14979
- return /*#__PURE__*/React__default.createElement(Item$3, themeProps, /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
15401
+ return /*#__PURE__*/React__default.createElement(Item$2, themeProps, /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
14980
15402
  icon: "angle-double-right",
14981
15403
  onClick: freezeLoading() ? function () {} : goToLastItem,
14982
15404
  disabled: !CanGoToLastItem,
@@ -14986,7 +15408,7 @@ var FormViewMovement = function FormViewMovement(props) {
14986
15408
  };
14987
15409
 
14988
15410
  var renderNext = function renderNext() {
14989
- return /*#__PURE__*/React__default.createElement(Item$3, themeProps, /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
15411
+ return /*#__PURE__*/React__default.createElement(Item$2, themeProps, /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
14990
15412
  icon: "angle-right",
14991
15413
  onClick: freezeLoading() ? function () {} : goToNextItem,
14992
15414
  disabled: !CanGoToNextItem,
@@ -14996,7 +15418,7 @@ var FormViewMovement = function FormViewMovement(props) {
14996
15418
  };
14997
15419
 
14998
15420
  var renderPrevious = function renderPrevious() {
14999
- return /*#__PURE__*/React__default.createElement(Item$3, themeProps, /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
15421
+ return /*#__PURE__*/React__default.createElement(Item$2, themeProps, /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
15000
15422
  icon: "angle-left",
15001
15423
  onClick: freezeLoading() ? function () {} : goToPreviousItem,
15002
15424
  disabled: !CanGoToPreviousItem,
@@ -15005,7 +15427,7 @@ var FormViewMovement = function FormViewMovement(props) {
15005
15427
  })));
15006
15428
  };
15007
15429
 
15008
- return /*#__PURE__*/React__default.createElement(Container$j, themeProps, renderFirst(), renderPrevious(), renderNext(), renderLast());
15430
+ return /*#__PURE__*/React__default.createElement(Container$i, themeProps, renderFirst(), renderPrevious(), renderNext(), renderLast());
15009
15431
  };
15010
15432
 
15011
15433
  FormViewMovement.defaultProps = {
@@ -32245,13 +32667,13 @@ var TableSelectionType = {
32245
32667
  MULTIPLE: "multiple"
32246
32668
  };
32247
32669
 
32248
- var _templateObject$m, _templateObject2$h, _templateObject3$e, _templateObject4$d, _templateObject5$c, _templateObject6$a, _templateObject7$7, _templateObject8$6, _templateObject9$6, _templateObject10$6, _templateObject11$4, _templateObject12$3;
32249
- var Container$i = newStyled.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n border-radius: 3px;\n font-size: ", ";\n font-family: ", ";\n"])), theme.typography.small.fontSize, theme.typography.fontFamily);
32250
- var Wrapper$2 = newStyled.div(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteral(["\n display: block;\n overflow-x: auto;\n white-space: nowrap;\n"])));
32251
- var TableTable$1 = newStyled.table(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteral(["\n border-collapse: collapse;\n width: 100%;\n"])));
32252
- var TableHead$1 = newStyled.thead(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteral(["\n color: ", ";\n border-top: 1px solid #80808025;\n"])), theme.palette.primary.textDark);
32253
- var TableHeadRow$1 = newStyled.tr(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteral(["\n border-bottom: 1px solid #80808025;\n"])));
32254
- var TableHeadCell$1 = newStyled.th(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteral(["\n text-align: left;\n transition: all 250ms ease;\n font-weight: 900;\n font-size: 13px;\n\n ", "\n\n &:first-of-type {\n border-radius: 3px 0 0 0;\n }\n\n &:last-of-type {\n border-radius: 0 3px 0 0;\n }\n\n &:hover {\n // background-color: ", ";\n background-color: whitesmoke;\n cursor: ", ";\n }\n"])), function (props) {
32670
+ var _templateObject$k, _templateObject2$f, _templateObject3$d, _templateObject4$c, _templateObject5$b, _templateObject6$9, _templateObject7$7, _templateObject8$6, _templateObject9$6, _templateObject10$6, _templateObject11$4, _templateObject12$3;
32671
+ var Container$h = newStyled.div(_templateObject$k || (_templateObject$k = _taggedTemplateLiteral(["\n border-radius: 3px;\n font-size: ", ";\n font-family: ", ";\n"])), theme.typography.small.fontSize, theme.typography.fontFamily);
32672
+ var Wrapper$2 = newStyled.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteral(["\n display: block;\n overflow-x: auto;\n white-space: nowrap;\n"])));
32673
+ var TableTable$1 = newStyled.table(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteral(["\n border-collapse: collapse;\n width: 100%;\n"])));
32674
+ var TableHead$1 = newStyled.thead(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteral(["\n color: ", ";\n border-top: 1px solid #80808025;\n"])), theme.palette.primary.textDark);
32675
+ var TableHeadRow$1 = newStyled.tr(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteral(["\n border-bottom: 1px solid #80808025;\n"])));
32676
+ var TableHeadCell$1 = newStyled.th(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteral(["\n text-align: left;\n transition: all 250ms ease;\n font-weight: 900;\n font-size: 13px;\n\n ", "\n\n &:first-of-type {\n border-radius: 3px 0 0 0;\n }\n\n &:last-of-type {\n border-radius: 0 3px 0 0;\n }\n\n &:hover {\n // background-color: ", ";\n background-color: whitesmoke;\n cursor: ", ";\n }\n"])), function (props) {
32255
32677
  return props.selectionCell === true ? "width: 27px; padding: 1px 1px 1px 6px;" : "padding: 5px 5px 5px 6px;";
32256
32678
  }, theme.palette.primary.light, function (props) {
32257
32679
  return props.hideOrdering ? "inherit" : "pointer";
@@ -32457,7 +32879,7 @@ var TableView = function TableView(props) {
32457
32879
  }));
32458
32880
  };
32459
32881
 
32460
- return /*#__PURE__*/React__default.createElement(Container$i, null, /*#__PURE__*/React__default.createElement(Wrapper$2, null, /*#__PURE__*/React__default.createElement(TableTable$1, {
32882
+ return /*#__PURE__*/React__default.createElement(Container$h, null, /*#__PURE__*/React__default.createElement(Wrapper$2, null, /*#__PURE__*/React__default.createElement(TableTable$1, {
32461
32883
  cellSpacing: 0
32462
32884
  }, /*#__PURE__*/React__default.createElement(TableHead$1, null, /*#__PURE__*/React__default.createElement(TableHeadRow$1, null, renderSelectAllHeaderCell(), Columns.filter(function (x) {
32463
32885
  return x.hide !== true;
@@ -32466,424 +32888,6 @@ var TableView = function TableView(props) {
32466
32888
  }))), /*#__PURE__*/React__default.createElement(TableBody$1, null, renderBody()))));
32467
32889
  };
32468
32890
 
32469
- var heightBySize$c = function heightBySize(size, hasText) {
32470
- if (size === "small") return "1.625rem";
32471
- if (size === "medium") return "2rem";
32472
- if (size === "large") return "2.375rem";
32473
- };
32474
-
32475
- var Select = newStyled.select(function (props) {
32476
- return {
32477
- fontFamily: props.theme.typography.fontFamily,
32478
- outline: "none",
32479
- backgroundColor: props.theme.palette[props.color].lighter,
32480
- color: props.theme.palette[props.color].textDark,
32481
- transition: "all 250ms",
32482
- fontSize: props.theme.typography[props.size].fontSize,
32483
- border: "0px",
32484
- borderBottom: "0.125rem solid ".concat(props.theme.palette[props.color].main),
32485
- width: "100%",
32486
- boxSizing: "border-box",
32487
- minHeight: heightBySize$c(props.size),
32488
- maxHeight: heightBySize$c(props.size),
32489
- cursor: "pointer",
32490
- "&:focus": {
32491
- backgroundColor: props.theme.palette.common.white,
32492
- color: props.theme.palette.common.black
32493
- },
32494
- "&:disabled": {
32495
- backgroundColor: props.theme.palette.gray[200],
32496
- borderBottom: "0.125rem solid ".concat(props.theme.palette.gray[900]),
32497
- color: props.theme.palette.gray.textLight,
32498
- cursor: "default",
32499
- opacity: 0.7
32500
- }
32501
- };
32502
- });
32503
- var Option = newStyled.option(function (props) {
32504
- return {
32505
- fontFamily: props.theme.typography.fontFamily
32506
- };
32507
- });
32508
- var DropDown = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
32509
- var mapNameTo = props.mapNameTo,
32510
- mapValueTo = props.mapValueTo,
32511
- id = props.id,
32512
- preventDefault = props.preventDefault,
32513
- onChange = props.onChange,
32514
- items = props.items,
32515
- disabled = props.disabled,
32516
- size = props.size,
32517
- color = props.color,
32518
- theme = props.theme,
32519
- value = props.value,
32520
- tooltip = props.tooltip,
32521
- withoutEmpty = props.withoutEmpty,
32522
- className = props.className;
32523
-
32524
- var handleOnChange = function handleOnChange(e) {
32525
- if (preventDefault) e.preventDefault();
32526
- onChange(id, e.target.value);
32527
- };
32528
-
32529
- var getItems = function getItems() {
32530
- var name = "name";
32531
- var value = "value";
32532
- if (mapNameTo && mapNameTo !== "") name = mapNameTo;
32533
- if (mapValueTo && mapValueTo !== "") value = mapValueTo;
32534
- return items.map(function (el, i) {
32535
- return /*#__PURE__*/React__default.createElement(Option, {
32536
- theme: theme,
32537
- size: size,
32538
- color: color,
32539
- key: i,
32540
- value: el[value]
32541
- }, el[name]);
32542
- });
32543
- };
32544
-
32545
- return /*#__PURE__*/React__default.createElement(Select, {
32546
- theme: theme,
32547
- size: size,
32548
- color: color,
32549
- className: className,
32550
- disabled: disabled,
32551
- "default": value,
32552
- title: tooltip,
32553
- onChange: handleOnChange,
32554
- value: value,
32555
- ref: ref
32556
- }, !withoutEmpty && /*#__PURE__*/React__default.createElement(Option, {
32557
- theme: theme,
32558
- size: size,
32559
- color: color,
32560
- key: -1,
32561
- value: -1
32562
- }, "???"), getItems());
32563
- });
32564
- DropDown.defaultProps = {
32565
- id: "",
32566
- disabled: false,
32567
- tooltip: "",
32568
- onChange: function onChange() {},
32569
- className: "",
32570
- preventDefault: true,
32571
- size: "small",
32572
- color: "primary",
32573
- theme: theme,
32574
- items: [],
32575
- withoutEmpty: false,
32576
- mapValueTo: "value",
32577
- mapNameTo: "name"
32578
- };
32579
- DropDown.propTypes = {
32580
- theme: PropTypes.object.isRequired,
32581
- id: PropTypes.string,
32582
- disabled: PropTypes.bool,
32583
- tooltip: PropTypes.string,
32584
- onChange: PropTypes.func,
32585
- className: PropTypes.string,
32586
- preventDefault: PropTypes.bool,
32587
- withoutEmpty: PropTypes.bool,
32588
- mapValueTo: PropTypes.string,
32589
- mapNameTo: PropTypes.string,
32590
- size: PropTypes.oneOf(["small", "medium", "large"]),
32591
- color: PropTypes.oneOf(["primary", "secondary", "success", "error", "warning", "gray"])
32592
- };
32593
-
32594
- var _templateObject$l, _templateObject2$g, _templateObject3$d, _templateObject4$c, _templateObject5$b, _templateObject6$9;
32595
- var Container$h = newStyled.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: left;\n align-items: center;\n border-radius: 3px;\n padding: 4px;\n font-size: ", ";\n font-family: ", ";\n"])), function (props) {
32596
- return props.theme.typography.small.fontSize;
32597
- }, function (props) {
32598
- return props.theme.typography.fontFamily;
32599
- });
32600
- var Item$2 = newStyled.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteral(["\n padding-left: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
32601
- return props.first ? "0" : "6px";
32602
- });
32603
- var ExportItem = newStyled.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteral(["\n padding-left: 6px;\n display: flex;\n align-items: center;\n margin-left: auto;\n"])));
32604
- var ItemText = newStyled.div(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteral(["\n padding-left: 12px;\n display: flex;\n align-items: center;\n"])));
32605
- var ItemCurrentPage = newStyled.div(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteral(["\n padding-left: 6px;\n display: flex;\n align-items: center;\n"])));
32606
- var ItemDropdown = newStyled.div(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteral(["\n padding-left: 14px;\n display: flex;\n align-items: center;\n"])));
32607
-
32608
- var Pagination = function Pagination(props) {
32609
- //======================== PROPS ============================================
32610
- var EnableExports = props.EnableExports,
32611
- CurrentPage = props.CurrentPage,
32612
- IsLoading = props.IsLoading,
32613
- DataCount = props.DataCount,
32614
- PageSizes = props.PageSizes,
32615
- PageSize = props.PageSize,
32616
- OnPageSizeChanged = props.OnPageSizeChanged,
32617
- LoadedDataCount = props.LoadedDataCount,
32618
- CanGoToNextPage = props.CanGoToNextPage,
32619
- CanGoToPreviousPage = props.CanGoToPreviousPage,
32620
- CanGoToFirstPage = props.CanGoToFirstPage,
32621
- CanGoToLastPage = props.CanGoToLastPage,
32622
- goToNextPage = props.goToNextPage,
32623
- goToPreviousPage = props.goToPreviousPage,
32624
- goToFirstPage = props.goToFirstPage,
32625
- goToLastPage = props.goToLastPage,
32626
- Export = props.Export,
32627
- Localization = props.Localization,
32628
- withPageInformation = props.withPageInformation,
32629
- inverted = props.inverted,
32630
- theme = props.theme,
32631
- size = props.size,
32632
- color = props.color;
32633
- var themeProps = {
32634
- theme: theme,
32635
- size: size,
32636
- color: color,
32637
- inverted: inverted
32638
- }; //======================== METHODS ==========================================
32639
-
32640
- var getShowingNumberOfRows = function getShowingNumberOfRows() {
32641
- if (DataCount === 0) return Localization.NoRowsToShow || "No data to show";
32642
- var text = Localization.Showing || "Showing ";
32643
- var multiplicator = parseInt(CurrentPage - 1) * parseInt(PageSize);
32644
- text += DataCount === 0 ? 0 : multiplicator + 1;
32645
- text += "-";
32646
- text += parseInt(LoadedDataCount) + multiplicator;
32647
- text += (Localization.Of || " of ") + DataCount;
32648
- return text;
32649
- };
32650
-
32651
- var freeze = function freeze(dependcies) {
32652
- var freeze = false;
32653
- dependcies.forEach(function (el) {
32654
- freeze = freeze || el;
32655
- });
32656
- return freeze;
32657
- };
32658
-
32659
- var freezeLoading = function freezeLoading() {
32660
- var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
32661
- return freeze([IsLoading].concat(_toConsumableArray$3(args)));
32662
- };
32663
-
32664
- var getPageSizes = function getPageSizes() {
32665
- return PageSizes.map(function (x) {
32666
- return {
32667
- name: x,
32668
- value: x
32669
- };
32670
- });
32671
- };
32672
-
32673
- var exportToExcel = function exportToExcel() {
32674
- return Export();
32675
- };
32676
-
32677
- var handlePageSizeChanged = function handlePageSizeChanged(_, value) {
32678
- return OnPageSizeChanged(value);
32679
- }; //======================== RENDER ==========================================
32680
-
32681
-
32682
- var renderRowInformation = function renderRowInformation() {
32683
- if (!withPageInformation) return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
32684
- return /*#__PURE__*/React__default.createElement(ItemText, _extends$d({}, themeProps, {
32685
- key: -1
32686
- }), getShowingNumberOfRows());
32687
- };
32688
-
32689
- var renderCurrentPage = function renderCurrentPage() {
32690
- return /*#__PURE__*/React__default.createElement(ItemCurrentPage, _extends$d({}, themeProps, {
32691
- key: 0
32692
- }), CurrentPage);
32693
- };
32694
-
32695
- var renderFirst = function renderFirst() {
32696
- return /*#__PURE__*/React__default.createElement(Item$2, _extends$d({
32697
- first: true
32698
- }, themeProps, {
32699
- key: 1
32700
- }), /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
32701
- icon: "angle-double-left",
32702
- onClick: freezeLoading() ? function () {} : function () {
32703
- return goToFirstPage(PageSize, CurrentPage);
32704
- },
32705
- disabled: !CanGoToFirstPage,
32706
- tooltip: Localization.First
32707
- })));
32708
- };
32709
-
32710
- var renderPrevious = function renderPrevious() {
32711
- return /*#__PURE__*/React__default.createElement(Item$2, _extends$d({
32712
- key: 2
32713
- }, themeProps), /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
32714
- icon: "angle-left",
32715
- onClick: freezeLoading() ? function () {} : function () {
32716
- return goToPreviousPage(PageSize, CurrentPage);
32717
- },
32718
- disabled: !CanGoToPreviousPage,
32719
- tooltip: Localization.Previous
32720
- })));
32721
- };
32722
-
32723
- var renderNext = function renderNext() {
32724
- return /*#__PURE__*/React__default.createElement(Item$2, _extends$d({
32725
- key: 3
32726
- }, themeProps), /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
32727
- icon: "angle-right",
32728
- onClick: freezeLoading() ? function () {} : function () {
32729
- return goToNextPage(PageSize, CurrentPage);
32730
- },
32731
- disabled: !CanGoToNextPage,
32732
- tooltip: Localization.Next
32733
- })));
32734
- };
32735
-
32736
- var renderLast = function renderLast() {
32737
- return /*#__PURE__*/React__default.createElement(Item$2, _extends$d({
32738
- key: 4
32739
- }, themeProps), /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
32740
- icon: "angle-double-right",
32741
- onClick: freezeLoading() ? function () {} : function () {
32742
- return goToLastPage(PageSize, CurrentPage);
32743
- },
32744
- disabled: !CanGoToLastPage,
32745
- tooltip: Localization.Last
32746
- })));
32747
- };
32748
-
32749
- var renderPageSize = function renderPageSize() {
32750
- return /*#__PURE__*/React__default.createElement(ItemDropdown, _extends$d({
32751
- key: 5
32752
- }, themeProps), /*#__PURE__*/React__default.createElement(DropDown, _extends$d({}, themeProps, {
32753
- items: getPageSizes(),
32754
- value: PageSize // disabled={freezeLoading()}
32755
- ,
32756
- onChange: freezeLoading() ? function () {} : handlePageSizeChanged,
32757
- withoutEmpty: true
32758
- })));
32759
- };
32760
-
32761
- var renderExportButtons = function renderExportButtons() {
32762
- if (!EnableExports) return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
32763
- return /*#__PURE__*/React__default.createElement(ExportItem, _extends$d({
32764
- key: 6
32765
- }, themeProps), /*#__PURE__*/React__default.createElement(Button$1, _extends$d({}, themeProps, {
32766
- icon: "file-excel",
32767
- onClick: freezeLoading() ? function () {} : function () {
32768
- return exportToExcel();
32769
- },
32770
- tooltip: Localization.ExportToExcel
32771
- })));
32772
- };
32773
-
32774
- return /*#__PURE__*/React__default.createElement(Container$h, themeProps, renderFirst(), renderPrevious(), renderCurrentPage(), renderNext(), renderLast(), renderPageSize(), renderRowInformation(), renderExportButtons());
32775
- };
32776
-
32777
- Pagination.defaultProps = {
32778
- Config: {},
32779
- withPageInformation: true,
32780
- Localization: {
32781
- First: "First",
32782
- Last: "Last",
32783
- Next: "Next",
32784
- Previous: "Previous"
32785
- },
32786
- //------------------------------
32787
- EnableExports: false,
32788
- CurrentPage: 1,
32789
- IsLoading: false,
32790
- DataCount: 0,
32791
- PageSizes: [10, 20, 30, 40, 50],
32792
- PageSize: 10,
32793
- OnPageSizeChanged: function OnPageSizeChanged() {},
32794
- LoadedDataCount: 0,
32795
- CanGoToNextPage: false,
32796
- CanGoToPreviousPage: false,
32797
- CanGoToFirstPage: false,
32798
- CanGoToLastPage: false,
32799
- goToNextPage: function goToNextPage() {},
32800
- goToPreviousPage: function goToPreviousPage() {},
32801
- goToFirstPage: function goToFirstPage() {},
32802
- goToLastPage: function goToLastPage() {},
32803
- Export: function Export() {},
32804
- //-------------------------------
32805
- inverted: false,
32806
- theme: theme,
32807
- color: "primary",
32808
- size: "small"
32809
- };
32810
- Pagination.propTypes = {
32811
- Config: PropTypes.object,
32812
- Localization: PropTypes.object,
32813
- withPageInformation: PropTypes.bool,
32814
- //------------------------------
32815
- EnableExports: PropTypes.bool,
32816
- CurrentPage: PropTypes.number,
32817
- IsLoading: PropTypes.bool,
32818
- DataCount: PropTypes.number,
32819
- PageSizes: PropTypes.array,
32820
- PageSize: PropTypes.number,
32821
- OnPageSizeChanged: PropTypes.func,
32822
- LoadedDataCount: PropTypes.number,
32823
- CanGoToNextPage: PropTypes.bool,
32824
- CanGoToPreviousPage: PropTypes.bool,
32825
- CanGoToFirstPage: PropTypes.bool,
32826
- CanGoToLastPage: PropTypes.bool,
32827
- goToNextPage: PropTypes.func,
32828
- goToPreviousPage: PropTypes.func,
32829
- goToFirstPage: PropTypes.func,
32830
- goToLastPage: PropTypes.func,
32831
- Export: PropTypes.func,
32832
- //-------------------------------
32833
- inverted: PropTypes.bool,
32834
- theme: PropTypes.object.isRequired,
32835
- size: PropTypes.oneOf(["small", "medium", "large"]),
32836
- color: PropTypes.oneOf(["primary", "secondary", "success", "error", "warning", "gray"])
32837
- };
32838
-
32839
- var _templateObject$k, _templateObject2$f;
32840
-
32841
- var heightBySize$b = function heightBySize(size) {
32842
- if (size === "small") return "\n width: 1.4rem;\n height: 1.4rem;\n ";
32843
- if (size === "medium") return "\n width: 1.6rem;\n height: 1.6rem;\n ";
32844
- if (size === "large") return "\n width: 1.8rem;\n height: 1.8rem;\n ";
32845
- };
32846
-
32847
- var spin$2 = keyframes$2(_templateObject$k || (_templateObject$k = _taggedTemplateLiteral(["\n to {\n transform: rotate(360deg);\n }\n"])));
32848
- var StyledSpinner = newStyled.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteral(["\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) {
32849
- return heightBySize$b(props.size);
32850
- }, function (props) {
32851
- return props.theme.palette[props.color].lighter;
32852
- }, function (props) {
32853
- return props.theme.palette[props.color].main;
32854
- }, spin$2);
32855
-
32856
- var Spinner = function Spinner(props) {
32857
- var className = props.className,
32858
- size = props.size,
32859
- color = props.color,
32860
- theme = props.theme;
32861
- var themeProps = {
32862
- theme: theme,
32863
- size: size,
32864
- color: color
32865
- };
32866
- return /*#__PURE__*/React__default.createElement(StyledSpinner, _extends$d({}, themeProps, {
32867
- className: className
32868
- }));
32869
- };
32870
-
32871
- Spinner.defaultProps = {
32872
- className: "",
32873
- size: "small",
32874
- color: "primary",
32875
- theme: theme
32876
- };
32877
- Spinner.propTypes = {
32878
- theme: PropTypes.object.isRequired,
32879
- className: PropTypes.string,
32880
- size: PropTypes.oneOf(["small", "medium", "large"]),
32881
- color: PropTypes.oneOf(["primary", "secondary", "success", "error", "warning", "gray"])
32882
- };
32883
-
32884
- var css_248z$3 = ".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";
32885
- styleInject(css_248z$3);
32886
-
32887
32891
  var _templateObject$j, _templateObject2$e, _templateObject3$c, _templateObject4$b, _templateObject5$a, _templateObject6$8, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$3;
32888
32892
 
32889
32893
  function ownKeys$g(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; }
@@ -33281,11 +33285,11 @@ var DataView = function DataView(props) {
33281
33285
  return component;
33282
33286
  }
33283
33287
 
33284
- if (renderForm && !General.DataFromBackend) {
33288
+ if (!General.DataFromBackend) {
33285
33289
  return /*#__PURE__*/React__default.createElement(Modal, {
33286
33290
  id: "FormViewInModal",
33287
33291
  basic: true,
33288
- open: true,
33292
+ open: renderForm,
33289
33293
  size: "medium",
33290
33294
  header: props.modalLabel || "",
33291
33295
  onClose: ChangeToTableView
@@ -42389,7 +42393,10 @@ var DateInput = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
42389
42393
  return /*#__PURE__*/React__default.createElement(Container$f, _extends$d({
42390
42394
  id: "dp" + id
42391
42395
  }, themeProps, {
42392
- className: className
42396
+ className: className,
42397
+ onWheel: function onWheel(event) {
42398
+ event.stopPropagation();
42399
+ }
42393
42400
  }), /*#__PURE__*/React__default.createElement(Input$4, _extends$d({
42394
42401
  ref: ref
42395
42402
  }, themeProps, {
@@ -42749,7 +42756,11 @@ var DropdownLookup = function DropdownLookup(props) {
42749
42756
 
42750
42757
  return /*#__PURE__*/React__default.createElement(Container$e, _extends$d({
42751
42758
  id: "ddl_container" + id
42752
- }, themeProps), /*#__PURE__*/React__default.createElement(Inner$4, themeProps, /*#__PURE__*/React__default.createElement(InputContainer$2, themeProps, /*#__PURE__*/React__default.createElement(Input$3, _extends$d({}, themeProps, {
42759
+ }, themeProps, {
42760
+ onWheel: function onWheel(event) {
42761
+ event.stopPropagation();
42762
+ }
42763
+ }), /*#__PURE__*/React__default.createElement(Inner$4, themeProps, /*#__PURE__*/React__default.createElement(InputContainer$2, themeProps, /*#__PURE__*/React__default.createElement(Input$3, _extends$d({}, themeProps, {
42753
42764
  ref: InputRef,
42754
42765
  autoComplete: "off",
42755
42766
  id: id,