react-asc 25.14.1 → 25.15.0
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/index.d.ts +37 -35
- package/index.es.js +86 -93
- package/index.js +85 -92
- package/lib/components/Alert/Alert.d.ts +3 -3
- package/lib/components/AppBar/AppBar.d.ts +3 -3
- package/lib/components/Badge/Badge.d.ts +2 -2
- package/lib/components/Button/Button.d.ts +2 -2
- package/lib/components/Button/ButtonContext.d.ts +2 -2
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/lib/components/Chip/Chip.d.ts +2 -2
- package/lib/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
- package/lib/components/Grid/Column/Column.d.ts +2 -5
- package/lib/components/Grid/Column/column.types.d.ts +1 -0
- package/lib/components/Grid/Column/index.d.ts +1 -0
- package/lib/components/Icon/Icon.d.ts +2 -2
- package/lib/components/IconButton/IconButton.d.ts +2 -2
- package/lib/components/List/ListItem.d.ts +2 -2
- package/lib/components/Modal/GlobalModal.d.ts +2 -2
- package/lib/components/Modal/Modal.d.ts +1 -1
- package/lib/components/Modal/modal.interfaces.d.ts +2 -2
- package/lib/components/Modal/modal.service.d.ts +2 -2
- package/lib/components/ProgressBar/ProgressBar.d.ts +2 -2
- package/lib/components/Snackbar/Snackbar.d.ts +2 -2
- package/lib/components/Snackbar/snackbar.service.d.ts +2 -2
- package/lib/components/SpeedDial/SpeedDialAction.d.ts +2 -2
- package/lib/components/Stepper/Dot/Dot.d.ts +2 -2
- package/lib/components/Tabs/TabIndicator.d.ts +2 -2
- package/lib/components/Tabs/Tabs.d.ts +3 -3
- package/lib/components/index.d.ts +1 -2
- package/lib/enums/color.enum.d.ts +9 -0
- package/lib/enums/index.d.ts +5 -0
- package/lib/enums/position.enum.d.ts +4 -0
- package/lib/enums/size.enum.d.ts +5 -0
- package/lib/enums/status.enum.d.ts +4 -0
- package/lib/enums/variant.enum.d.ts +5 -0
- package/lib/index.d.ts +1 -0
- package/package.json +1 -1
- package/lib/components/component.enums.d.ts +0 -27
package/index.es.js
CHANGED
|
@@ -5,39 +5,43 @@ import { createPopper } from '@popperjs/core';
|
|
|
5
5
|
import saveAs from 'file-saver';
|
|
6
6
|
import { unparse, parse } from 'papaparse';
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
(function (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
})(
|
|
8
|
+
var Color;
|
|
9
|
+
(function (Color) {
|
|
10
|
+
Color["primary"] = "primary";
|
|
11
|
+
Color["accent"] = "accent";
|
|
12
|
+
Color["secondary"] = "secondary";
|
|
13
|
+
Color["success"] = "success";
|
|
14
|
+
Color["error"] = "error";
|
|
15
|
+
Color["light"] = "light";
|
|
16
|
+
Color["dark"] = "dark";
|
|
17
|
+
})(Color || (Color = {}));
|
|
18
|
+
|
|
19
|
+
var POSITION;
|
|
20
|
+
(function (POSITION) {
|
|
21
|
+
POSITION["right"] = "right";
|
|
22
|
+
POSITION["left"] = "left";
|
|
23
|
+
})(POSITION || (POSITION = {}));
|
|
24
|
+
|
|
24
25
|
var SIZE;
|
|
25
26
|
(function (SIZE) {
|
|
26
27
|
SIZE["sm"] = "sm";
|
|
27
28
|
SIZE["md"] = "md";
|
|
28
29
|
SIZE["lg"] = "lg";
|
|
29
30
|
})(SIZE || (SIZE = {}));
|
|
30
|
-
|
|
31
|
-
(function (POSITION) {
|
|
32
|
-
POSITION["right"] = "right";
|
|
33
|
-
POSITION["left"] = "left";
|
|
34
|
-
})(POSITION || (POSITION = {}));
|
|
31
|
+
|
|
35
32
|
var STATUS;
|
|
36
33
|
(function (STATUS) {
|
|
37
34
|
STATUS["HOVERED"] = "hovered";
|
|
38
35
|
STATUS["NORMAL"] = "normal";
|
|
39
36
|
})(STATUS || (STATUS = {}));
|
|
40
37
|
|
|
38
|
+
var VARIANT;
|
|
39
|
+
(function (VARIANT) {
|
|
40
|
+
VARIANT["contained"] = "contained";
|
|
41
|
+
VARIANT["outline"] = "outline";
|
|
42
|
+
VARIANT["text"] = "text";
|
|
43
|
+
})(VARIANT || (VARIANT = {}));
|
|
44
|
+
|
|
41
45
|
function styleInject(css, ref) {
|
|
42
46
|
if ( ref === void 0 ) ref = {};
|
|
43
47
|
var insertAt = ref.insertAt;
|
|
@@ -70,7 +74,7 @@ var styles$16 = {"alert":"Alert-module_alert__b4tbk","shadow":"Alert-module_shad
|
|
|
70
74
|
styleInject(css_248z$16);
|
|
71
75
|
|
|
72
76
|
const Alert = (props) => {
|
|
73
|
-
const { children, className, color =
|
|
77
|
+
const { children, className, color = Color.secondary, variant = VARIANT.contained, shadow = true, ...rest } = props;
|
|
74
78
|
const getCssClasses = () => {
|
|
75
79
|
const cssClasses = [];
|
|
76
80
|
cssClasses.push(styles$16.alert);
|
|
@@ -94,7 +98,7 @@ var styles$15 = {"appbar":"AppBar-module_appbar__Neyh3","primary":"AppBar-module
|
|
|
94
98
|
styleInject(css_248z$15);
|
|
95
99
|
|
|
96
100
|
const AppBar = (props) => {
|
|
97
|
-
const { children, className, color =
|
|
101
|
+
const { children, className, color = Color.primary, shadow = true, ...rest } = props;
|
|
98
102
|
const getCssClasses = () => {
|
|
99
103
|
const cssClasses = [];
|
|
100
104
|
cssClasses.push(styles$15[color]);
|
|
@@ -374,7 +378,7 @@ var styles$10 = {"iconButton":"IconButton-module_iconButton__rpCPQ","shadow":"Ic
|
|
|
374
378
|
styleInject(css_248z$10);
|
|
375
379
|
|
|
376
380
|
const IconButton = (props) => {
|
|
377
|
-
const { children, icon, variant = VARIANT.text, color =
|
|
381
|
+
const { children, icon, variant = VARIANT.text, color = Color.dark, size = SIZE.md, isActive, disabled, loading, className, shadow, ...rest } = props;
|
|
378
382
|
const [isDisabled, setIsDisabled] = useState(false);
|
|
379
383
|
const [isLoading, setIsLoading] = useState(false);
|
|
380
384
|
useEffect(() => {
|
|
@@ -589,7 +593,7 @@ var styles$U = {"badgeContainer":"Badge-module_badgeContainer__3nZBs","badge":"B
|
|
|
589
593
|
styleInject(css_248z$U);
|
|
590
594
|
|
|
591
595
|
const Badge = (props) => {
|
|
592
|
-
const { children, content, className, color =
|
|
596
|
+
const { children, content, className, color = Color.secondary, ...rest } = props;
|
|
593
597
|
const [cssClassName] = useCssClasses([styles$U.badge, styles$U[color], className]);
|
|
594
598
|
return (jsxs(BadgeContainer, { children: [children, jsx("span", { className: cssClassName, ...rest, children: content })] }));
|
|
595
599
|
};
|
|
@@ -640,12 +644,12 @@ var styles$R = {"button":"Button-module_button__qeIer","shadow":"Button-module_s
|
|
|
640
644
|
styleInject(css_248z$R);
|
|
641
645
|
|
|
642
646
|
const ButtonContext = createContext({
|
|
643
|
-
color: null
|
|
647
|
+
color: null,
|
|
644
648
|
});
|
|
645
649
|
const useButtonContext = () => useContext(ButtonContext);
|
|
646
650
|
|
|
647
651
|
const Button = props => {
|
|
648
|
-
const { children, variant = VARIANT.contained, color =
|
|
652
|
+
const { children, variant = VARIANT.contained, color = Color.primary, isRounded, isActive, className, startIcon, endIcon, shadow = true, block, loading, disabled, ...rest } = props;
|
|
649
653
|
const [isDisabled, setIsDisabled] = useState(false);
|
|
650
654
|
const [isLoading, setIsLoading] = useState(false);
|
|
651
655
|
useEffect(() => {
|
|
@@ -693,7 +697,7 @@ const Button = props => {
|
|
|
693
697
|
className && cssClasses.push(className);
|
|
694
698
|
return cssClasses.filter(css => css).join(' ');
|
|
695
699
|
};
|
|
696
|
-
return (jsx("button", { type: "button", className: getCssClasses(), disabled: isDisabled, ...rest, children: jsxs("span", { className: "d-flex justify-content-center", children: [isLoading && (jsx("div", { className: "mr-1", children: jsx(LoadingIndicatorContainer, { children: jsx(LoadingIndicator, {}) }) })), startIcon && jsx(Icon, { className: styles$R.startIcon, children: startIcon }), children, endIcon && jsx(Icon, { className: styles$R.endIcon, children: endIcon })] }) }));
|
|
700
|
+
return (jsx("button", { type: "button", className: getCssClasses(), disabled: isDisabled, ...rest, children: jsxs("span", { className: "d-flex justify-content-center align-items-center", children: [isLoading && (jsx("div", { className: "mr-1", children: jsx(LoadingIndicatorContainer, { children: jsx(LoadingIndicator, {}) }) })), startIcon && jsx(Icon, { className: styles$R.startIcon, children: startIcon }), children, endIcon && jsx(Icon, { className: styles$R.endIcon, children: endIcon })] }) }));
|
|
697
701
|
};
|
|
698
702
|
|
|
699
703
|
var css_248z$Q = ".ButtonGroup-module_buttonGroup__w6iB- {\n display: inline-flex;\n border-radius: 4px;\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:last-of-type) {\n border-right: 1px solid #bdbdbd;\n}";
|
|
@@ -708,7 +712,7 @@ const ButtonGroup = (props) => {
|
|
|
708
712
|
className && cssClasses.push(className);
|
|
709
713
|
return cssClasses.filter(css => css).join(' ');
|
|
710
714
|
};
|
|
711
|
-
return (jsx(ButtonContext.Provider, { value: { color: color ||
|
|
715
|
+
return (jsx(ButtonContext.Provider, { value: { color: color || Color.primary }, children: jsx("div", { className: getCssClasses(), role: "group", ...rest, children: children }) }));
|
|
712
716
|
};
|
|
713
717
|
|
|
714
718
|
var css_248z$P = ".Card-module_card__TQdQq {\n background: var(--white);\n border-radius: var(--borderRadius);\n}\n.Card-module_card__TQdQq.Card-module_shadow__NxDVz {\n box-shadow: var(--shadow);\n}";
|
|
@@ -5255,7 +5259,7 @@ const Select = (props) => {
|
|
|
5255
5259
|
const renderMultipleViewModel = () => {
|
|
5256
5260
|
let result = null;
|
|
5257
5261
|
if (selectedOptions.length <= multipleMaxCountItems && selectedOptions.length > 0) {
|
|
5258
|
-
result = selectedOptions.map(option => (jsx(Chip, { color:
|
|
5262
|
+
result = selectedOptions.map(option => (jsx(Chip, { color: Color.primary, isDeletable: true, onDelete: (e) => handleOnDelete(e, option), children: option.label }, option.value)));
|
|
5259
5263
|
}
|
|
5260
5264
|
else {
|
|
5261
5265
|
result = jsxs("span", { children: [selectedOptions.length, " Items selected"] });
|
|
@@ -5591,15 +5595,16 @@ class FormControl {
|
|
|
5591
5595
|
}
|
|
5592
5596
|
}
|
|
5593
5597
|
|
|
5594
|
-
var css_248z$z = ".Column-module_column__fcTgl {\n flex: 1 0 0%;\n}\n\n@media (max-width: 575.98px) {\n .Column-module_column__fcTgl {\n flex: 1;\n }\n}";
|
|
5595
|
-
var styles$z = {"column":"Column-module_column__fcTgl"};
|
|
5598
|
+
var css_248z$z = ".Column-module_column__fcTgl {\n flex: 1 0 0%;\n}\n\n.Column-module_column-10__4935j {\n flex: 0 0 10%;\n}\n\n.Column-module_column-20__cRb6d {\n flex: 0 0 20%;\n}\n\n.Column-module_column-30__LqTq8 {\n flex: 0 0 30%;\n}\n\n.Column-module_column-40__l9TqX {\n flex: 0 0 40%;\n}\n\n.Column-module_column-50__d4Dxd {\n flex: 0 0 50%;\n}\n\n.Column-module_column-60__dUUhT {\n flex: 0 0 60%;\n}\n\n.Column-module_column-70__7xevU {\n flex: 0 0 70%;\n}\n\n.Column-module_column-80__3mfFZ {\n flex: 0 0 80%;\n}\n\n.Column-module_column-90__wntvM {\n flex: 0 0 90%;\n}\n\n.Column-module_column-100__rh1-C {\n flex: 0 0 100%;\n}\n\n@media (max-width: 575.98px) {\n .Column-module_column__fcTgl {\n flex: 1;\n }\n}";
|
|
5599
|
+
var styles$z = {"column":"Column-module_column__fcTgl","column-10":"Column-module_column-10__4935j","column-20":"Column-module_column-20__cRb6d","column-30":"Column-module_column-30__LqTq8","column-40":"Column-module_column-40__l9TqX","column-50":"Column-module_column-50__d4Dxd","column-60":"Column-module_column-60__dUUhT","column-70":"Column-module_column-70__7xevU","column-80":"Column-module_column-80__3mfFZ","column-90":"Column-module_column-90__wntvM","column-100":"Column-module_column-100__rh1-C"};
|
|
5596
5600
|
styleInject(css_248z$z);
|
|
5597
5601
|
|
|
5598
5602
|
const Column = (props) => {
|
|
5599
|
-
const { children, className, ...rest } = props;
|
|
5603
|
+
const { children, className, size, ...rest } = props;
|
|
5600
5604
|
const getCssClasses = () => {
|
|
5601
5605
|
const cssClasses = [];
|
|
5602
5606
|
cssClasses.push(styles$z.column);
|
|
5607
|
+
size && cssClasses.push(styles$z[`column-${size}`]);
|
|
5603
5608
|
className && cssClasses.push(className);
|
|
5604
5609
|
return cssClasses.filter(css => css).join(' ');
|
|
5605
5610
|
};
|
|
@@ -5807,7 +5812,7 @@ var styles$t = {"fab":"FloatingActionButton-module_fab__Rw3kd","fixed":"Floating
|
|
|
5807
5812
|
styleInject(css_248z$t);
|
|
5808
5813
|
|
|
5809
5814
|
const FloatingActionButton = (props) => {
|
|
5810
|
-
const { className, icon, color =
|
|
5815
|
+
const { className, icon, color = Color.primary, fixed, position = 'rightBottom', size = SIZE.lg, isActive, disabled, onClick } = props;
|
|
5811
5816
|
const getCssClasses = () => {
|
|
5812
5817
|
const cssClasses = [];
|
|
5813
5818
|
cssClasses.push(styles$t.fab);
|
|
@@ -5931,26 +5936,10 @@ styleInject(css_248z$q);
|
|
|
5931
5936
|
|
|
5932
5937
|
const MenuDivider = () => jsx("div", { className: styles$q.menuItemDivider });
|
|
5933
5938
|
|
|
5934
|
-
var css_248z$p = ".
|
|
5935
|
-
var styles$p = {"
|
|
5939
|
+
var css_248z$p = ".Modal-module_modal__HMxWV {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n z-index: 1111 !important;\n border-radius: var(--borderRadius);\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_sm__CsR6U {\n max-width: 300px;\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_md__lNggx {\n max-width: 500px;\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_lg__6dtT2 {\n max-width: 1140px;\n}\n@media (min-width: 576px) {\n .Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf {\n max-width: 600px;\n }\n}\n\n.Modal-module_modalDialog__fNqyK {\n position: relative;\n width: auto;\n pointer-events: none;\n}\n\n.Modal-module_modalDialogCentered__sa2wv {\n height: 100%;\n display: flex;\n align-items: center;\n}\n\n.Modal-module_modalContent__9wAwB {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n pointer-events: auto;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 0.3rem;\n box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08);\n outline: 0;\n margin: 1rem;\n max-height: 600px;\n}\n@media (min-width: 576px) {\n .Modal-module_modalContent__9wAwB {\n max-width: 500px;\n margin: auto;\n }\n}\n\n.Modal-module_fullscreen__iepGa {\n width: 100% !important;\n height: 100% !important;\n max-height: 100% !important;\n margin: 0;\n padding: 0;\n}\n.Modal-module_fullscreen__iepGa .Modal-module_modalContent__9wAwB {\n margin: 0;\n height: auto;\n min-height: 100%;\n max-height: 100%;\n border-radius: 0;\n overflow: auto;\n max-width: 100%;\n}\n@media (min-width: 320px) {\n .Modal-module_fullscreen__iepGa {\n max-width: 100% !important;\n }\n}";
|
|
5940
|
+
var styles$p = {"modal":"Modal-module_modal__HMxWV","modal-dialog":"Modal-module_modal-dialog__U2wGf","sm":"Modal-module_sm__CsR6U","md":"Modal-module_md__lNggx","lg":"Modal-module_lg__6dtT2","modalDialog":"Modal-module_modalDialog__fNqyK","modalDialogCentered":"Modal-module_modalDialogCentered__sa2wv","modalContent":"Modal-module_modalContent__9wAwB","fullscreen":"Modal-module_fullscreen__iepGa"};
|
|
5936
5941
|
styleInject(css_248z$p);
|
|
5937
5942
|
|
|
5938
|
-
const ModalHeader = (props) => {
|
|
5939
|
-
const { children, shadow, className, isDismissable = false, onClose, ...rest } = props;
|
|
5940
|
-
const getCssClasses = () => {
|
|
5941
|
-
const cssClasses = [];
|
|
5942
|
-
cssClasses.push(styles$p.modalHeader);
|
|
5943
|
-
shadow && cssClasses.push(styles$p.shadow);
|
|
5944
|
-
className && cssClasses.push(className);
|
|
5945
|
-
return cssClasses.filter(css => css).join(' ');
|
|
5946
|
-
};
|
|
5947
|
-
const handleClick = () => {
|
|
5948
|
-
onClose && onClose();
|
|
5949
|
-
};
|
|
5950
|
-
return (jsxs("div", { className: getCssClasses(), ...rest, children: [jsx("h5", { className: styles$p.modalTitle, children: children }), isDismissable &&
|
|
5951
|
-
jsx(IconButton, { icon: jsx(TimesSolidIcon, {}), variant: VARIANT.text, onClick: handleClick })] }));
|
|
5952
|
-
};
|
|
5953
|
-
|
|
5954
5943
|
var css_248z$o = ".ModalBody-module_modalBody__D-gk2 {\n position: relative;\n flex: 1 1 auto;\n padding: 0 1rem 1rem 1rem;\n overflow-y: auto;\n}";
|
|
5955
5944
|
var styles$o = {"modalBody":"ModalBody-module_modalBody__D-gk2"};
|
|
5956
5945
|
styleInject(css_248z$o);
|
|
@@ -5973,18 +5962,33 @@ const ModalFooter = (props) => {
|
|
|
5973
5962
|
return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
5974
5963
|
};
|
|
5975
5964
|
|
|
5976
|
-
var css_248z$m = ".
|
|
5977
|
-
var styles$m = {"
|
|
5965
|
+
var css_248z$m = ".ModalHeader-module_modalHeader__tw-u- {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: space-between;\n padding: 1rem;\n border-top-left-radius: calc(0.3rem - 1px);\n border-top-right-radius: calc(0.3rem - 1px);\n border-bottom: none;\n align-items: center;\n}\n.ModalHeader-module_modalHeader__tw-u-.ModalHeader-module_shadow__qELWb {\n box-shadow: var(--shadow);\n}\n\n.ModalHeader-module_modalTitle__2xShH {\n margin-bottom: 0;\n line-height: 1.5;\n}";
|
|
5966
|
+
var styles$m = {"modalHeader":"ModalHeader-module_modalHeader__tw-u-","shadow":"ModalHeader-module_shadow__qELWb","modalTitle":"ModalHeader-module_modalTitle__2xShH"};
|
|
5978
5967
|
styleInject(css_248z$m);
|
|
5979
5968
|
|
|
5969
|
+
const ModalHeader = (props) => {
|
|
5970
|
+
const { children, shadow, className, isDismissable = false, onClose, ...rest } = props;
|
|
5971
|
+
const getCssClasses = () => {
|
|
5972
|
+
const cssClasses = [];
|
|
5973
|
+
cssClasses.push(styles$m.modalHeader);
|
|
5974
|
+
shadow && cssClasses.push(styles$m.shadow);
|
|
5975
|
+
className && cssClasses.push(className);
|
|
5976
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5977
|
+
};
|
|
5978
|
+
const handleClick = () => {
|
|
5979
|
+
onClose && onClose();
|
|
5980
|
+
};
|
|
5981
|
+
return (jsxs("div", { className: getCssClasses(), ...rest, children: [jsx("h5", { className: styles$m.modalTitle, children: children }), isDismissable && jsx(IconButton, { icon: jsx(TimesSolidIcon, {}), variant: VARIANT.text, onClick: handleClick })] }));
|
|
5982
|
+
};
|
|
5983
|
+
|
|
5980
5984
|
const Modal = (props) => {
|
|
5981
|
-
const { target = document.body, className, size, fullScreen, children, header, footer, onHeaderCloseClick, onBackdropClick, isDismissable = false } = props;
|
|
5985
|
+
const { target = document.body, className, size, fullScreen, children, header, footer, onHeaderCloseClick, onBackdropClick, isDismissable = false, } = props;
|
|
5982
5986
|
const getCssClass = () => {
|
|
5983
5987
|
const cssClasses = [];
|
|
5984
|
-
cssClasses.push(styles$
|
|
5985
|
-
cssClasses.push(styles$
|
|
5986
|
-
size && cssClasses.push(styles$
|
|
5987
|
-
fullScreen && cssClasses.push(styles$
|
|
5988
|
+
cssClasses.push(styles$p.modalDialog);
|
|
5989
|
+
cssClasses.push(styles$p.modalDialogCentered);
|
|
5990
|
+
size && cssClasses.push(styles$p[size]);
|
|
5991
|
+
fullScreen && cssClasses.push(styles$p.fullscreen);
|
|
5988
5992
|
className && cssClasses.push(className);
|
|
5989
5993
|
return cssClasses.filter(r => r).join(' ');
|
|
5990
5994
|
};
|
|
@@ -5997,9 +6001,7 @@ const Modal = (props) => {
|
|
|
5997
6001
|
const handleClickBackdrop = () => {
|
|
5998
6002
|
onBackdropClick && onBackdropClick();
|
|
5999
6003
|
};
|
|
6000
|
-
return (jsxs(Fragment$1, { children: [jsx(Portal$1, { className:
|
|
6001
|
-
jsx(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick(), children: header }), jsx(ModalBody, { children: children }), footer &&
|
|
6002
|
-
jsx(ModalFooter, { children: footer })] }) }) }) }), jsx(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })] }));
|
|
6004
|
+
return (jsxs(Fragment$1, { children: [jsx(Portal$1, { className: "modal-root", target: target, children: jsx("div", { className: styles$p.modal, children: jsx("div", { className: getCssClass(), children: jsxs("div", { className: styles$p.modalContent, children: [header && (jsx(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick(), children: header })), jsx(ModalBody, { children: children }), footer && jsx(ModalFooter, { children: footer })] }) }) }) }), jsx(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })] }));
|
|
6003
6005
|
};
|
|
6004
6006
|
|
|
6005
6007
|
var MODALTYPE;
|
|
@@ -6016,9 +6018,9 @@ var MODALBUTTONTYPE;
|
|
|
6016
6018
|
})(MODALBUTTONTYPE || (MODALBUTTONTYPE = {}));
|
|
6017
6019
|
|
|
6018
6020
|
const GlobalModal = ({ title, description, formControls, onOk, onChange, onCancel, onBackdropClick, isDismissable = false, buttons = [
|
|
6019
|
-
{ label: 'Cancel', type: MODALBUTTONTYPE.CANCEL, color:
|
|
6021
|
+
{ label: 'Cancel', type: MODALBUTTONTYPE.CANCEL, color: Color.secondary, variant: VARIANT.text, shadow: false },
|
|
6020
6022
|
{ label: 'Ok', type: MODALBUTTONTYPE.OK, variant: VARIANT.contained, focus: true },
|
|
6021
|
-
], size = SIZE.md, fullScreen = false }) => {
|
|
6023
|
+
], size = SIZE.md, fullScreen = false, }) => {
|
|
6022
6024
|
// workaround for getDerivedStateFromProps
|
|
6023
6025
|
const [myControls, setMyControls] = useState(null);
|
|
6024
6026
|
useEffect(() => {
|
|
@@ -6055,8 +6057,7 @@ const GlobalModal = ({ title, description, formControls, onOk, onChange, onCance
|
|
|
6055
6057
|
}
|
|
6056
6058
|
button.handler && button.handler();
|
|
6057
6059
|
};
|
|
6058
|
-
return (jsxs(Modal, { size: size, fullScreen: fullScreen, header: title, onHeaderCloseClick: onCancel, onBackdropClick: onBackdropClick, isDismissable: isDismissable, footer: jsx(Fragment$1, { children: buttons.map((button, index) => (jsx(Button, { variant: button.variant, color: button.color, autoFocus: button.autoFocus, shadow: button.shadow, onClick: () => handleClickButton(button), children: button.label }, index))) }), children: [description && jsx("div", { children: description }), modalType === MODALTYPE.FORM &&
|
|
6059
|
-
jsx(Fragment$1, { children: jsx(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }) })] }));
|
|
6060
|
+
return (jsxs(Modal, { size: size, fullScreen: fullScreen, header: title, onHeaderCloseClick: onCancel, onBackdropClick: onBackdropClick, isDismissable: isDismissable, footer: jsx(Fragment$1, { children: buttons.map((button, index) => (jsx(Button, { variant: button.variant, color: button.color, autoFocus: button.autoFocus, shadow: button.shadow, onClick: () => handleClickButton(button), children: button.label }, index))) }), children: [description && jsx("div", { children: description }), modalType === MODALTYPE.FORM && (jsx(Fragment$1, { children: jsx(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }) }))] }));
|
|
6060
6061
|
};
|
|
6061
6062
|
|
|
6062
6063
|
class ModalService {
|
|
@@ -6220,7 +6221,7 @@ var styles$k = {"progressBarContainer":"ProgressBar-module_progressBarContainer_
|
|
|
6220
6221
|
styleInject(css_248z$k);
|
|
6221
6222
|
|
|
6222
6223
|
const ProgressBar = (props) => {
|
|
6223
|
-
const { className, color =
|
|
6224
|
+
const { className, color = Color.primary, value, indeterminate, ...rest } = props;
|
|
6224
6225
|
const [model, setModel] = useState();
|
|
6225
6226
|
useEffect(() => {
|
|
6226
6227
|
document.body.style.setProperty('--progress-bar-bg', `var(--${color})`);
|
|
@@ -6254,7 +6255,7 @@ const ProgressBar = (props) => {
|
|
|
6254
6255
|
}
|
|
6255
6256
|
return `${width}%`;
|
|
6256
6257
|
};
|
|
6257
|
-
return (jsx(Tooltip, { text: !indeterminate ? model?.toString() : '', children: jsx("div", { className: getCssClasses(), ...rest, children: jsx("div", { className: getCssClassesBar(), style: {
|
|
6258
|
+
return (jsx(Tooltip, { text: !indeterminate ? model?.toString() : '', children: jsx("div", { className: getCssClasses(), ...rest, children: jsx("div", { className: getCssClassesBar(), style: { width: getStyle() }, role: "progressbar" }) }) }));
|
|
6258
6259
|
};
|
|
6259
6260
|
|
|
6260
6261
|
class SidebarItemModel {
|
|
@@ -6389,7 +6390,7 @@ var styles$f = {"snackbar":"Snackbar-module_snackbar__O5T2b","bounceIn":"Snackba
|
|
|
6389
6390
|
styleInject(css_248z$f);
|
|
6390
6391
|
|
|
6391
6392
|
const Snackbar = (props) => {
|
|
6392
|
-
const { children, color =
|
|
6393
|
+
const { children, color = Color.dark, actionText = 'ok', onOk, ...rest } = props;
|
|
6393
6394
|
const getCssClasses = () => {
|
|
6394
6395
|
const cssClasses = [];
|
|
6395
6396
|
cssClasses.push(styles$f.snackbar);
|
|
@@ -6405,9 +6406,9 @@ const Snackbar = (props) => {
|
|
|
6405
6406
|
|
|
6406
6407
|
class SnackbarService {
|
|
6407
6408
|
show(message, options) {
|
|
6408
|
-
const defaultOptions = { timeout: 3000, actionText: 'ok', color:
|
|
6409
|
+
const defaultOptions = { timeout: 3000, actionText: 'ok', color: Color.dark, target: document.body };
|
|
6409
6410
|
const mergedOptions = Object.assign(defaultOptions, options);
|
|
6410
|
-
return new Promise(
|
|
6411
|
+
return new Promise(resolve => {
|
|
6411
6412
|
if (this.container) {
|
|
6412
6413
|
this.hide();
|
|
6413
6414
|
}
|
|
@@ -6481,14 +6482,14 @@ var styles$c = {"speedDialAction":"SpeedDialAction-module_speedDialAction__kJLpz
|
|
|
6481
6482
|
styleInject(css_248z$c);
|
|
6482
6483
|
|
|
6483
6484
|
const SpeedDialAction = (props) => {
|
|
6484
|
-
const { icon, color =
|
|
6485
|
+
const { icon, color = Color.light, onClick, className } = props;
|
|
6485
6486
|
const getCssClasses = () => {
|
|
6486
6487
|
const cssClasses = [];
|
|
6487
6488
|
cssClasses.push(styles$c.speedDialAction);
|
|
6488
6489
|
className && cssClasses.push(className);
|
|
6489
6490
|
return cssClasses.filter(css => css).join(' ');
|
|
6490
6491
|
};
|
|
6491
|
-
return
|
|
6492
|
+
return jsx(IconButton, { className: getCssClasses(), icon: icon, color: color, variant: VARIANT.contained, shadow: true, onClick: onClick });
|
|
6492
6493
|
};
|
|
6493
6494
|
|
|
6494
6495
|
const SpeedDialIcon = (props) => {
|
|
@@ -6513,10 +6514,7 @@ const StepperActions = (props) => {
|
|
|
6513
6514
|
className && cssClasses.push(className);
|
|
6514
6515
|
return cssClasses.filter(css => css).join(' ');
|
|
6515
6516
|
};
|
|
6516
|
-
return (jsxs("div", { className: getCssClasses(), children: [!isFirstStep &&
|
|
6517
|
-
jsx(Button, { className: "mr-2", variant: VARIANT.outline, startIcon: jsx(ChevronLeftSolidIcon, {}), onClick: () => onBack && onBack(), children: "Back" }), jsxs("div", { className: "ml-auto", children: [isCompleted && showResetButton && (jsx(Button, { color: COLOR.secondary, variant: VARIANT.text, onClick: () => onReset && onReset(), children: "Reset" })), isStepOptional && (jsx(Button, { variant: VARIANT.contained, color: COLOR.primary, onClick: () => onSkip && onSkip(), children: "Skip" })), !isCompleted &&
|
|
6518
|
-
jsx(Button, { className: 'ml-2', variant: VARIANT.contained, color: COLOR.primary, endIcon: jsx(ChevronRightSolidIcon, {}), onClick: () => onNext && onNext(), children: "Next" }), isCompleted && showDoneButton &&
|
|
6519
|
-
jsx(Button, { className: 'ml-2', variant: VARIANT.contained, color: COLOR.primary, startIcon: jsx(CheckSolidIcon, {}), onClick: () => onNext && onNext(), children: "Done" })] })] }));
|
|
6517
|
+
return (jsxs("div", { className: getCssClasses(), children: [!isFirstStep && (jsx(Button, { className: "mr-2", variant: VARIANT.outline, startIcon: jsx(ChevronLeftSolidIcon, {}), onClick: () => onBack && onBack(), children: "Back" })), jsxs("div", { className: "ml-auto", children: [isCompleted && showResetButton && (jsx(Button, { color: Color.secondary, variant: VARIANT.text, onClick: () => onReset && onReset(), children: "Reset" })), isStepOptional && (jsx(Button, { variant: VARIANT.contained, color: Color.primary, onClick: () => onSkip && onSkip(), children: "Skip" })), !isCompleted && (jsx(Button, { className: "ml-2", variant: VARIANT.contained, color: Color.primary, endIcon: jsx(ChevronRightSolidIcon, {}), onClick: () => onNext && onNext(), children: "Next" })), isCompleted && showDoneButton && (jsx(Button, { className: "ml-2", variant: VARIANT.contained, color: Color.primary, startIcon: jsx(CheckSolidIcon, {}), onClick: () => onNext && onNext(), children: "Done" }))] })] }));
|
|
6520
6518
|
};
|
|
6521
6519
|
|
|
6522
6520
|
const StepPanel = (props) => {
|
|
@@ -6554,7 +6552,7 @@ var styles$8 = {"dot":"Dot-module_dot__w59yb","isActive":"Dot-module_isActive__V
|
|
|
6554
6552
|
styleInject(css_248z$8);
|
|
6555
6553
|
|
|
6556
6554
|
const Dot = (props) => {
|
|
6557
|
-
const { className, color =
|
|
6555
|
+
const { className, color = Color.primary, isActive, ...rest } = props;
|
|
6558
6556
|
const getCssClasses = () => {
|
|
6559
6557
|
const cssClasses = [];
|
|
6560
6558
|
cssClasses.push(styles$8.dot);
|
|
@@ -6563,7 +6561,7 @@ const Dot = (props) => {
|
|
|
6563
6561
|
className && cssClasses.push(className);
|
|
6564
6562
|
return cssClasses.filter(css => css).join(' ');
|
|
6565
6563
|
};
|
|
6566
|
-
return
|
|
6564
|
+
return jsx("div", { className: getCssClasses(), ...rest });
|
|
6567
6565
|
};
|
|
6568
6566
|
|
|
6569
6567
|
const Stepper = (props) => {
|
|
@@ -6713,11 +6711,7 @@ const Step = (props) => {
|
|
|
6713
6711
|
isActive && cssClasses.push(styles$6.stepValue['isActive']);
|
|
6714
6712
|
return cssClasses.filter(css => css).join(' ');
|
|
6715
6713
|
};
|
|
6716
|
-
return (jsxs("div", { ref: hoverRef, className: getCssClasses(), onClick: handleClick, children: [jsxs("div", { className: getCssClassesStep(), children: [jsx(Icon, { className: styles$6.stepIconCircle, iconColor: (isHovered || isActive) && !isDisabled ?
|
|
6717
|
-
jsx(Icon, { children: jsx(CheckSolidIcon, {}) })
|
|
6718
|
-
:
|
|
6719
|
-
jsx(Typography, { children: index + 1 }) })] }), label && showLabel &&
|
|
6720
|
-
jsx(Typography, { className: "flex-shrink-0", children: label })] }));
|
|
6714
|
+
return (jsxs("div", { ref: hoverRef, className: getCssClasses(), onClick: handleClick, children: [jsxs("div", { className: getCssClassesStep(), children: [jsx(Icon, { className: styles$6.stepIconCircle, iconColor: (isHovered || isActive) && !isDisabled ? Color.primary : Color.secondary, children: jsx(CircleSolidIcon, {}) }), jsx("div", { className: getCssClassesStepValue(), children: showProgressCheckIcon && isActive && isDone ? (jsx(Icon, { children: jsx(CheckSolidIcon, {}) })) : (jsx(Typography, { children: index + 1 })) })] }), label && showLabel && jsx(Typography, { className: "flex-shrink-0", children: label })] }));
|
|
6721
6715
|
};
|
|
6722
6716
|
|
|
6723
6717
|
var css_248z$5 = ":root {\n --table-bg: transparent;\n --table-accent-bg: transparent;\n --table-striped-color: #212529;\n --table-striped-bg: rgba(0, 0, 0, 0.05);\n --table-active-color: #212529;\n --table-active-bg: rgba(0, 0, 0, 0.1);\n --table-hover-color: #212529;\n --table-hover-bg: rgba(0, 0, 0, 0.075);\n}\n\n.Table-module_tableResponsive__ykttB {\n overflow-x: auto;\n}\n\n.Table-module_table__DHKNv {\n display: table;\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0px;\n min-width: 650px;\n}\n.Table-module_table__DHKNv thead {\n display: table-header-group;\n}\n.Table-module_table__DHKNv tbody {\n display: table-row-group;\n}\n.Table-module_table__DHKNv tr {\n color: inherit;\n display: table-row;\n vertical-align: middle;\n outline: 0px;\n}\n.Table-module_table__DHKNv th {\n font-size: 0.875rem;\n line-height: 1.5rem;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgb(224, 224, 224);\n text-align: left;\n padding: 16px;\n color: rgba(0, 0, 0, 0.87);\n border-collapse: collapse;\n border-spacing: 0px;\n}\n.Table-module_table__DHKNv td {\n font-size: 0.875rem;\n line-height: 1.43;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgb(224, 224, 224);\n padding: 16px;\n color: rgba(0, 0, 0, 0.87);\n flex-direction: row-reverse;\n}\n\n.Table-module_hover__P6r3y > tbody > tr:hover > * {\n background-color: var(--table-hover-bg);\n color: var(--table-hover-color);\n}";
|
|
@@ -6773,7 +6767,7 @@ var styles$4 = {"tabIndicator":"TabIndicator-module_tabIndicator__jSJhH","primar
|
|
|
6773
6767
|
styleInject(css_248z$4);
|
|
6774
6768
|
|
|
6775
6769
|
const TabIndicator = (props) => {
|
|
6776
|
-
const { color =
|
|
6770
|
+
const { color = Color.primary, width, amount, index } = props;
|
|
6777
6771
|
const getCssClasses = () => {
|
|
6778
6772
|
const cssClasses = [];
|
|
6779
6773
|
cssClasses.push(styles$4.tabIndicator);
|
|
@@ -6782,7 +6776,7 @@ const TabIndicator = (props) => {
|
|
|
6782
6776
|
};
|
|
6783
6777
|
return (jsx("span", { className: getCssClasses(), style: {
|
|
6784
6778
|
width: width,
|
|
6785
|
-
left: `calc(calc(100% / ${amount}) * ${index})
|
|
6779
|
+
left: `calc(calc(100% / ${amount}) * ${index})`,
|
|
6786
6780
|
} }));
|
|
6787
6781
|
};
|
|
6788
6782
|
|
|
@@ -6791,14 +6785,14 @@ var styles$3 = {"tabs":"Tabs-module_tabs__YyRTZ"};
|
|
|
6791
6785
|
styleInject(css_248z$3);
|
|
6792
6786
|
|
|
6793
6787
|
const Tabs = (props) => {
|
|
6794
|
-
const { children, className, fixed = false, color, indicatorColor =
|
|
6788
|
+
const { children, className, fixed = false, color, indicatorColor = Color.accent, value, onChange } = props;
|
|
6795
6789
|
const [selectedValue, setSelectedValue] = useState('');
|
|
6796
6790
|
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
6797
|
-
const tabContext =
|
|
6791
|
+
const tabContext = {
|
|
6798
6792
|
selectedValue: selectedValue,
|
|
6799
6793
|
setSelectedValue: setSelectedValue,
|
|
6800
|
-
fixed: fixed
|
|
6801
|
-
}
|
|
6794
|
+
fixed: fixed,
|
|
6795
|
+
};
|
|
6802
6796
|
const prevSelectedValueRef = useRef();
|
|
6803
6797
|
useEffect(() => {
|
|
6804
6798
|
if (value !== undefined && value !== prevSelectedValueRef.current) {
|
|
@@ -6822,8 +6816,7 @@ const Tabs = (props) => {
|
|
|
6822
6816
|
className && cssClasses.push(className);
|
|
6823
6817
|
return cssClasses.filter(css => css).join(' ');
|
|
6824
6818
|
};
|
|
6825
|
-
return (jsx(ButtonContext.Provider, { value: { color: color ||
|
|
6826
|
-
jsx(TabIndicator, { color: indicatorColor, width: (100 / React.Children.toArray(children).length) + '%', index: selectedIndex, amount: React.Children.toArray(children).length })] }) }) }));
|
|
6819
|
+
return (jsx(ButtonContext.Provider, { value: { color: color || Color.light }, children: jsx(TabContext.Provider, { value: tabContext, children: jsxs("div", { className: getCssClasses(), children: [children, children && (jsx(TabIndicator, { color: indicatorColor, width: 100 / React.Children.toArray(children).length + '%', index: selectedIndex, amount: React.Children.toArray(children).length }))] }) }) }));
|
|
6827
6820
|
};
|
|
6828
6821
|
|
|
6829
6822
|
var css_248z$2 = ".Tab-module_tab__Q8w1f {\n padding: 6px 12px;\n overflow: hidden;\n position: relative;\n font-size: 0.875rem;\n min-width: 72px;\n box-sizing: border-box;\n min-height: 48px;\n text-align: center;\n font-weight: 500;\n line-height: 1.75;\n white-space: normal;\n letter-spacing: 0.02857em;\n text-transform: uppercase;\n border-radius: 0;\n flex-grow: 1;\n flex-basis: 0;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}";
|
|
@@ -7264,4 +7257,4 @@ String.prototype.capitalize = function () {
|
|
|
7264
7257
|
return this.charAt(0).toUpperCase() + this.slice(1);
|
|
7265
7258
|
};
|
|
7266
7259
|
|
|
7267
|
-
export { Alert, AppBar, AppBarTitle, AutoComplete, Backdrop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonContext, ButtonGroup,
|
|
7260
|
+
export { Alert, AppBar, AppBarTitle, AutoComplete, Backdrop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonContext, ButtonGroup, Card, CardBody, CardFooter, CardImage, CardSubtitle, CardText, CardTitle, CaretDownSolidIcon, CheckSolidIcon, CheckSquareRegularIcon, Checkbox, ChevronDownSolidIcon, ChevronLeftSolidIcon, ChevronRightSolidIcon, ChevronUpSolidIcon, Chip, CircleSolidIcon, Color, Column, ConditionalWrapper, CssTransition, DATEMODE, DatePicker, DateSelect, DaySelect, Dot, Drawer, EmailValidator, ExpansionPanel, ExpansionPanelContent, ExpansionPanelHeader, FileInput, FileService, FloatingActionButton, Form, FormControl, FormError, FormGroup, FormHint, FormInput, FormLabel, GlobalModal, HomeSolidIcon, HourSelect, Icon, IconButton, IsEmptyValidator, IsEqualValidator, Link, List, ListItem, ListItemAction, ListItemAvatar, ListItemAvatarSize, ListItemIcon, ListItemText, LoadingIndicator, LoadingIndicatorContainer, LogType, MODALBUTTONTYPE, MODALTYPE, MaxValidator, Menu, MenuBody, MenuDivider, MenuItem, MenuToggle, MilliSecondSelect, MinValidator, MinuteSelect, Modal, ModalBody, ModalFooter, ModalHeader, MonthSelect, NumberSelect, POSITION, PlusSolidIcon, Portal$1 as Portal, ProgressBar, Row, SIZE, STATUS, SecondSelect, Select, Sidebar, SkeletonAvatar, SkeletonFooter, SkeletonImage, SkeletonText, Snackbar, SpeedDial, SpeedDialAction, SpeedDialIcon, SpinnerSolidIcon, SquareRegularIcon, Step, Stepper, StepperActions, TIMEMODE, Tab, TabPanel, Table, TableBody, TableCell, TableHead, TableRow, Tabs, Textarea, TimeSelect, TimesCircleSolidIcon, TimesSolidIcon, Tooltip, TooltipPlacement, TreeItem, TreeView, Typography, VARIANT, YearSelect, clipboardService, fileService, loadingIndicatorService, localService, loggerService, modalService, snackbarService, useButtonContext, useConstructor, useCssClasses, useDebounce, useHover, useMobileDetect, useOnDestroy, usePrevious, useWindowSize };
|