react-asc 25.5.2 → 25.5.4
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.es.js +1313 -1491
- package/index.js +1312 -1490
- package/{components → lib/components}/Alert/Alert.d.ts +1 -2
- package/{components → lib/components}/Form/Form.d.ts +1 -0
- package/{components → lib/components}/Form/FormGroup.d.ts +2 -2
- package/{components → lib/components}/component.enums.d.ts +1 -0
- package/{components → lib/components}/index.d.ts +9 -9
- package/{hooks → lib/hooks}/index.d.ts +2 -2
- package/{icons → lib/icons}/index.d.ts +5 -5
- package/package.json +1 -1
- package/react-asc.scss +17 -6
- /package/{components → lib/components}/Alert/index.d.ts +0 -0
- /package/{components → lib/components}/AppBar/AppBar.d.ts +0 -0
- /package/{components → lib/components}/AppBar/AppBarTitle.d.ts +0 -0
- /package/{components → lib/components}/AppBar/index.d.ts +0 -0
- /package/{components → lib/components}/AutoComplete/AutoComplete.d.ts +0 -0
- /package/{components → lib/components}/AutoComplete/index.d.ts +0 -0
- /package/{components → lib/components}/Backdrop/Backdrop.d.ts +0 -0
- /package/{components → lib/components}/Backdrop/index.d.ts +0 -0
- /package/{components → lib/components}/Badge/Badge.d.ts +0 -0
- /package/{components → lib/components}/Badge/index.d.ts +0 -0
- /package/{components → lib/components}/Breadcrumb/Breadcrumb.d.ts +0 -0
- /package/{components → lib/components}/Breadcrumb/BreadcrumbItem.d.ts +0 -0
- /package/{components → lib/components}/Breadcrumb/index.d.ts +0 -0
- /package/{components → lib/components}/Button/Button.d.ts +0 -0
- /package/{components → lib/components}/Button/ButtonContext.d.ts +0 -0
- /package/{components → lib/components}/Button/index.d.ts +0 -0
- /package/{components → lib/components}/ButtonGroup/ButtonGroup.d.ts +0 -0
- /package/{components → lib/components}/ButtonGroup/index.d.ts +0 -0
- /package/{components → lib/components}/Card/Card.d.ts +0 -0
- /package/{components → lib/components}/Card/CardBody.d.ts +0 -0
- /package/{components → lib/components}/Card/CardFooter.d.ts +0 -0
- /package/{components → lib/components}/Card/CardImage.d.ts +0 -0
- /package/{components → lib/components}/Card/CardSubtitle.d.ts +0 -0
- /package/{components → lib/components}/Card/CardText.d.ts +0 -0
- /package/{components → lib/components}/Card/CardTitle.d.ts +0 -0
- /package/{components → lib/components}/Card/index.d.ts +0 -0
- /package/{components → lib/components}/Checkbox/Checkbox.d.ts +0 -0
- /package/{components → lib/components}/Checkbox/index.d.ts +0 -0
- /package/{components → lib/components}/Chip/Chip.d.ts +0 -0
- /package/{components → lib/components}/Chip/index.d.ts +0 -0
- /package/{components → lib/components}/ConditionalWrapper/ConditionalWrapper.d.ts +0 -0
- /package/{components → lib/components}/ConditionalWrapper/index.d.ts +0 -0
- /package/{components → lib/components}/CssTransition/CssTransition.d.ts +0 -0
- /package/{components → lib/components}/CssTransition/index.d.ts +0 -0
- /package/{components → lib/components}/DatePicker/DatePicker.d.ts +0 -0
- /package/{components → lib/components}/DatePicker/index.d.ts +0 -0
- /package/{components → lib/components}/DateSelect/DateSelect.d.ts +0 -0
- /package/{components → lib/components}/DateSelect/DaySelect.d.ts +0 -0
- /package/{components → lib/components}/DateSelect/MonthSelect.d.ts +0 -0
- /package/{components → lib/components}/DateSelect/YearSelect.d.ts +0 -0
- /package/{components → lib/components}/DateSelect/index.d.ts +0 -0
- /package/{components → lib/components}/Drawer/Drawer.d.ts +0 -0
- /package/{components → lib/components}/Drawer/index.d.ts +0 -0
- /package/{components → lib/components}/ExpansionPanel/ExpansionPanel.d.ts +0 -0
- /package/{components → lib/components}/ExpansionPanel/ExpansionPanelContent.d.ts +0 -0
- /package/{components → lib/components}/ExpansionPanel/ExpansionPanelHeader.d.ts +0 -0
- /package/{components → lib/components}/ExpansionPanel/index.d.ts +0 -0
- /package/{components → lib/components}/FileInput/FileInput.d.ts +0 -0
- /package/{components → lib/components}/FileInput/index.d.ts +0 -0
- /package/{components → lib/components}/FloatingActionButton/FloatingActionButton.d.ts +0 -0
- /package/{components → lib/components}/FloatingActionButton/index.d.ts +0 -0
- /package/{components → lib/components}/Form/FormError.d.ts +0 -0
- /package/{components → lib/components}/Form/FormHint/FormHint.d.ts +0 -0
- /package/{components → lib/components}/Form/FormHint/index.d.ts +0 -0
- /package/{components → lib/components}/Form/FormInput/FormInput.d.ts +0 -0
- /package/{components → lib/components}/Form/FormInput/index.d.ts +0 -0
- /package/{components → lib/components}/Form/FormLabel/FormLabel.d.ts +0 -0
- /package/{components → lib/components}/Form/FormLabel/index.d.ts +0 -0
- /package/{components → lib/components}/Form/form.interfaces.d.ts +0 -0
- /package/{components → lib/components}/Form/form.models.d.ts +0 -0
- /package/{components → lib/components}/Form/form.types.d.ts +0 -0
- /package/{components → lib/components}/Form/index.d.ts +0 -0
- /package/{components → lib/components}/Form/validators/EmailValidtor.d.ts +0 -0
- /package/{components → lib/components}/Form/validators/IsEmptyValidator.d.ts +0 -0
- /package/{components → lib/components}/Form/validators/IsEqualValidator.d.ts +0 -0
- /package/{components → lib/components}/Form/validators/MaxValidator.d.ts +0 -0
- /package/{components → lib/components}/Form/validators/MinValidator.d.ts +0 -0
- /package/{components → lib/components}/Form/validators/index.d.ts +0 -0
- /package/{components → lib/components}/Grid/Column/Column.d.ts +0 -0
- /package/{components → lib/components}/Grid/Column/index.d.ts +0 -0
- /package/{components → lib/components}/Grid/Row/Row.d.ts +0 -0
- /package/{components → lib/components}/Grid/Row/index.d.ts +0 -0
- /package/{components → lib/components}/Grid/index.d.ts +0 -0
- /package/{components → lib/components}/Icon/Icon.d.ts +0 -0
- /package/{components → lib/components}/Icon/index.d.ts +0 -0
- /package/{components → lib/components}/IconButton/IconButton.d.ts +0 -0
- /package/{components → lib/components}/IconButton/index.d.ts +0 -0
- /package/{components → lib/components}/Link/Link.d.ts +0 -0
- /package/{components → lib/components}/Link/Link.test.d.ts +0 -0
- /package/{components → lib/components}/Link/index.d.ts +0 -0
- /package/{components → lib/components}/List/List.d.ts +0 -0
- /package/{components → lib/components}/List/ListItem.d.ts +0 -0
- /package/{components → lib/components}/List/ListItemAction.d.ts +0 -0
- /package/{components → lib/components}/List/ListItemAvatar.d.ts +0 -0
- /package/{components → lib/components}/List/ListItemIcon.d.ts +0 -0
- /package/{components → lib/components}/List/ListItemText.d.ts +0 -0
- /package/{components → lib/components}/List/index.d.ts +0 -0
- /package/{components → lib/components}/List/list.models.d.ts +0 -0
- /package/{components → lib/components}/LoadingIndicator/LoadingIndicator.d.ts +0 -0
- /package/{components → lib/components}/LoadingIndicator/LoadingIndicatorContainer.d.ts +0 -0
- /package/{components → lib/components}/LoadingIndicator/index.d.ts +0 -0
- /package/{components → lib/components}/LoadingIndicator/loading-indicator.service.d.ts +0 -0
- /package/{components → lib/components}/Menu/Menu.d.ts +0 -0
- /package/{components → lib/components}/Menu/MenuBody.d.ts +0 -0
- /package/{components → lib/components}/Menu/MenuContext.d.ts +0 -0
- /package/{components → lib/components}/Menu/MenuDivider.d.ts +0 -0
- /package/{components → lib/components}/Menu/MenuItem.d.ts +0 -0
- /package/{components → lib/components}/Menu/MenuToggle.d.ts +0 -0
- /package/{components → lib/components}/Menu/index.d.ts +0 -0
- /package/{components → lib/components}/Menu/menu.types.d.ts +0 -0
- /package/{components → lib/components}/Modal/GlobalModal.d.ts +0 -0
- /package/{components → lib/components}/Modal/Modal.d.ts +0 -0
- /package/{components → lib/components}/Modal/ModalBody.d.ts +0 -0
- /package/{components → lib/components}/Modal/ModalFooter.d.ts +0 -0
- /package/{components → lib/components}/Modal/ModalHeader.d.ts +0 -0
- /package/{components → lib/components}/Modal/index.d.ts +0 -0
- /package/{components → lib/components}/Modal/modal.enum.d.ts +0 -0
- /package/{components → lib/components}/Modal/modal.interfaces.d.ts +0 -0
- /package/{components → lib/components}/Modal/modal.service.d.ts +0 -0
- /package/{components → lib/components}/NumberSelect/NumberSelect.d.ts +0 -0
- /package/{components → lib/components}/NumberSelect/index.d.ts +0 -0
- /package/{components → lib/components}/Portal/Portal.d.ts +0 -0
- /package/{components → lib/components}/Portal/index.d.ts +0 -0
- /package/{components → lib/components}/ProgressBar/ProgressBar.d.ts +0 -0
- /package/{components → lib/components}/ProgressBar/index.d.ts +0 -0
- /package/{components → lib/components}/Select/Select.d.ts +0 -0
- /package/{components → lib/components}/Select/index.d.ts +0 -0
- /package/{components → lib/components}/Sidebar/Sidebar.d.ts +0 -0
- /package/{components → lib/components}/Sidebar/index.d.ts +0 -0
- /package/{components → lib/components}/Sidebar/sidebar.interfaces.d.ts +0 -0
- /package/{components → lib/components}/Sidebar/sidebar.models.d.ts +0 -0
- /package/{components → lib/components}/Skeleton/SkeletonAvatar.d.ts +0 -0
- /package/{components → lib/components}/Skeleton/SkeletonFooter.d.ts +0 -0
- /package/{components → lib/components}/Skeleton/SkeletonImage.d.ts +0 -0
- /package/{components → lib/components}/Skeleton/SkeletonText.d.ts +0 -0
- /package/{components → lib/components}/Skeleton/index.d.ts +0 -0
- /package/{components → lib/components}/Snackbar/Snackbar.d.ts +0 -0
- /package/{components → lib/components}/Snackbar/index.d.ts +0 -0
- /package/{components → lib/components}/Snackbar/snackbar.service.d.ts +0 -0
- /package/{components → lib/components}/SpeedDial/SpeedDial.d.ts +0 -0
- /package/{components → lib/components}/SpeedDial/SpeedDialAction.d.ts +0 -0
- /package/{components → lib/components}/SpeedDial/SpeedDialActions.d.ts +0 -0
- /package/{components → lib/components}/SpeedDial/SpeedDialIcon.d.ts +0 -0
- /package/{components → lib/components}/SpeedDial/index.d.ts +0 -0
- /package/{components → lib/components}/Stepper/Dot/Dot.d.ts +0 -0
- /package/{components → lib/components}/Stepper/Dot/index.d.ts +0 -0
- /package/{components → lib/components}/Stepper/Step/Step.d.ts +0 -0
- /package/{components → lib/components}/Stepper/Step/index.d.ts +0 -0
- /package/{components → lib/components}/Stepper/StepConnector/StepConnector.d.ts +0 -0
- /package/{components → lib/components}/Stepper/StepPanel/StepPanel.d.ts +0 -0
- /package/{components → lib/components}/Stepper/Stepper.d.ts +0 -0
- /package/{components → lib/components}/Stepper/StepperActions/StepperActions.d.ts +0 -0
- /package/{components → lib/components}/Stepper/StepperActions/index.d.ts +0 -0
- /package/{components → lib/components}/Stepper/index.d.ts +0 -0
- /package/{components → lib/components}/Table/Table.d.ts +0 -0
- /package/{components → lib/components}/Table/TableBody.d.ts +0 -0
- /package/{components → lib/components}/Table/TableCell.d.ts +0 -0
- /package/{components → lib/components}/Table/TableContext.d.ts +0 -0
- /package/{components → lib/components}/Table/TableHead.d.ts +0 -0
- /package/{components → lib/components}/Table/TableRow.d.ts +0 -0
- /package/{components → lib/components}/Table/index.d.ts +0 -0
- /package/{components → lib/components}/Tabs/Tab.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabContext.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabIndicator.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabPanel.d.ts +0 -0
- /package/{components → lib/components}/Tabs/Tabs.d.ts +0 -0
- /package/{components → lib/components}/Tabs/index.d.ts +0 -0
- /package/{components → lib/components}/Textarea/Textarea.d.ts +0 -0
- /package/{components → lib/components}/Textarea/index.d.ts +0 -0
- /package/{components → lib/components}/TimeSelect/HourSelect.d.ts +0 -0
- /package/{components → lib/components}/TimeSelect/MilliSecondSelect.d.ts +0 -0
- /package/{components → lib/components}/TimeSelect/MinuteSelect.d.ts +0 -0
- /package/{components → lib/components}/TimeSelect/SecondSelect.d.ts +0 -0
- /package/{components → lib/components}/TimeSelect/TimeSelect.d.ts +0 -0
- /package/{components → lib/components}/TimeSelect/index.d.ts +0 -0
- /package/{components → lib/components}/Tooltip/Tooltip.d.ts +0 -0
- /package/{components → lib/components}/Tooltip/index.d.ts +0 -0
- /package/{components → lib/components}/Tooltip/tooltip.enums.d.ts +0 -0
- /package/{components → lib/components}/TreeView/TreeItem.d.ts +0 -0
- /package/{components → lib/components}/TreeView/TreeView.d.ts +0 -0
- /package/{components → lib/components}/TreeView/index.d.ts +0 -0
- /package/{components → lib/components}/Typography/Typography.d.ts +0 -0
- /package/{components → lib/components}/Typography/index.d.ts +0 -0
- /package/{components → lib/components}/component.interfaces.d.ts +0 -0
- /package/{hooks → lib/hooks}/useConstructor.d.ts +0 -0
- /package/{hooks → lib/hooks}/useCssClasses.d.ts +0 -0
- /package/{hooks → lib/hooks}/useDebounce.d.ts +0 -0
- /package/{hooks → lib/hooks}/useHover.d.ts +0 -0
- /package/{hooks → lib/hooks}/useMobileDetect.d.ts +0 -0
- /package/{hooks → lib/hooks}/useOnDestroy.d.ts +0 -0
- /package/{hooks → lib/hooks}/useWindowSize.d.ts +0 -0
- /package/{icons → lib/icons}/CaretDownSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/CheckSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/CheckSquareRegularIcon.d.ts +0 -0
- /package/{icons → lib/icons}/ChevronDownSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/ChevronLeftSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/ChevronRightSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/ChevronUpSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/CircleSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/HomeSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/PlusSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/SpinnerSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/SquareRegularIcon.d.ts +0 -0
- /package/{icons → lib/icons}/TimesCircleSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/TimesSolidIcon.d.ts +0 -0
- /package/{index.d.ts → lib/index.d.ts} +0 -0
- /package/{interfaces → lib/interfaces}/index.d.ts +0 -0
- /package/{interfaces → lib/interfaces}/interfaces.d.ts +0 -0
package/index.es.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
2
|
+
import React, { useEffect, useRef, useState, useMemo, createContext, useContext, Component, Fragment as Fragment$2, createRef, cloneElement } from 'react';
|
|
2
3
|
import reactDom, { createPortal } from 'react-dom';
|
|
3
4
|
import { createPopper } from '@popperjs/core';
|
|
4
5
|
|
|
@@ -7,7 +8,7 @@ var COLOR;
|
|
|
7
8
|
COLOR["primary"] = "primary";
|
|
8
9
|
COLOR["accent"] = "accent";
|
|
9
10
|
COLOR["secondary"] = "secondary";
|
|
10
|
-
|
|
11
|
+
COLOR["danger"] = "danger";
|
|
11
12
|
COLOR["light"] = "light";
|
|
12
13
|
COLOR["dark"] = "dark";
|
|
13
14
|
})(COLOR || (COLOR = {}));
|
|
@@ -61,151 +62,126 @@ function styleInject(css, ref) {
|
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
|
|
64
|
-
var css_248z$
|
|
65
|
-
var styles$
|
|
66
|
-
styleInject(css_248z$
|
|
65
|
+
var css_248z$16 = ".Alert-module_alert__b4tbk {\n border-radius: var(--borderRadius);\n padding: 6px 16px;\n}\n.Alert-module_alert__b4tbk.Alert-module_shadow__5bz-7 {\n box-shadow: var(--shadow);\n}\n\n.Alert-module_contained__EM0x6.Alert-module_primary__q4pNj {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Alert-module_contained__EM0x6.Alert-module_accent__a2WIl {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Alert-module_contained__EM0x6.Alert-module_secondary__syXKX {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Alert-module_contained__EM0x6.Alert-module_light__VKCXF {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Alert-module_contained__EM0x6.Alert-module_dark__3c-Hm {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n\n.Alert-module_outline__T2262.Alert-module_primary__q4pNj {\n color: var(--primary) !important;\n border: 1px solid var(--primary) !important;\n}\n.Alert-module_outline__T2262.Alert-module_secondary__syXKX {\n color: var(--secondary) !important;\n border: 1px solid var(--secondary) !important;\n}\n.Alert-module_outline__T2262.Alert-module_accent__a2WIl {\n color: var(--accent) !important;\n border: 1px solid var(--accent) !important;\n}\n.Alert-module_outline__T2262.Alert-module_light__VKCXF {\n color: var(--light-contrast-text) !important;\n border: 1px solid var(--light) !important;\n}\n.Alert-module_outline__T2262.Alert-module_dark__3c-Hm {\n color: var(--dark) !important;\n border: 1px solid var(--dark) !important;\n}";
|
|
66
|
+
var styles$16 = {"alert":"Alert-module_alert__b4tbk","shadow":"Alert-module_shadow__5bz-7","contained":"Alert-module_contained__EM0x6","primary":"Alert-module_primary__q4pNj","accent":"Alert-module_accent__a2WIl","secondary":"Alert-module_secondary__syXKX","light":"Alert-module_light__VKCXF","dark":"Alert-module_dark__3c-Hm","outline":"Alert-module_outline__T2262"};
|
|
67
|
+
styleInject(css_248z$16);
|
|
67
68
|
|
|
68
69
|
const Alert = (props) => {
|
|
69
70
|
const { children, className, color = COLOR.primary, variant = VARIANT.contained, shadow = true, ...rest } = props;
|
|
70
71
|
const getCssClasses = () => {
|
|
71
72
|
const cssClasses = [];
|
|
72
|
-
cssClasses.push(styles$
|
|
73
|
+
cssClasses.push(styles$16.alert);
|
|
73
74
|
if (variant === VARIANT.contained) {
|
|
74
|
-
cssClasses.push(styles$
|
|
75
|
-
cssClasses.push(styles$
|
|
75
|
+
cssClasses.push(styles$16.contained);
|
|
76
|
+
cssClasses.push(styles$16[color]);
|
|
76
77
|
}
|
|
77
78
|
if (variant === VARIANT.outline) {
|
|
78
|
-
cssClasses.push(styles$
|
|
79
|
-
cssClasses.push(styles$
|
|
79
|
+
cssClasses.push(styles$16.outline);
|
|
80
|
+
cssClasses.push(styles$16[color]);
|
|
80
81
|
}
|
|
81
|
-
shadow && cssClasses.push(styles$
|
|
82
|
+
shadow && cssClasses.push(styles$16['shadow']);
|
|
82
83
|
className && cssClasses.push(className);
|
|
83
84
|
return cssClasses.filter(r => r).join(' ');
|
|
84
85
|
};
|
|
85
|
-
return (
|
|
86
|
+
return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
86
87
|
};
|
|
87
88
|
|
|
88
|
-
var css_248z$
|
|
89
|
-
var styles$
|
|
90
|
-
styleInject(css_248z$
|
|
89
|
+
var css_248z$15 = ".AppBar-module_appbar__Neyh3 {\n padding: 0.5rem var(--1);\n display: flex;\n z-index: 1000;\n min-height: 64px;\n flex-shrink: 0;\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_primary__xMqXD {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_secondary__8MkLA {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_accent__vHbkp {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_light__HGy3y {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_dark__ILq96 {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_shadow__gQN8s {\n box-shadow: 0 4px 2px -2px var(--shadowColor);\n}";
|
|
90
|
+
var styles$15 = {"appbar":"AppBar-module_appbar__Neyh3","primary":"AppBar-module_primary__xMqXD","secondary":"AppBar-module_secondary__8MkLA","accent":"AppBar-module_accent__vHbkp","light":"AppBar-module_light__HGy3y","dark":"AppBar-module_dark__ILq96","shadow":"AppBar-module_shadow__gQN8s"};
|
|
91
|
+
styleInject(css_248z$15);
|
|
91
92
|
|
|
92
93
|
const AppBar = (props) => {
|
|
93
94
|
const { children, className, color = COLOR.primary, shadow = true, ...rest } = props;
|
|
94
95
|
const getCssClasses = () => {
|
|
95
96
|
const cssClasses = [];
|
|
96
|
-
cssClasses.push(styles$
|
|
97
|
-
cssClasses.push(styles$
|
|
98
|
-
shadow && cssClasses.push(styles$
|
|
97
|
+
cssClasses.push(styles$15[color]);
|
|
98
|
+
cssClasses.push(styles$15.appbar);
|
|
99
|
+
shadow && cssClasses.push(styles$15['shadow']);
|
|
99
100
|
className && cssClasses.push(className);
|
|
100
101
|
return cssClasses.filter(r => r).join(' ');
|
|
101
102
|
};
|
|
102
|
-
return (
|
|
103
|
+
return (jsx("nav", { className: getCssClasses(), ...rest, children: children }));
|
|
103
104
|
};
|
|
104
105
|
|
|
105
|
-
var css_248z$
|
|
106
|
-
var styles$
|
|
107
|
-
styleInject(css_248z$
|
|
106
|
+
var css_248z$14 = ".AppBarTitle-module_appbarTitle__RsFg5 {\n align-items: center;\n padding-top: 0.3125rem;\n padding-bottom: 0.3125rem;\n font-size: 1.25rem;\n line-height: 1.8;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden !important;\n display: inline-block;\n}\n.AppBarTitle-module_appbarTitle__RsFg5:hover {\n cursor: pointer;\n}";
|
|
107
|
+
var styles$14 = {"appbarTitle":"AppBarTitle-module_appbarTitle__RsFg5"};
|
|
108
|
+
styleInject(css_248z$14);
|
|
108
109
|
|
|
109
110
|
const AppBarTitle = (props) => {
|
|
110
111
|
const { children, className, onClick } = props;
|
|
111
112
|
const getCssClass = () => {
|
|
112
113
|
const cssClasses = [];
|
|
113
|
-
cssClasses.push(styles$
|
|
114
|
+
cssClasses.push(styles$14.appbarTitle);
|
|
114
115
|
className && cssClasses.push(className);
|
|
115
116
|
return cssClasses.filter(r => r).join(' ');
|
|
116
117
|
};
|
|
117
|
-
return (
|
|
118
|
+
return (jsx("div", { className: getCssClass(), onClick: onClick, children: children }));
|
|
118
119
|
};
|
|
119
120
|
|
|
120
|
-
var css_248z$
|
|
121
|
-
var styles$
|
|
122
|
-
styleInject(css_248z$
|
|
121
|
+
var css_248z$13 = ".Icon-module_icon__lFKCA {\n align-items: center;\n justify-content: center;\n display: flex;\n width: 20px;\n height: 20px;\n}\n.Icon-module_icon__lFKCA svg {\n width: inherit;\n height: inherit;\n}\n.Icon-module_icon__lFKCA.Icon-module_primary__3fID- {\n color: var(--primary);\n}\n.Icon-module_icon__lFKCA.Icon-module_accent__aZXGb {\n color: var(--accent);\n}\n.Icon-module_icon__lFKCA.Icon-module_secondary__HKKop {\n color: var(--secondary);\n}\n.Icon-module_icon__lFKCA.Icon-module_light__-ApMm {\n color: var(--light);\n}\n.Icon-module_icon__lFKCA.Icon-module_dark__DpCIK {\n color: var(--dark);\n}";
|
|
122
|
+
var styles$13 = {"icon":"Icon-module_icon__lFKCA","primary":"Icon-module_primary__3fID-","accent":"Icon-module_accent__aZXGb","secondary":"Icon-module_secondary__HKKop","light":"Icon-module_light__-ApMm","dark":"Icon-module_dark__DpCIK"};
|
|
123
|
+
styleInject(css_248z$13);
|
|
123
124
|
|
|
124
125
|
const Icon = (props) => {
|
|
125
126
|
const { children, iconColor, className, ...rest } = props;
|
|
126
127
|
const getCssClasses = () => {
|
|
127
128
|
const cssClasses = [];
|
|
128
|
-
cssClasses.push(styles$
|
|
129
|
-
iconColor && cssClasses.push(styles$
|
|
129
|
+
cssClasses.push(styles$13.icon);
|
|
130
|
+
iconColor && cssClasses.push(styles$13[iconColor]);
|
|
130
131
|
className && cssClasses.push(className);
|
|
131
132
|
return cssClasses.filter(css => css).join(' ');
|
|
132
133
|
};
|
|
133
|
-
return (
|
|
134
|
+
return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
134
135
|
};
|
|
135
136
|
|
|
136
|
-
var css_248z$
|
|
137
|
-
var styles$
|
|
138
|
-
styleInject(css_248z$
|
|
137
|
+
var css_248z$12 = ".IconButton-module_iconButton__rpCPQ {\n border-radius: 100%;\n padding: 0px;\n display: flex;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n min-width: auto;\n box-shadow: none;\n font-weight: 400;\n text-align: center;\n vertical-align: middle;\n -webkit-user-select: none;\n user-select: none;\n background-color: transparent;\n font-size: 1rem;\n line-height: 1.5;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: none;\n}\n.IconButton-module_iconButton__rpCPQ:hover {\n cursor: pointer;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_shadow__Uw0RK {\n box-shadow: var(--shadow);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_md__XnuSk {\n width: 48px;\n height: 48px;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_lg__arEvo {\n width: 56px;\n height: 56px;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag {\n padding: 0;\n background: transparent;\n color: inherit;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_active__VIqU9 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G {\n color: var(--primary);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G.IconButton-module_active__VIqU9 {\n color: var(--primary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY {\n color: var(--secondary);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY.IconButton-module_active__VIqU9 {\n color: var(--secondary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2 {\n color: var(--accent);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2.IconButton-module_active__VIqU9 {\n color: var(--accent-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO {\n color: var(--light);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO.IconButton-module_active__VIqU9 {\n color: var(--light-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH {\n color: var(--dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH.IconButton-module_active__VIqU9 {\n color: var(--dark-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_disabled__QB0ZV {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_active__VIqU9 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G {\n background-color: var(--primary);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G.IconButton-module_active__VIqU9 {\n background-color: var(--primary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY {\n background-color: var(--secondary);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY.IconButton-module_active__VIqU9 {\n background-color: var(--secondary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2 {\n background-color: var(--accent);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2.IconButton-module_active__VIqU9 {\n background-color: var(--accent-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO {\n background-color: var(--light);\n color: var(--dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO.IconButton-module_active__VIqU9 {\n background-color: var(--light-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH {\n background-color: var(--dark);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH.IconButton-module_active__VIqU9 {\n background-color: var(--dark-light);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_disabled__QB0ZV {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none;\n}\n.IconButton-module_iconButton__rpCPQ:focus:not(.IconButton-module_iconButton__rpCPQ.IconButton-module_disabled__QB0ZV) {\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}";
|
|
138
|
+
var styles$12 = {"iconButton":"IconButton-module_iconButton__rpCPQ","shadow":"IconButton-module_shadow__Uw0RK","md":"IconButton-module_md__XnuSk","lg":"IconButton-module_lg__arEvo","text":"IconButton-module_text__Ualag","active":"IconButton-module_active__VIqU9","primary":"IconButton-module_primary__vbo-G","secondary":"IconButton-module_secondary__AiNAY","accent":"IconButton-module_accent__QRzM2","light":"IconButton-module_light__YNEiO","dark":"IconButton-module_dark__gnbUH","disabled":"IconButton-module_disabled__QB0ZV","contained":"IconButton-module_contained__k7vGA"};
|
|
139
|
+
styleInject(css_248z$12);
|
|
139
140
|
|
|
140
141
|
const IconButton = (props) => {
|
|
141
142
|
const { children, icon, variant = VARIANT.text, color = COLOR.dark, size = SIZE.md, isActive, disabled, className, shadow, ...rest } = props;
|
|
142
143
|
const getCssClasses = () => {
|
|
143
144
|
const cssClasses = [];
|
|
144
|
-
cssClasses.push(styles$
|
|
145
|
-
cssClasses.push(styles$
|
|
146
|
-
cssClasses.push(styles$
|
|
147
|
-
cssClasses.push(styles$
|
|
148
|
-
isActive && cssClasses.push(styles$
|
|
149
|
-
disabled && cssClasses.push(styles$
|
|
150
|
-
shadow && cssClasses.push(styles$
|
|
145
|
+
cssClasses.push(styles$12[color]);
|
|
146
|
+
cssClasses.push(styles$12[variant]);
|
|
147
|
+
cssClasses.push(styles$12[size]);
|
|
148
|
+
cssClasses.push(styles$12.iconButton);
|
|
149
|
+
isActive && cssClasses.push(styles$12.active);
|
|
150
|
+
disabled && cssClasses.push(styles$12.disabled);
|
|
151
|
+
shadow && cssClasses.push(styles$12.shadow);
|
|
151
152
|
className && cssClasses.push(className);
|
|
152
153
|
return cssClasses.filter(css => css).join(' ');
|
|
153
154
|
};
|
|
154
|
-
return (
|
|
155
|
-
icon && React.createElement(Icon, null, icon),
|
|
156
|
-
children));
|
|
155
|
+
return (jsxs("button", { type: "button", className: getCssClasses(), disabled: disabled, ...rest, children: [icon && jsx(Icon, { children: icon }), children] }));
|
|
157
156
|
};
|
|
158
157
|
|
|
159
|
-
const CaretDownSolidIcon = () => (
|
|
160
|
-
React.createElement("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" })));
|
|
161
|
-
|
|
162
|
-
const CheckSquareRegularIcon = () => (React.createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check-square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" },
|
|
163
|
-
React.createElement("path", { fill: "currentColor", d: "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z" })));
|
|
158
|
+
const CaretDownSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "caret-down", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsx("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
|
|
164
159
|
|
|
165
|
-
const
|
|
166
|
-
React.createElement("path", { fill: "currentColor", d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" })));
|
|
160
|
+
const CheckSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsx("path", { fill: "currentColor", d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" }) }));
|
|
167
161
|
|
|
168
|
-
const
|
|
169
|
-
React.createElement("path", { fill: "currentColor", d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" })));
|
|
162
|
+
const CheckSquareRegularIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check-square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsx("path", { fill: "currentColor", d: "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z" }) }));
|
|
170
163
|
|
|
171
|
-
const
|
|
172
|
-
React.createElement("path", { fill: "currentColor", d: "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z" })));
|
|
164
|
+
const ChevronDownSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-down", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsx("path", { fill: "currentColor", d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" }) }));
|
|
173
165
|
|
|
174
|
-
const
|
|
175
|
-
React.createElement("path", { fill: "currentColor", d: "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z" })));
|
|
166
|
+
const ChevronLeftSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsx("path", { fill: "currentColor", d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z" }) }));
|
|
176
167
|
|
|
177
|
-
const
|
|
178
|
-
React.createElement("path", { fill: "currentColor", d: "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z" })));
|
|
168
|
+
const ChevronRightSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-right", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsx("path", { fill: "currentColor", d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" }) }));
|
|
179
169
|
|
|
180
|
-
const
|
|
181
|
-
React.createElement("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z" })));
|
|
170
|
+
const ChevronUpSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-up", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsx("path", { fill: "currentColor", d: "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z" }) }));
|
|
182
171
|
|
|
183
|
-
const
|
|
184
|
-
React.createElement("path", { fill: "currentColor", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" })));
|
|
172
|
+
const CircleSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" }) }));
|
|
185
173
|
|
|
186
|
-
const
|
|
187
|
-
React.createElement("path", { fill: "currentColor", d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z" })));
|
|
174
|
+
const HomeSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "home", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", children: jsx("path", { fill: "currentColor", d: "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z" }) }));
|
|
188
175
|
|
|
189
|
-
const PlusSolidIcon = () => (
|
|
190
|
-
React.createElement("path", { fill: "currentColor", d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" })));
|
|
176
|
+
const PlusSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsx("path", { fill: "currentColor", d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }) }));
|
|
191
177
|
|
|
192
|
-
const
|
|
193
|
-
React.createElement("path", { fill: "currentColor", d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })));
|
|
178
|
+
const SpinnerSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "spinner", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsx("path", { fill: "currentColor", d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z" }) }));
|
|
194
179
|
|
|
195
|
-
const
|
|
196
|
-
React.createElement("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" })));
|
|
180
|
+
const SquareRegularIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsx("path", { fill: "currentColor", d: "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z" }) }));
|
|
197
181
|
|
|
198
|
-
const
|
|
199
|
-
React.createElement("path", { fill: "currentColor", d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z" })));
|
|
182
|
+
const TimesCircleSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z" }) }));
|
|
200
183
|
|
|
201
|
-
|
|
202
|
-
const timeoutId = useRef();
|
|
203
|
-
useEffect(() => {
|
|
204
|
-
clearTimeout(timeoutId.current);
|
|
205
|
-
timeoutId.current = setTimeout(callback, timeout);
|
|
206
|
-
return () => clearTimeout(timeoutId.current);
|
|
207
|
-
}, deps);
|
|
208
|
-
}
|
|
184
|
+
const TimesSolidIcon = () => (jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", children: jsx("path", { fill: "currentColor", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }) }));
|
|
209
185
|
|
|
210
186
|
const useConstructor = (callBack) => {
|
|
211
187
|
useEffect(() => {
|
|
@@ -217,6 +193,15 @@ function useCssClasses(cssClasses) {
|
|
|
217
193
|
return [cssClasses?.filter(css => css).join(' ') || ''];
|
|
218
194
|
}
|
|
219
195
|
|
|
196
|
+
function useDebounce(callback, timeout, deps) {
|
|
197
|
+
const timeoutId = useRef();
|
|
198
|
+
useEffect(() => {
|
|
199
|
+
clearTimeout(timeoutId.current);
|
|
200
|
+
timeoutId.current = setTimeout(callback, timeout);
|
|
201
|
+
return () => clearTimeout(timeoutId.current);
|
|
202
|
+
}, deps);
|
|
203
|
+
}
|
|
204
|
+
|
|
220
205
|
function useHover() {
|
|
221
206
|
const [value, setValue] = useState(false);
|
|
222
207
|
const ref = useRef(null);
|
|
@@ -292,9 +277,9 @@ const Portal$1 = ({ children, target = document.body, className }) => {
|
|
|
292
277
|
return createPortal(children, containerEl);
|
|
293
278
|
};
|
|
294
279
|
|
|
295
|
-
var css_248z$
|
|
296
|
-
var styles$
|
|
297
|
-
styleInject(css_248z$
|
|
280
|
+
var css_248z$11 = ".Backdrop-module_backdrop__IRMoL {\n height: 100%;\n width: 100%;\n position: absolute;\n opacity: 0.5;\n z-index: 1040;\n top: 0;\n left: 0;\n background-color: #000;\n}\n.Backdrop-module_backdrop__IRMoL.Backdrop-module_isTransparent__F5nA5 {\n opacity: 0;\n}";
|
|
281
|
+
var styles$11 = {"backdrop":"Backdrop-module_backdrop__IRMoL","isTransparent":"Backdrop-module_isTransparent__F5nA5"};
|
|
282
|
+
styleInject(css_248z$11);
|
|
298
283
|
|
|
299
284
|
const Backdrop = (props) => {
|
|
300
285
|
const { target = document.body, isTransparent = false, onClick, style, ...rest } = props;
|
|
@@ -304,93 +289,90 @@ const Backdrop = (props) => {
|
|
|
304
289
|
};
|
|
305
290
|
const getCssClasses = () => {
|
|
306
291
|
const cssClasses = [];
|
|
307
|
-
cssClasses.push(styles$
|
|
308
|
-
isTransparent && cssClasses.push(styles$
|
|
292
|
+
cssClasses.push(styles$11.backdrop);
|
|
293
|
+
isTransparent && cssClasses.push(styles$11['isTransparent']);
|
|
309
294
|
return cssClasses.filter(css => css).join(' ');
|
|
310
295
|
};
|
|
311
296
|
const getStyles = () => {
|
|
312
297
|
return Object.assign({ height: '100%', width: '100%', position: 'absolute' }, style);
|
|
313
298
|
};
|
|
314
|
-
return (
|
|
315
|
-
React.createElement("div", { className: getCssClasses(), onClick: handleClick, style: getStyles(), ...rest })));
|
|
299
|
+
return (jsx(Portal$1, { className: 'backdrop-root', target: target, children: jsx("div", { className: getCssClasses(), onClick: handleClick, style: getStyles(), ...rest }) }));
|
|
316
300
|
};
|
|
317
301
|
|
|
318
|
-
var css_248z
|
|
319
|
-
var styles
|
|
320
|
-
styleInject(css_248z
|
|
302
|
+
var css_248z$10 = ".List-module_list__gpZ41 {\n width: 100%;\n display: flex;\n flex-direction: column;\n padding-left: 0;\n margin-bottom: 0;\n margin-top: 0;\n background-color: var(--white);\n}";
|
|
303
|
+
var styles$10 = {"list":"List-module_list__gpZ41"};
|
|
304
|
+
styleInject(css_248z$10);
|
|
321
305
|
|
|
322
306
|
const List = (props) => {
|
|
323
307
|
const { children, className, isFlush, ...rest } = props;
|
|
324
308
|
const getCssClasses = () => {
|
|
325
309
|
const cssClasses = [];
|
|
326
|
-
isFlush && cssClasses.push(styles
|
|
327
|
-
cssClasses.push(styles
|
|
310
|
+
isFlush && cssClasses.push(styles$10.flush);
|
|
311
|
+
cssClasses.push(styles$10.list);
|
|
328
312
|
className && cssClasses.push(className);
|
|
329
313
|
return cssClasses.filter(css => css).join(' ');
|
|
330
314
|
};
|
|
331
|
-
return (
|
|
315
|
+
return (jsx("ul", { className: getCssClasses(), ...rest, children: children }));
|
|
332
316
|
};
|
|
333
317
|
|
|
334
|
-
var css_248z
|
|
335
|
-
var styles
|
|
336
|
-
styleInject(css_248z
|
|
318
|
+
var css_248z$$ = ".ListItem-module_listItem__Pk1AP {\n display: flex;\n align-items: center;\n position: relative;\n padding: 0.75rem 1.25rem;\n min-width: 100%;\n color: var(--bodyColor);\n text-align: inherit;\n transition: background 0.5s ease;\n}\n.ListItem-module_listItem__Pk1AP:hover, .ListItem-module_listItem__Pk1AP.ListItem-module_active__zm2q8 {\n cursor: pointer;\n z-index: 1;\n text-decoration: none;\n background-color: rgba(0, 0, 0, 0.04);\n color: var(--primary);\n}\n.ListItem-module_listItem__Pk1AP + .ListItem-module_listItem__Pk1AP {\n border-top-width: 0;\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_primary__F6Qja {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_accent__pg3Ha {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_secondary__d0drD {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_light__37kby {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_dark__ZxQTF {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_disabled__DQLKl {\n color: rgba(0, 0, 0, 0.26);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_disabled__DQLKl:hover {\n cursor: not-allowed;\n background-color: inherit;\n}";
|
|
319
|
+
var styles$$ = {"listItem":"ListItem-module_listItem__Pk1AP","active":"ListItem-module_active__zm2q8","primary":"ListItem-module_primary__F6Qja","accent":"ListItem-module_accent__pg3Ha","secondary":"ListItem-module_secondary__d0drD","light":"ListItem-module_light__37kby","dark":"ListItem-module_dark__ZxQTF","disabled":"ListItem-module_disabled__DQLKl"};
|
|
320
|
+
styleInject(css_248z$$);
|
|
337
321
|
|
|
338
322
|
const ListItem = (props) => {
|
|
339
323
|
const { children, color, active, className, disabled, onClick, ...rest } = props;
|
|
340
324
|
const getCssClasses = () => {
|
|
341
325
|
const cssClasses = [];
|
|
342
|
-
cssClasses.push(styles
|
|
343
|
-
color && cssClasses.push(styles
|
|
344
|
-
active && cssClasses.push(styles
|
|
345
|
-
disabled && cssClasses.push(styles
|
|
326
|
+
cssClasses.push(styles$$.listItem);
|
|
327
|
+
color && cssClasses.push(styles$$[color]);
|
|
328
|
+
active && cssClasses.push(styles$$['active']);
|
|
329
|
+
disabled && cssClasses.push(styles$$['disabled']);
|
|
346
330
|
className && cssClasses.push(className);
|
|
347
331
|
return cssClasses.filter(css => css).join(' ');
|
|
348
332
|
};
|
|
349
333
|
const handleClick = (e) => {
|
|
350
334
|
!disabled && onClick && onClick(e);
|
|
351
335
|
};
|
|
352
|
-
return (
|
|
336
|
+
return (jsx("li", { onClick: handleClick, className: getCssClasses(), ...rest, children: children }));
|
|
353
337
|
};
|
|
354
338
|
|
|
355
|
-
var css_248z$
|
|
356
|
-
var styles$
|
|
339
|
+
var css_248z$_ = ".ListItemAvatar-module_avatar__sVWfR {\n display: flex;\n align-items: center;\n margin-right: 16px;\n}\n.ListItemAvatar-module_avatar__sVWfR svg, .ListItemAvatar-module_avatar__sVWfR img {\n width: 24px;\n height: 24px;\n}\n.ListItemAvatar-module_avatar__sVWfR img {\n border-radius: 50%;\n}";
|
|
340
|
+
var styles$_ = {"avatar":"ListItemAvatar-module_avatar__sVWfR"};
|
|
341
|
+
styleInject(css_248z$_);
|
|
342
|
+
|
|
343
|
+
const ListItemAvatar = ({ avatar, ...rest }) => (jsx("div", { className: styles$_.avatar, ...rest, children: avatar }));
|
|
344
|
+
|
|
345
|
+
var css_248z$Z = ".ListItemIcon-module_icon__cCvEv {\n margin-right: 32px;\n}\n.ListItemIcon-module_icon__cCvEv svg {\n width: 24px;\n height: 24px;\n}";
|
|
346
|
+
var styles$Z = {"icon":"ListItemIcon-module_icon__cCvEv"};
|
|
357
347
|
styleInject(css_248z$Z);
|
|
358
348
|
|
|
359
|
-
const
|
|
349
|
+
const ListItemIcon = ({ icon, ...rest }) => (jsx("div", { className: styles$Z.icon, ...rest, children: icon }));
|
|
360
350
|
|
|
361
|
-
var css_248z$Y = ".
|
|
362
|
-
var styles$Y = {"
|
|
351
|
+
var css_248z$Y = ".ListItemAction-module_listItemAction__gAQRj {\n display: flex;\n justify-content: center;\n min-width: 40px;\n}\n.ListItemAction-module_listItemAction__gAQRj svg {\n width: 20px;\n height: 20px;\n}";
|
|
352
|
+
var styles$Y = {"listItemAction":"ListItemAction-module_listItemAction__gAQRj"};
|
|
363
353
|
styleInject(css_248z$Y);
|
|
364
354
|
|
|
365
|
-
const
|
|
355
|
+
const ListItemAction = ({ children, onClick, ...rest }) => (jsx("div", { className: styles$Y.listItemAction, onClick: (e) => onClick && onClick(e), ...rest, children: children }));
|
|
366
356
|
|
|
367
|
-
var css_248z$X = ".
|
|
368
|
-
var styles$X = {"
|
|
357
|
+
var css_248z$X = ".ListItemTextIcon-module_listItemText__xCBLW {\n flex: 1;\n}";
|
|
358
|
+
var styles$X = {"listItemText":"ListItemTextIcon-module_listItemText__xCBLW"};
|
|
369
359
|
styleInject(css_248z$X);
|
|
370
360
|
|
|
371
|
-
const ListItemAction = ({ children, onClick, ...rest }) => (React.createElement("div", { className: styles$X.listItemAction, onClick: (e) => onClick && onClick(e), ...rest }, children));
|
|
372
|
-
|
|
373
|
-
var css_248z$W = ".ListItemTextIcon-module_listItemText__xCBLW {\n flex: 1;\n}";
|
|
374
|
-
var styles$W = {"listItemText":"ListItemTextIcon-module_listItemText__xCBLW"};
|
|
375
|
-
styleInject(css_248z$W);
|
|
376
|
-
|
|
377
361
|
const ListItemText = ({ primary, secondary, ...rest }) => {
|
|
378
362
|
const getCssClasses = () => {
|
|
379
363
|
const cssClasses = [];
|
|
380
|
-
cssClasses.push(styles$
|
|
364
|
+
cssClasses.push(styles$X.listItemText);
|
|
381
365
|
return cssClasses.filter(css => css).join(' ');
|
|
382
366
|
};
|
|
383
|
-
return (
|
|
384
|
-
|
|
385
|
-
secondary &&
|
|
386
|
-
React.createElement(ListItemTextSecondary, null, secondary)));
|
|
367
|
+
return (jsxs("div", { className: getCssClasses(), ...rest, children: [jsx(ListItemTextPrimary, { children: primary }), secondary &&
|
|
368
|
+
jsx(ListItemTextSecondary, { children: secondary })] }));
|
|
387
369
|
};
|
|
388
|
-
const ListItemTextPrimary = ({ children }) => (
|
|
389
|
-
const ListItemTextSecondary = ({ children }) => (
|
|
370
|
+
const ListItemTextPrimary = ({ children }) => (jsx("div", { className: "list-item-text-primary", children: children }));
|
|
371
|
+
const ListItemTextSecondary = ({ children }) => (jsx("div", { className: "list-item-text-secondary text-muted", style: { fontSize: '0.875rem' }, children: children }));
|
|
390
372
|
|
|
391
|
-
var css_248z$
|
|
392
|
-
var styles$
|
|
393
|
-
styleInject(css_248z$
|
|
373
|
+
var css_248z$W = ".AutoComplete-module_selectContainer__1kA85 {\n position: relative;\n}\n\n.AutoComplete-module_select__NNYOi {\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n min-height: calc(1.5em + 0.75rem + 2px);\n height: auto;\n display: flex;\n}\n.AutoComplete-module_select__NNYOi:hover {\n cursor: pointer;\n}\n.AutoComplete-module_select__NNYOi:focus:not(.AutoComplete-module_select__NNYOi.AutoComplete-module_disabled__CbGP4) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}\n.AutoComplete-module_select__NNYOi:disabled, .AutoComplete-module_select__NNYOi:read-only {\n background-color: #e9ecef;\n}\n.AutoComplete-module_select__NNYOi:disabled:hover {\n cursor: not-allowed;\n}\n.AutoComplete-module_select__NNYOi:read-only:hover {\n cursor: inherit;\n}\n\n.AutoComplete-module_selectMenu__Gu81L {\n background-color: var(--light);\n position: absolute;\n box-shadow: var(--shadow);\n border-radius: var(--borderRadius);\n width: 100%;\n top: 38px;\n z-index: 1050;\n max-height: 280px;\n overflow: auto;\n}";
|
|
374
|
+
var styles$W = {"selectContainer":"AutoComplete-module_selectContainer__1kA85","select":"AutoComplete-module_select__NNYOi","disabled":"AutoComplete-module_disabled__CbGP4","selectMenu":"AutoComplete-module_selectMenu__Gu81L"};
|
|
375
|
+
styleInject(css_248z$W);
|
|
394
376
|
|
|
395
377
|
// preset value
|
|
396
378
|
// enter -> delay? -> show results
|
|
@@ -438,7 +420,7 @@ const AutoComplete = (props) => {
|
|
|
438
420
|
const getCssClass = () => {
|
|
439
421
|
const cssClasses = [];
|
|
440
422
|
className && cssClasses.push(className);
|
|
441
|
-
cssClasses.push(styles$
|
|
423
|
+
cssClasses.push(styles$W.select);
|
|
442
424
|
return cssClasses.filter(r => r).join(' ');
|
|
443
425
|
};
|
|
444
426
|
const show = () => setIsShow(true);
|
|
@@ -462,70 +444,96 @@ const AutoComplete = (props) => {
|
|
|
462
444
|
setModel('');
|
|
463
445
|
setSearchText('');
|
|
464
446
|
};
|
|
465
|
-
return (
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
React.createElement(List, null, _options && _options.map((option, index) => React.createElement(ListItem, { id: `list-item-${index}`, key: option.value, onClick: () => handleOnClick(option), disabled: !option.value },
|
|
474
|
-
React.createElement(ListItemText, { primary: option.label ? option.label : option.value }))))),
|
|
475
|
-
React.createElement(Backdrop, { isTransparent: true, onClick: () => hide() }))));
|
|
476
|
-
};
|
|
477
|
-
|
|
478
|
-
var css_248z$U = ".Badge-module_badgeContainer__3nZBs {\n display: inline-flex;\n position: relative;\n flex-shrink: 0;\n vertical-align: middle;\n}\n\n.Badge-module_badge__9ImR0 {\n top: 0;\n right: 0;\n transform: scale(1) translate(50%, -50%);\n transform-origin: 100% 0%;\n height: 20px;\n display: flex;\n padding: 0 6px;\n z-index: 1;\n position: absolute;\n flex-wrap: wrap;\n font-size: 0.75rem;\n min-width: 20px;\n align-items: center;\n font-weight: 500;\n line-height: 1;\n align-content: center;\n flex-direction: row;\n justify-content: center;\n border-radius: 10px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Badge-module_badge__9ImR0.Badge-module_primary__41U-t {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Badge-module_badge__9ImR0.Badge-module_accent__OQy2- {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Badge-module_badge__9ImR0.Badge-module_secondary__a9Jfh {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Badge-module_badge__9ImR0.Badge-module_light__4QvQ5 {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Badge-module_badge__9ImR0.Badge-module_dark__g1yUJ {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}";
|
|
479
|
-
var styles$U = {"badgeContainer":"Badge-module_badgeContainer__3nZBs","badge":"Badge-module_badge__9ImR0","primary":"Badge-module_primary__41U-t","accent":"Badge-module_accent__OQy2-","secondary":"Badge-module_secondary__a9Jfh","light":"Badge-module_light__4QvQ5","dark":"Badge-module_dark__g1yUJ"};
|
|
480
|
-
styleInject(css_248z$U);
|
|
447
|
+
return (jsxs("div", { ref: selectConainter, className: styles$W.selectContainer, children: [jsxs("div", { className: "d-flex", children: [jsx("input", { type: "text", className: getCssClass(), id: id, name: name, tabIndex: 0, readOnly: readOnly, disabled: disabled, onChange: handleOnChange, onFocus: handleOnFocus, placeholder: placeholder, value: model }), showClearButton && model?.length > 0 &&
|
|
448
|
+
jsx(IconButton, { icon: jsx(TimesSolidIcon, {}), onClick: handleClickReset })] }), isShow &&
|
|
449
|
+
jsxs(Fragment$1, { children: [jsx("div", { className: styles$W.selectMenu, children: jsx(List, { children: _options && _options.map((option, index) => jsx(ListItem, { id: `list-item-${index}`, onClick: () => handleOnClick(option), disabled: !option.value, children: jsx(ListItemText, { primary: option.label ? option.label : option.value }) }, option.value)) }) }), jsx(Backdrop, { isTransparent: true, onClick: () => hide() })] })] }));
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
var css_248z$V = ".Badge-module_badgeContainer__3nZBs {\n display: inline-flex;\n position: relative;\n flex-shrink: 0;\n vertical-align: middle;\n}\n\n.Badge-module_badge__9ImR0 {\n top: 0;\n right: 0;\n transform: scale(1) translate(50%, -50%);\n transform-origin: 100% 0%;\n height: 20px;\n display: flex;\n padding: 0 6px;\n z-index: 1;\n position: absolute;\n flex-wrap: wrap;\n font-size: 0.75rem;\n min-width: 20px;\n align-items: center;\n font-weight: 500;\n line-height: 1;\n align-content: center;\n flex-direction: row;\n justify-content: center;\n border-radius: 10px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Badge-module_badge__9ImR0.Badge-module_primary__41U-t {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Badge-module_badge__9ImR0.Badge-module_accent__OQy2- {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Badge-module_badge__9ImR0.Badge-module_secondary__a9Jfh {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Badge-module_badge__9ImR0.Badge-module_light__4QvQ5 {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Badge-module_badge__9ImR0.Badge-module_dark__g1yUJ {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}";
|
|
453
|
+
var styles$V = {"badgeContainer":"Badge-module_badgeContainer__3nZBs","badge":"Badge-module_badge__9ImR0","primary":"Badge-module_primary__41U-t","accent":"Badge-module_accent__OQy2-","secondary":"Badge-module_secondary__a9Jfh","light":"Badge-module_light__4QvQ5","dark":"Badge-module_dark__g1yUJ"};
|
|
454
|
+
styleInject(css_248z$V);
|
|
481
455
|
|
|
482
456
|
const Badge = (props) => {
|
|
483
457
|
const { children, content, className, color = COLOR.primary, ...rest } = props;
|
|
484
458
|
const [cssClassName] = useCssClasses([
|
|
485
|
-
styles$
|
|
486
|
-
styles$
|
|
459
|
+
styles$V.badge,
|
|
460
|
+
styles$V[color],
|
|
487
461
|
className
|
|
488
462
|
]);
|
|
489
|
-
return (
|
|
490
|
-
children,
|
|
491
|
-
React.createElement("span", { className: cssClassName, ...rest }, content)));
|
|
463
|
+
return (jsxs(BadgeContainer, { children: [children, jsx("span", { className: cssClassName, ...rest, children: content })] }));
|
|
492
464
|
};
|
|
493
465
|
const BadgeContainer = (props) => {
|
|
494
466
|
const { children, className, ...rest } = props;
|
|
495
467
|
const [cssClassName] = useCssClasses([
|
|
496
|
-
styles$
|
|
468
|
+
styles$V.badgeContainer,
|
|
497
469
|
className,
|
|
498
470
|
]);
|
|
499
|
-
return (
|
|
471
|
+
return (jsx("div", { className: cssClassName, ...rest, children: children }));
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
var css_248z$U = ".Breadcrumb-module_breadcrumb__-pvAn {\n display: flex;\n flex-wrap: wrap;\n padding: 0;\n list-style: none;\n margin: 0;\n}";
|
|
475
|
+
var styles$U = {"breadcrumb":"Breadcrumb-module_breadcrumb__-pvAn"};
|
|
476
|
+
styleInject(css_248z$U);
|
|
477
|
+
|
|
478
|
+
const Breadcrumb = (props) => {
|
|
479
|
+
const { children, className, ...rest } = props;
|
|
480
|
+
const getCssClasses = () => {
|
|
481
|
+
const cssClasses = [];
|
|
482
|
+
cssClasses.push(styles$U.breadcrumb);
|
|
483
|
+
className && cssClasses.push(className);
|
|
484
|
+
return cssClasses.filter(css => css).join(' ');
|
|
485
|
+
};
|
|
486
|
+
return (jsx("nav", { ...rest, children: jsx("ol", { className: getCssClasses(), children: children }) }));
|
|
500
487
|
};
|
|
501
488
|
|
|
502
|
-
|
|
503
|
-
|
|
489
|
+
const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
|
|
490
|
+
|
|
491
|
+
var css_248z$T = ".BreadcrumbItem-module_breadcrumbItem__zsUq- {\n display: flex;\n align-items: center;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq- {\n padding-left: 0.5rem;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq-::before {\n float: left;\n padding-right: 0.5rem;\n color: #6c757d;\n content: \"/\";\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- a:not([href]):not([class]) {\n color: var(--primary);\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-:hover {\n cursor: pointer;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-.BreadcrumbItem-module_active__Kn1dA:hover {\n cursor: unset;\n}";
|
|
492
|
+
var styles$T = {"breadcrumbItem":"BreadcrumbItem-module_breadcrumbItem__zsUq-","active":"BreadcrumbItem-module_active__Kn1dA"};
|
|
504
493
|
styleInject(css_248z$T);
|
|
505
494
|
|
|
495
|
+
const BreadcrumbItem = (props) => {
|
|
496
|
+
const { children, className, isActive, onClick } = props;
|
|
497
|
+
const getCssClasses = () => {
|
|
498
|
+
const cssClasses = [];
|
|
499
|
+
cssClasses.push(styles$T.breadcrumbItem);
|
|
500
|
+
className && cssClasses.push(className);
|
|
501
|
+
isActive && cssClasses.push('active');
|
|
502
|
+
return cssClasses.filter(css => css).join(' ');
|
|
503
|
+
};
|
|
504
|
+
const handleClick = (event) => {
|
|
505
|
+
onClick && onClick(event);
|
|
506
|
+
};
|
|
507
|
+
return (jsx("li", { className: getCssClasses(), onClick: handleClick, children: jsx(ConditionalWrapper, { condition: !isActive, wrapper: (label) => jsx("a", { children: label }), children: children }) }));
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
var css_248z$S = ".Button-module_button__qeIer {\n text-transform: uppercase;\n flex-shrink: 0;\n background-color: transparent;\n display: inline-block;\n font-weight: 400;\n line-height: 1.5;\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: 0.375rem 0.75rem;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n min-width: 64px;\n font-size: 0.875rem;\n border-radius: var(--borderRadius);\n}\n.Button-module_button__qeIer.Button-module_shadow__6N2nE {\n box-shadow: var(--shadow);\n}\n.Button-module_button__qeIer.Button-module_block__JIazf {\n width: 100%;\n}\n.Button-module_button__qeIer:hover:not(:disabled) {\n cursor: pointer;\n}\n.Button-module_button__qeIer:focus:not(:disabled) {\n border-color: var(--primary-highlight);\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem var(--primary-highlight);\n}\n\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu:hover:not(:disabled) {\n background-color: var(--primary-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ:hover:not(:disabled) {\n background-color: var(--accent-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk:hover:not(:disabled) {\n background-color: var(--secondary-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy:hover:not(:disabled) {\n background-color: var(--light-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT:hover:not(:disabled) {\n background-color: var(--dark-dark);\n}\n.Button-module_btnContained__16y5l:disabled {\n color: rgba(0, 0, 0, 0.26);\n box-shadow: none;\n background-color: rgba(0, 0, 0, 0.12);\n}\n.Button-module_btnContained__16y5l:disabled:hover {\n cursor: not-allowed;\n}\n\n.Button-module_btnText__N5Gys {\n box-shadow: none;\n text-decoration: none;\n}\n.Button-module_btnText__N5Gys.Button-module_primary__EUyOu {\n color: var(--primary);\n}\n.Button-module_btnText__N5Gys.Button-module_primary__EUyOu:hover:not(:disabled) {\n text-decoration: none;\n background: var(--primary-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_secondary__zKoGk {\n color: var(--secondary);\n}\n.Button-module_btnText__N5Gys.Button-module_secondary__zKoGk:hover:not(:disabled) {\n text-decoration: none;\n background: var(--secondary-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_accent__opVgQ {\n color: var(--accent);\n}\n.Button-module_btnText__N5Gys.Button-module_accent__opVgQ:hover:not(:disabled) {\n text-decoration: none;\n background: var(--accent-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n}\n.Button-module_btnText__N5Gys.Button-module_light__LXeZy:hover:not(:disabled) {\n text-decoration: none;\n background: var(--light-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_dark__5oFOT {\n color: var(--dark);\n}\n.Button-module_btnText__N5Gys.Button-module_dark__5oFOT:hover:not(:disabled) {\n text-decoration: none;\n background: var(--dark-highlight);\n}\n\n.Button-module_btnOutline__CCFPI {\n box-shadow: none;\n text-decoration: none;\n}\n.Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu {\n color: var(--primary);\n border-color: var(--primary);\n}\n.Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu:hover:not(:disabled) {\n background: var(--primary-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk {\n color: var(--secondary);\n border-color: var(--secondary);\n}\n.Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk:hover:not(:disabled) {\n background: var(--secondary-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ {\n color: var(--accent);\n border-color: var(--accent);\n}\n.Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ:hover:not(:disabled) {\n background: var(--accent-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n border-color: var(--light);\n}\n.Button-module_btnOutline__CCFPI.Button-module_light__LXeZy:hover:not(:disabled) {\n background: var(--light-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT {\n color: var(--dark);\n border-color: var(--dark);\n}\n.Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT:hover:not(:disabled) {\n background: var(--dark-highlight);\n}\n.Button-module_btnOutline__CCFPI:disabled {\n color: rgba(0, 0, 0, 0.26);\n border: 1px solid rgba(0, 0, 0, 0.12);\n}\n\n.Button-module_startIcon__Eylwr {\n display: inherit;\n margin-left: -4px;\n margin-right: 8px;\n}\n.Button-module_startIcon__Eylwr svg {\n width: 18px;\n height: 18px;\n}\n\n.Button-module_endIcon__pCffL {\n display: inherit;\n margin-left: 8px;\n}\n.Button-module_endIcon__pCffL svg {\n width: 18px;\n height: 18px;\n}";
|
|
511
|
+
var styles$S = {"button":"Button-module_button__qeIer","shadow":"Button-module_shadow__6N2nE","block":"Button-module_block__JIazf","btnContained":"Button-module_btnContained__16y5l","primary":"Button-module_primary__EUyOu","accent":"Button-module_accent__opVgQ","secondary":"Button-module_secondary__zKoGk","light":"Button-module_light__LXeZy","dark":"Button-module_dark__5oFOT","btnText":"Button-module_btnText__N5Gys","btnOutline":"Button-module_btnOutline__CCFPI","startIcon":"Button-module_startIcon__Eylwr","endIcon":"Button-module_endIcon__pCffL"};
|
|
512
|
+
styleInject(css_248z$S);
|
|
513
|
+
|
|
506
514
|
const ButtonContext = createContext({
|
|
507
515
|
color: null
|
|
508
516
|
});
|
|
509
517
|
const useButtonContext = () => useContext(ButtonContext);
|
|
510
518
|
|
|
511
|
-
const Button =
|
|
519
|
+
const Button = props => {
|
|
512
520
|
const { children, variant = VARIANT.contained, color = COLOR.primary, isRounded, isActive, className, startIcon, endIcon, shadow = true, block, ...rest } = props;
|
|
513
521
|
const buttonContext = useButtonContext();
|
|
514
522
|
const getCssClasses = () => {
|
|
515
523
|
const cssClasses = [];
|
|
516
|
-
cssClasses.push(styles$
|
|
524
|
+
cssClasses.push(styles$S.button);
|
|
517
525
|
const buttonColor = buttonContext.color || color;
|
|
518
526
|
if (variant !== 'outline' && variant !== 'text') {
|
|
519
|
-
cssClasses.push(styles$
|
|
520
|
-
cssClasses.push(styles$
|
|
527
|
+
cssClasses.push(styles$S.btnContained);
|
|
528
|
+
cssClasses.push(styles$S[buttonColor]);
|
|
521
529
|
}
|
|
522
530
|
if (variant === 'outline') {
|
|
523
|
-
cssClasses.push(styles$
|
|
524
|
-
cssClasses.push(styles$
|
|
531
|
+
cssClasses.push(styles$S.btnOutline);
|
|
532
|
+
cssClasses.push(styles$S[buttonColor]);
|
|
525
533
|
}
|
|
526
534
|
if (variant === 'text') {
|
|
527
|
-
cssClasses.push(styles$
|
|
528
|
-
cssClasses.push(styles$
|
|
535
|
+
cssClasses.push(styles$S.btnText);
|
|
536
|
+
cssClasses.push(styles$S[buttonColor]);
|
|
529
537
|
}
|
|
530
538
|
if (isRounded && variant !== 'text') {
|
|
531
539
|
cssClasses.push(`rounded-pill`);
|
|
@@ -533,183 +541,138 @@ const Button = (props) => {
|
|
|
533
541
|
if (isActive) {
|
|
534
542
|
cssClasses.push('active');
|
|
535
543
|
}
|
|
536
|
-
shadow && cssClasses.push(styles$
|
|
537
|
-
block && cssClasses.push(styles$
|
|
544
|
+
shadow && cssClasses.push(styles$S.shadow);
|
|
545
|
+
block && cssClasses.push(styles$S.block);
|
|
538
546
|
className && cssClasses.push(className);
|
|
539
547
|
return cssClasses.filter(css => css).join(' ');
|
|
540
548
|
};
|
|
541
|
-
return (
|
|
542
|
-
React.createElement("span", { className: "d-flex justify-content-center" },
|
|
543
|
-
startIcon &&
|
|
544
|
-
React.createElement(Icon, { className: styles$T.startIcon }, startIcon),
|
|
545
|
-
children,
|
|
546
|
-
endIcon &&
|
|
547
|
-
React.createElement(Icon, { className: styles$T.endIcon }, endIcon))));
|
|
549
|
+
return (jsx("button", { type: "button", className: getCssClasses(), ...rest, children: jsxs("span", { className: "d-flex justify-content-center", children: [startIcon && jsx(Icon, { className: styles$S.startIcon, children: startIcon }), children, endIcon && jsx(Icon, { className: styles$S.endIcon, children: endIcon })] }) }));
|
|
548
550
|
};
|
|
549
551
|
|
|
550
|
-
var css_248z$
|
|
551
|
-
var styles$
|
|
552
|
-
styleInject(css_248z$
|
|
552
|
+
var css_248z$R = ".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}";
|
|
553
|
+
var styles$R = {"buttonGroup":"ButtonGroup-module_buttonGroup__w6iB-"};
|
|
554
|
+
styleInject(css_248z$R);
|
|
553
555
|
|
|
554
556
|
const ButtonGroup = (props) => {
|
|
555
557
|
const { children, className, color, ...rest } = props;
|
|
556
558
|
const getCssClasses = () => {
|
|
557
559
|
const cssClasses = [];
|
|
558
|
-
cssClasses.push(styles$
|
|
559
|
-
className && cssClasses.push(className);
|
|
560
|
-
return cssClasses.filter(css => css).join(' ');
|
|
561
|
-
};
|
|
562
|
-
return (React.createElement(ButtonContext.Provider, { value: { color: color || COLOR.primary } },
|
|
563
|
-
React.createElement("div", { className: getCssClasses(), role: "group", ...rest }, children)));
|
|
564
|
-
};
|
|
565
|
-
|
|
566
|
-
var css_248z$R = ".Breadcrumb-module_breadcrumb__-pvAn {\n display: flex;\n flex-wrap: wrap;\n padding: 0;\n list-style: none;\n margin: 0;\n}";
|
|
567
|
-
var styles$R = {"breadcrumb":"Breadcrumb-module_breadcrumb__-pvAn"};
|
|
568
|
-
styleInject(css_248z$R);
|
|
569
|
-
|
|
570
|
-
const Breadcrumb = (props) => {
|
|
571
|
-
const { children, className, ...rest } = props;
|
|
572
|
-
const getCssClasses = () => {
|
|
573
|
-
const cssClasses = [];
|
|
574
|
-
cssClasses.push(styles$R.breadcrumb);
|
|
560
|
+
cssClasses.push(styles$R.buttonGroup);
|
|
575
561
|
className && cssClasses.push(className);
|
|
576
562
|
return cssClasses.filter(css => css).join(' ');
|
|
577
563
|
};
|
|
578
|
-
return (
|
|
579
|
-
React.createElement("ol", { className: getCssClasses() }, children)));
|
|
564
|
+
return (jsx(ButtonContext.Provider, { value: { color: color || COLOR.primary }, children: jsx("div", { className: getCssClasses(), role: "group", ...rest, children: children }) }));
|
|
580
565
|
};
|
|
581
566
|
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
var css_248z$Q = ".BreadcrumbItem-module_breadcrumbItem__zsUq- {\n display: flex;\n align-items: center;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq- {\n padding-left: 0.5rem;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq-::before {\n float: left;\n padding-right: 0.5rem;\n color: #6c757d;\n content: \"/\";\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- a:not([href]):not([class]) {\n color: var(--primary);\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-:hover {\n cursor: pointer;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-.BreadcrumbItem-module_active__Kn1dA:hover {\n cursor: unset;\n}";
|
|
585
|
-
var styles$Q = {"breadcrumbItem":"BreadcrumbItem-module_breadcrumbItem__zsUq-","active":"BreadcrumbItem-module_active__Kn1dA"};
|
|
567
|
+
var css_248z$Q = ".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}";
|
|
568
|
+
var styles$Q = {"card":"Card-module_card__TQdQq","shadow":"Card-module_shadow__NxDVz"};
|
|
586
569
|
styleInject(css_248z$Q);
|
|
587
570
|
|
|
588
|
-
const BreadcrumbItem = (props) => {
|
|
589
|
-
const { children, className, isActive, onClick } = props;
|
|
590
|
-
const getCssClasses = () => {
|
|
591
|
-
const cssClasses = [];
|
|
592
|
-
cssClasses.push(styles$Q.breadcrumbItem);
|
|
593
|
-
className && cssClasses.push(className);
|
|
594
|
-
isActive && cssClasses.push('active');
|
|
595
|
-
return cssClasses.filter(css => css).join(' ');
|
|
596
|
-
};
|
|
597
|
-
const handleClick = (event) => {
|
|
598
|
-
onClick && onClick(event);
|
|
599
|
-
};
|
|
600
|
-
return (React.createElement("li", { className: getCssClasses(), onClick: handleClick },
|
|
601
|
-
React.createElement(ConditionalWrapper, { condition: !isActive, wrapper: (label) => React.createElement("a", null, label) }, children)));
|
|
602
|
-
};
|
|
603
|
-
|
|
604
|
-
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}";
|
|
605
|
-
var styles$P = {"card":"Card-module_card__TQdQq","shadow":"Card-module_shadow__NxDVz"};
|
|
606
|
-
styleInject(css_248z$P);
|
|
607
|
-
|
|
608
571
|
const Card = (props) => {
|
|
609
572
|
const { children, className, shadow = true, ...rest } = props;
|
|
610
573
|
const getCssClasses = () => {
|
|
611
574
|
const cssClasses = [];
|
|
612
|
-
cssClasses.push(styles$
|
|
613
|
-
shadow && cssClasses.push(styles$
|
|
575
|
+
cssClasses.push(styles$Q.card);
|
|
576
|
+
shadow && cssClasses.push(styles$Q.shadow);
|
|
614
577
|
className && cssClasses.push(className);
|
|
615
578
|
return cssClasses.filter(css => css).join(' ');
|
|
616
579
|
};
|
|
617
|
-
return (
|
|
580
|
+
return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
618
581
|
};
|
|
619
582
|
|
|
620
|
-
var css_248z$
|
|
621
|
-
var styles$
|
|
622
|
-
styleInject(css_248z$
|
|
583
|
+
var css_248z$P = ".CardBody-module_cardBody__X52VY {\n flex: 1 1 auto;\n min-height: 1px;\n padding: 1.25rem;\n}";
|
|
584
|
+
var styles$P = {"cardBody":"CardBody-module_cardBody__X52VY"};
|
|
585
|
+
styleInject(css_248z$P);
|
|
623
586
|
|
|
624
587
|
const CardBody = (props) => {
|
|
625
588
|
const { children, className, ...rest } = props;
|
|
626
589
|
const getCssClasses = () => {
|
|
627
590
|
const cssClasses = [];
|
|
628
|
-
cssClasses.push(styles$
|
|
591
|
+
cssClasses.push(styles$P.cardBody);
|
|
629
592
|
className && cssClasses.push(className);
|
|
630
593
|
return cssClasses.filter(css => css).join(' ');
|
|
631
594
|
};
|
|
632
|
-
return (
|
|
595
|
+
return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
633
596
|
};
|
|
634
597
|
|
|
635
|
-
var css_248z$
|
|
636
|
-
var styles$
|
|
637
|
-
styleInject(css_248z$
|
|
598
|
+
var css_248z$O = ".CardFooter-module_cardFooter__BpOTG {\n padding: 0.75rem 1.25rem;\n background-color: rgba(0, 0, 0, 0.03);\n border-top: 1px solid rgba(0, 0, 0, 0.125);\n}\n.CardFooter-module_cardFooter__BpOTG:last-child {\n border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);\n}";
|
|
599
|
+
var styles$O = {"cardFooter":"CardFooter-module_cardFooter__BpOTG"};
|
|
600
|
+
styleInject(css_248z$O);
|
|
638
601
|
|
|
639
602
|
const CardFooter = (props) => {
|
|
640
603
|
const { children, className, ...rest } = props;
|
|
641
604
|
const getCssClasses = () => {
|
|
642
605
|
const cssClasses = [];
|
|
643
|
-
cssClasses.push(styles$
|
|
606
|
+
cssClasses.push(styles$O.cardFooter);
|
|
644
607
|
className && cssClasses.push(className);
|
|
645
608
|
return cssClasses.filter(css => css).join(' ');
|
|
646
609
|
};
|
|
647
|
-
return (
|
|
610
|
+
return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
648
611
|
};
|
|
649
612
|
|
|
650
|
-
var css_248z$
|
|
651
|
-
var styles$
|
|
652
|
-
styleInject(css_248z$
|
|
613
|
+
var css_248z$N = ".CardSubtitle-module_cardSubtitle__YdoRM {\n color: #6c757d !important;\n}";
|
|
614
|
+
var styles$N = {"cardSubtitle":"CardSubtitle-module_cardSubtitle__YdoRM"};
|
|
615
|
+
styleInject(css_248z$N);
|
|
653
616
|
|
|
654
617
|
const CardSubtitle = (props) => {
|
|
655
618
|
const { children, className, ...rest } = props;
|
|
656
619
|
const getCssClasses = () => {
|
|
657
620
|
const cssClasses = [];
|
|
658
|
-
cssClasses.push(styles$
|
|
621
|
+
cssClasses.push(styles$N.cardSubtitle);
|
|
659
622
|
className && cssClasses.push(className);
|
|
660
623
|
return cssClasses.filter(css => css).join(' ');
|
|
661
624
|
};
|
|
662
|
-
return (
|
|
625
|
+
return (jsx("p", { className: getCssClasses(), ...rest, children: children }));
|
|
663
626
|
};
|
|
664
627
|
|
|
665
|
-
var css_248z$
|
|
666
|
-
var styles$
|
|
667
|
-
styleInject(css_248z$
|
|
628
|
+
var css_248z$M = ".CardText-module_cardText__UtYd9:last-child {\n margin-bottom: 0;\n}";
|
|
629
|
+
var styles$M = {"cardText":"CardText-module_cardText__UtYd9"};
|
|
630
|
+
styleInject(css_248z$M);
|
|
668
631
|
|
|
669
632
|
const CardText = (props) => {
|
|
670
633
|
const { children, className, ...rest } = props;
|
|
671
634
|
const getCssClasses = () => {
|
|
672
635
|
const cssClasses = [];
|
|
673
|
-
cssClasses.push(styles$
|
|
636
|
+
cssClasses.push(styles$M.cardText);
|
|
674
637
|
className && cssClasses.push(className);
|
|
675
638
|
return cssClasses.filter(css => css).join(' ');
|
|
676
639
|
};
|
|
677
|
-
return (
|
|
640
|
+
return (jsx("p", { className: getCssClasses(), ...rest, children: children }));
|
|
678
641
|
};
|
|
679
642
|
|
|
680
|
-
var css_248z$
|
|
681
|
-
var styles$
|
|
682
|
-
styleInject(css_248z$
|
|
643
|
+
var css_248z$L = ".CardTitle-module_cardTitle__aiPSE {\n margin-bottom: 0;\n font-size: 1.5rem;\n font-weight: 400;\n line-height: 1.334;\n letter-spacing: 0em;\n}";
|
|
644
|
+
var styles$L = {"cardTitle":"CardTitle-module_cardTitle__aiPSE"};
|
|
645
|
+
styleInject(css_248z$L);
|
|
683
646
|
|
|
684
647
|
const CardTitle = (props) => {
|
|
685
648
|
const { children, className, as: As = 'div', ...rest } = props;
|
|
686
649
|
const getCssClasses = () => {
|
|
687
650
|
const cssClasses = [];
|
|
688
|
-
cssClasses.push(styles$
|
|
651
|
+
cssClasses.push(styles$L.cardTitle);
|
|
689
652
|
className && cssClasses.push(className);
|
|
690
653
|
return cssClasses.filter(css => css).join(' ');
|
|
691
654
|
};
|
|
692
|
-
return (
|
|
655
|
+
return (jsx(As, { className: getCssClasses(), ...rest, children: children }));
|
|
693
656
|
};
|
|
694
657
|
|
|
695
|
-
var css_248z$
|
|
696
|
-
var styles$
|
|
697
|
-
styleInject(css_248z$
|
|
658
|
+
var css_248z$K = ".CardImage-module_cardImage__Z6JWW {\n flex-shrink: 0;\n width: 100%;\n border-top-left-radius: calc(0.25rem - 1px);\n border-top-right-radius: calc(0.25rem - 1px);\n}";
|
|
659
|
+
var styles$K = {"cardImage":"CardImage-module_cardImage__Z6JWW"};
|
|
660
|
+
styleInject(css_248z$K);
|
|
698
661
|
|
|
699
662
|
const CardImage = (props) => {
|
|
700
663
|
const { src, alt, className, ...rest } = props;
|
|
701
664
|
const getCssClasses = () => {
|
|
702
665
|
const cssClasses = [];
|
|
703
|
-
cssClasses.push(styles$
|
|
666
|
+
cssClasses.push(styles$K.cardImage);
|
|
704
667
|
className && cssClasses.push(className);
|
|
705
668
|
return cssClasses.filter(css => css).join(' ');
|
|
706
669
|
};
|
|
707
|
-
return (
|
|
670
|
+
return (jsx("img", { className: getCssClasses(), src: src, alt: alt, ...rest }));
|
|
708
671
|
};
|
|
709
672
|
|
|
710
|
-
var css_248z$
|
|
711
|
-
var styles$
|
|
712
|
-
styleInject(css_248z$
|
|
673
|
+
var css_248z$J = ".Checkbox-module_checkboxContainer__x2GCi {\n display: flex;\n align-items: center;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n\n.Checkbox-module_checkboxLabel__nPY4k:hover {\n cursor: pointer;\n}\n.Checkbox-module_checkboxLabel__nPY4k.Checkbox-module_disabled__wnFIG {\n color: rgba(0, 0, 0, 0.26);\n cursor: not-allowed;\n}\n.Checkbox-module_checkboxLabel__nPY4k.Checkbox-module_disabled__wnFIG:hover {\n cursor: not-allowed;\n}";
|
|
674
|
+
var styles$J = {"checkboxContainer":"Checkbox-module_checkboxContainer__x2GCi","checkboxLabel":"Checkbox-module_checkboxLabel__nPY4k","disabled":"Checkbox-module_disabled__wnFIG"};
|
|
675
|
+
styleInject(css_248z$J);
|
|
713
676
|
|
|
714
677
|
const Checkbox = (props) => {
|
|
715
678
|
const { id, checked, className, label, name, value = 'off', disabled, readOnly, ...rest } = props;
|
|
@@ -727,8 +690,8 @@ const Checkbox = (props) => {
|
|
|
727
690
|
}
|
|
728
691
|
}, [checked]);
|
|
729
692
|
const icons = {
|
|
730
|
-
default:
|
|
731
|
-
selected:
|
|
693
|
+
default: jsx(SquareRegularIcon, {}),
|
|
694
|
+
selected: jsx(CheckSquareRegularIcon, {})
|
|
732
695
|
};
|
|
733
696
|
const getCssClasses = () => {
|
|
734
697
|
const cssClasses = [];
|
|
@@ -738,8 +701,8 @@ const Checkbox = (props) => {
|
|
|
738
701
|
};
|
|
739
702
|
const getCssClassesLabel = () => {
|
|
740
703
|
const cssClasses = [];
|
|
741
|
-
cssClasses.push(styles$
|
|
742
|
-
disabled && cssClasses.push(styles$
|
|
704
|
+
cssClasses.push(styles$J.checkboxLabel);
|
|
705
|
+
disabled && cssClasses.push(styles$J['disabled']);
|
|
743
706
|
return cssClasses.filter(css => css).join(' ');
|
|
744
707
|
};
|
|
745
708
|
const getIcon = () => {
|
|
@@ -751,24 +714,21 @@ const Checkbox = (props) => {
|
|
|
751
714
|
checkboxElement?.current?.click();
|
|
752
715
|
}
|
|
753
716
|
};
|
|
754
|
-
return (
|
|
755
|
-
React.createElement(IconButton, { className: getCssClasses(), onClick: handleClick, icon: getIcon(), disabled: disabled || readOnly }),
|
|
756
|
-
React.createElement("label", { onClick: handleClick, className: getCssClassesLabel() }, label),
|
|
757
|
-
React.createElement("input", { type: "checkbox", ref: checkboxElement, id: id, name: name, checked: isChecked, disabled: disabled, readOnly: readOnly, hidden: true, value: value, ...rest })));
|
|
717
|
+
return (jsxs("div", { className: styles$J.checkboxContainer, children: [jsx(IconButton, { className: getCssClasses(), onClick: handleClick, icon: getIcon(), disabled: disabled || readOnly }), jsx("label", { onClick: handleClick, className: getCssClassesLabel(), children: label }), jsx("input", { type: "checkbox", ref: checkboxElement, id: id, name: name, checked: isChecked, disabled: disabled, readOnly: readOnly, hidden: true, value: value, ...rest })] }));
|
|
758
718
|
};
|
|
759
719
|
|
|
760
|
-
var css_248z$
|
|
761
|
-
var styles$
|
|
762
|
-
styleInject(css_248z$
|
|
720
|
+
var css_248z$I = ".Chip-module_chip__dZ5qz {\n display: inline-flex;\n align-items: center;\n padding: 0.5rem;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n font-size: 75%;\n font-weight: 700;\n border-radius: 10rem;\n line-height: 1;\n}\n.Chip-module_chip__dZ5qz span {\n margin-bottom: 2px;\n}\n.Chip-module_chip__dZ5qz svg {\n width: 18px;\n height: 18px;\n}\n.Chip-module_chip__dZ5qz .Chip-module_deleteIcon__--rUx {\n margin-left: 5px;\n}\n.Chip-module_chip__dZ5qz .Chip-module_deleteIcon__--rUx:hover {\n cursor: pointer;\n}\n.Chip-module_chip__dZ5qz.Chip-module_primary__YVDi9 {\n background: var(--primary);\n color: var(--primary-contrast-text);\n}\n.Chip-module_chip__dZ5qz.Chip-module_secondary__-e4xP {\n background: var(--secondary);\n color: var(--secondary-contrast-text);\n}\n.Chip-module_chip__dZ5qz.Chip-module_accent__ZCTwu {\n background: var(--accent);\n color: var(--accent-contrast-text);\n}\n.Chip-module_chip__dZ5qz.Chip-module_light__vKs7O {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Chip-module_chip__dZ5qz.Chip-module_dark__G-FLQ {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover {\n cursor: pointer;\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_primary__YVDi9 {\n background: var(--primary-dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_secondary__-e4xP {\n background: var(--secondary-dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_accent__ZCTwu {\n background: var(--accent-dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_shadow__v11NF {\n box-shadow: var(--shadow);\n}";
|
|
721
|
+
var styles$I = {"chip":"Chip-module_chip__dZ5qz","deleteIcon":"Chip-module_deleteIcon__--rUx","primary":"Chip-module_primary__YVDi9","secondary":"Chip-module_secondary__-e4xP","accent":"Chip-module_accent__ZCTwu","light":"Chip-module_light__vKs7O","dark":"Chip-module_dark__G-FLQ","clickable":"Chip-module_clickable__qAqVH","shadow":"Chip-module_shadow__v11NF"};
|
|
722
|
+
styleInject(css_248z$I);
|
|
763
723
|
|
|
764
724
|
const Chip = (props) => {
|
|
765
|
-
const { children, color = 'secondary', className, shadow, onClick, isDeletable, onDelete, deleteIcon =
|
|
725
|
+
const { children, color = 'secondary', className, shadow, onClick, isDeletable, onDelete, deleteIcon = jsx(TimesCircleSolidIcon, {}), style, ...rest } = props;
|
|
766
726
|
const getCssClass = () => {
|
|
767
727
|
const cssClasses = [];
|
|
768
|
-
cssClasses.push(styles$
|
|
769
|
-
cssClasses.push(styles$
|
|
770
|
-
shadow && cssClasses.push(styles$
|
|
771
|
-
onClick && cssClasses.push(styles$
|
|
728
|
+
cssClasses.push(styles$I.chip);
|
|
729
|
+
cssClasses.push(styles$I[color]);
|
|
730
|
+
shadow && cssClasses.push(styles$I['shadow']);
|
|
731
|
+
onClick && cssClasses.push(styles$I['clickable']);
|
|
772
732
|
className && cssClasses.push(className);
|
|
773
733
|
return cssClasses.filter(r => r).join(' ');
|
|
774
734
|
};
|
|
@@ -776,9 +736,7 @@ const Chip = (props) => {
|
|
|
776
736
|
e.stopPropagation();
|
|
777
737
|
onDelete && onDelete(e);
|
|
778
738
|
};
|
|
779
|
-
return (
|
|
780
|
-
React.createElement("span", null, children),
|
|
781
|
-
isDeletable && (React.createElement("div", { className: styles$H.deleteIcon, onClick: (e) => handleClickOnDelete(e) }, deleteIcon))));
|
|
739
|
+
return (jsxs("div", { className: getCssClass(), ...rest, style: style, children: [jsx("span", { children: children }), isDeletable && (jsx("div", { className: styles$I.deleteIcon, onClick: (e) => handleClickOnDelete(e), children: deleteIcon }))] }));
|
|
782
740
|
};
|
|
783
741
|
|
|
784
742
|
const CssTransition = (props) => {
|
|
@@ -852,821 +810,165 @@ const CssTransition = (props) => {
|
|
|
852
810
|
cssState?.leaveEnd && cssClasses.push(`${className}-leave-end`);
|
|
853
811
|
return cssClasses.filter((css) => css).join(' ');
|
|
854
812
|
};
|
|
855
|
-
return (
|
|
856
|
-
|
|
813
|
+
return (jsx(Fragment$1, { children: isRenderChild &&
|
|
814
|
+
jsx("div", { ref: transitionConainter, className: getCssClasses(), children: children }) }));
|
|
857
815
|
};
|
|
858
816
|
|
|
859
|
-
var
|
|
860
|
-
var styles$G = {"column":"Column-module_column__fcTgl"};
|
|
861
|
-
styleInject(css_248z$G);
|
|
817
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
862
818
|
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
const cssClasses = [];
|
|
867
|
-
cssClasses.push(styles$G.column);
|
|
868
|
-
className && cssClasses.push(className);
|
|
869
|
-
return cssClasses.filter(css => css).join(' ');
|
|
870
|
-
};
|
|
871
|
-
return (React.createElement("div", { className: getCssClasses(), ...rest }, children));
|
|
872
|
-
};
|
|
819
|
+
function createCommonjsModule(fn, module) {
|
|
820
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
821
|
+
}
|
|
873
822
|
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
823
|
+
/** @license React v16.13.1
|
|
824
|
+
* react-is.production.min.js
|
|
825
|
+
*
|
|
826
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
827
|
+
*
|
|
828
|
+
* This source code is licensed under the MIT license found in the
|
|
829
|
+
* LICENSE file in the root directory of this source tree.
|
|
830
|
+
*/
|
|
831
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
832
|
+
Symbol.for("react.suspense_list"):60120,r$1=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
833
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r$1:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r$1;var Portal=d;
|
|
834
|
+
var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
|
|
835
|
+
var isMemo=function(a){return z(a)===r$1};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
|
|
836
|
+
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r$1||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
877
837
|
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
838
|
+
var reactIs_production_min = {
|
|
839
|
+
AsyncMode: AsyncMode,
|
|
840
|
+
ConcurrentMode: ConcurrentMode,
|
|
841
|
+
ContextConsumer: ContextConsumer,
|
|
842
|
+
ContextProvider: ContextProvider,
|
|
843
|
+
Element: Element,
|
|
844
|
+
ForwardRef: ForwardRef,
|
|
845
|
+
Fragment: Fragment,
|
|
846
|
+
Lazy: Lazy,
|
|
847
|
+
Memo: Memo,
|
|
848
|
+
Portal: Portal,
|
|
849
|
+
Profiler: Profiler,
|
|
850
|
+
StrictMode: StrictMode,
|
|
851
|
+
Suspense: Suspense,
|
|
852
|
+
isAsyncMode: isAsyncMode,
|
|
853
|
+
isConcurrentMode: isConcurrentMode,
|
|
854
|
+
isContextConsumer: isContextConsumer,
|
|
855
|
+
isContextProvider: isContextProvider,
|
|
856
|
+
isElement: isElement,
|
|
857
|
+
isForwardRef: isForwardRef,
|
|
858
|
+
isFragment: isFragment,
|
|
859
|
+
isLazy: isLazy,
|
|
860
|
+
isMemo: isMemo,
|
|
861
|
+
isPortal: isPortal,
|
|
862
|
+
isProfiler: isProfiler,
|
|
863
|
+
isStrictMode: isStrictMode,
|
|
864
|
+
isSuspense: isSuspense,
|
|
865
|
+
isValidElementType: isValidElementType,
|
|
866
|
+
typeOf: typeOf
|
|
887
867
|
};
|
|
888
868
|
|
|
889
|
-
var
|
|
890
|
-
var styles$E = {"isInvalid":"FormError-module_isInvalid__tO1Sw"};
|
|
891
|
-
styleInject(css_248z$E);
|
|
869
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
892
870
|
|
|
893
|
-
const FormError = (props) => {
|
|
894
|
-
const { className = styles$E.isInvalid, errors = [] } = props;
|
|
895
|
-
return (React.createElement(Fragment$1, null, errors &&
|
|
896
|
-
React.createElement("div", { className: className }, errors.map(e => React.createElement("div", { key: e.validator }, e.message)))));
|
|
897
|
-
};
|
|
898
871
|
|
|
899
|
-
const FormGroup = (props) => {
|
|
900
|
-
const { children, className = 'mb-1' } = props;
|
|
901
|
-
return (React.createElement("div", { className: className }, children));
|
|
902
|
-
};
|
|
903
872
|
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
const getCssClasses = () => {
|
|
907
|
-
const cssClasses = [];
|
|
908
|
-
className && cssClasses.push(className);
|
|
909
|
-
return cssClasses.filter(css => css).join(' ');
|
|
910
|
-
};
|
|
911
|
-
return (React.createElement("small", { className: getCssClasses() }, children));
|
|
912
|
-
};
|
|
873
|
+
if (process.env.NODE_ENV !== "production") {
|
|
874
|
+
(function() {
|
|
913
875
|
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
const handleOnChange = (event) => {
|
|
926
|
-
const values = event.target.files;
|
|
927
|
-
setFileList(values);
|
|
928
|
-
onChange && onChange(event);
|
|
929
|
-
};
|
|
930
|
-
const handleOnDelete = () => {
|
|
931
|
-
alert('coming soon');
|
|
932
|
-
};
|
|
933
|
-
return (React.createElement("div", { className: "d-flex align-items-start" },
|
|
934
|
-
React.createElement(Button, { className: "flex-wrap", disabled: disabled, onClick: () => inputFileElement.current?.click() }, children),
|
|
935
|
-
React.createElement("div", { className: "d-flex align-items-center flex-wrap ml-1" }, fileList && Array.from(fileList).map((file) => React.createElement(Chip, { key: file.name, isDeletable: deletable, onDelete: () => handleOnDelete() }, file.name))),
|
|
936
|
-
React.createElement("input", { type: "file", ref: inputFileElement, className: getCssClasses(), id: id, name: name, multiple: multiple, accept: accept, disabled: disabled, readOnly: readOnly, hidden: true, onChange: handleOnChange, value: model, ...rest })));
|
|
937
|
-
};
|
|
876
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
877
|
+
// nor polyfill, then a plain number is used for performance.
|
|
878
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
879
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
880
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
881
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
882
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
883
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
884
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
885
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
886
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
938
887
|
|
|
939
|
-
var
|
|
940
|
-
var
|
|
941
|
-
|
|
888
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
889
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
890
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
891
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
892
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
893
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
894
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
895
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
896
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
897
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
898
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
942
899
|
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
const [isShow, setIsShow] = useState(false);
|
|
948
|
-
const [selectedOptions, setSelectedOptions] = useState([]);
|
|
949
|
-
const selectConainter = useRef(null);
|
|
950
|
-
const getCssClass = () => {
|
|
951
|
-
const cssClasses = [];
|
|
952
|
-
className && cssClasses.push(className);
|
|
953
|
-
disabled && cssClasses.push(styles$D['disabled']);
|
|
954
|
-
readOnly && cssClasses.push(styles$D['readOnly']);
|
|
955
|
-
cssClasses.push(styles$D.select);
|
|
956
|
-
return cssClasses.filter(r => r).join(' ');
|
|
957
|
-
};
|
|
958
|
-
useEffect(() => {
|
|
959
|
-
const newValue = value ? value : '';
|
|
960
|
-
writeValue(newValue);
|
|
961
|
-
if (newValue) {
|
|
962
|
-
const option = options.find(o => o.value === newValue);
|
|
963
|
-
if (option) {
|
|
964
|
-
setHoverIndex(options.indexOf(option));
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
}, [value, options]);
|
|
968
|
-
useEffect(() => {
|
|
969
|
-
if (hoverIndex) {
|
|
970
|
-
scrollIntoView(hoverIndex);
|
|
971
|
-
}
|
|
972
|
-
}, [hoverIndex, isShow]);
|
|
973
|
-
const scrollIntoView = (index) => {
|
|
974
|
-
const htmlListItem = selectConainter.current?.querySelector(`#list-item-${index}`);
|
|
975
|
-
if (htmlListItem) {
|
|
976
|
-
htmlListItem?.scrollIntoView({ block: 'end', behavior: 'smooth' });
|
|
977
|
-
}
|
|
978
|
-
};
|
|
979
|
-
const writeValue = (val) => setModel(val);
|
|
980
|
-
useEffect(() => {
|
|
981
|
-
if (!multiple) {
|
|
982
|
-
const newOption = options.find(o => o.value === model);
|
|
983
|
-
if (newOption) {
|
|
984
|
-
setSelectedOptions([newOption]);
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
else {
|
|
988
|
-
const filteredOptions = options.filter(o => model.indexOf(o.value) >= 0);
|
|
989
|
-
setSelectedOptions([...filteredOptions]);
|
|
990
|
-
}
|
|
991
|
-
}, [model, multiple]);
|
|
992
|
-
const handleOnClick = (option) => {
|
|
993
|
-
let newValue = multiple ? [] : '';
|
|
994
|
-
if (!multiple) {
|
|
995
|
-
if (model !== option.value) {
|
|
996
|
-
newValue = option.value;
|
|
997
|
-
onChange && onChange(newValue);
|
|
998
|
-
}
|
|
999
|
-
hide();
|
|
1000
|
-
}
|
|
1001
|
-
else {
|
|
1002
|
-
const selectedOption = selectedOptions.find(o => o.value === option.value);
|
|
1003
|
-
if (selectedOption) {
|
|
1004
|
-
newValue = selectedOptions.filter(o => o.value !== option.value).map(o => o.value);
|
|
1005
|
-
}
|
|
1006
|
-
else {
|
|
1007
|
-
newValue = newValue.concat(selectedOptions.map(o => o.value));
|
|
1008
|
-
newValue.push(option.value);
|
|
1009
|
-
}
|
|
1010
|
-
onChange && onChange(newValue);
|
|
1011
|
-
}
|
|
1012
|
-
writeValue(newValue);
|
|
1013
|
-
};
|
|
1014
|
-
const show = () => {
|
|
1015
|
-
if (!disabled && !readOnly) {
|
|
1016
|
-
setIsShow(true);
|
|
1017
|
-
}
|
|
1018
|
-
};
|
|
1019
|
-
const hide = () => setIsShow(false);
|
|
1020
|
-
const isActive = (option) => {
|
|
1021
|
-
return selectedOptions.indexOf(option) >= 0 || hoverIndex === options.indexOf(option);
|
|
1022
|
-
};
|
|
1023
|
-
const renderSingleViewModel = () => {
|
|
1024
|
-
let result = null;
|
|
1025
|
-
if (selectedOptions.length > 0) {
|
|
1026
|
-
result = React.createElement("span", null, selectedOptions[0].label);
|
|
1027
|
-
}
|
|
1028
|
-
return result;
|
|
1029
|
-
};
|
|
1030
|
-
const renderMultipleViewModel = () => {
|
|
1031
|
-
let result = null;
|
|
1032
|
-
if (selectedOptions.length <= multipleMaxCountItems && selectedOptions.length > 0) {
|
|
1033
|
-
result = selectedOptions
|
|
1034
|
-
.map(option => React.createElement(Chip, { key: option.value, color: COLOR.primary, isDeletable: true, onDelete: (e) => handleOnDelete(e, option) }, option.label));
|
|
1035
|
-
}
|
|
1036
|
-
else {
|
|
1037
|
-
result = React.createElement("span", null,
|
|
1038
|
-
selectedOptions.length,
|
|
1039
|
-
" Items selected");
|
|
1040
|
-
}
|
|
1041
|
-
return result;
|
|
1042
|
-
};
|
|
1043
|
-
const handleOnDelete = (event, option) => {
|
|
1044
|
-
event.stopPropagation();
|
|
1045
|
-
handleOnClick(option);
|
|
1046
|
-
};
|
|
1047
|
-
// TODO - extract with wrapper?
|
|
1048
|
-
const handleOnKeyDown = (e) => {
|
|
1049
|
-
if (isShow) {
|
|
1050
|
-
onKeyDown && onKeyDown(e);
|
|
1051
|
-
switch (e.code) {
|
|
1052
|
-
case 'Escape':
|
|
1053
|
-
hide();
|
|
1054
|
-
break;
|
|
1055
|
-
case 'ArrowDown':
|
|
1056
|
-
if (hoverIndex) {
|
|
1057
|
-
setHoverIndex(hoverIndex + 1);
|
|
1058
|
-
}
|
|
1059
|
-
break;
|
|
1060
|
-
case 'ArrowUp':
|
|
1061
|
-
// TODO
|
|
1062
|
-
if (hoverIndex) {
|
|
1063
|
-
setHoverIndex(hoverIndex - 1);
|
|
1064
|
-
}
|
|
1065
|
-
break;
|
|
1066
|
-
case 'Enter':
|
|
1067
|
-
if (hoverIndex) {
|
|
1068
|
-
const option = options[hoverIndex];
|
|
1069
|
-
if (option) {
|
|
1070
|
-
handleOnClick(option);
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
break;
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
};
|
|
1077
|
-
return (React.createElement("div", { ref: selectConainter, className: styles$D.selectContainer },
|
|
1078
|
-
React.createElement("div", { id: id, className: getCssClass(), onClick: () => show(), tabIndex: 0, onKeyDown: (e) => handleOnKeyDown(e) },
|
|
1079
|
-
React.createElement(React.Fragment, null,
|
|
1080
|
-
!multiple && renderSingleViewModel(),
|
|
1081
|
-
multiple &&
|
|
1082
|
-
React.createElement("div", { className: styles$D.chipContainer }, renderMultipleViewModel()),
|
|
1083
|
-
React.createElement(Icon, { className: "ml-auto" },
|
|
1084
|
-
React.createElement(ChevronDownSolidIcon, null)))),
|
|
1085
|
-
isShow &&
|
|
1086
|
-
React.createElement(Portal$1, { className: 'backdrop-root' },
|
|
1087
|
-
React.createElement("div", { className: styles$D.selectMenu, style: { left: selectConainter.current?.getBoundingClientRect().x, top: selectConainter.current?.getBoundingClientRect().y, width: selectConainter.current?.getBoundingClientRect().width } },
|
|
1088
|
-
React.createElement(List, null, options && options.map((option, index) => React.createElement(ListItem, { id: `list-item-${index}`, key: option.value, onClick: () => handleOnClick(option), active: isActive(option) },
|
|
1089
|
-
multiple &&
|
|
1090
|
-
React.createElement(Checkbox, { checked: isActive(option), onChange: () => handleOnClick(option) }),
|
|
1091
|
-
React.createElement(ListItemText, { primary: option.label ? option.label : option.value }))))),
|
|
1092
|
-
React.createElement(Backdrop, { style: { zIndex: 1111 }, isTransparent: true, onClick: () => hide() }))));
|
|
1093
|
-
};
|
|
1094
|
-
|
|
1095
|
-
var css_248z$C = ".Textarea-module_textarea__L5zqa {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n background-clip: padding-box;\n border: 2px solid var(--input-border-color);\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: var(--borderRadius);\n resize: vertical;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: 1px solid #ced4da;\n}\n.Textarea-module_textarea__L5zqa:focus:not(.Textarea-module_textarea__L5zqa.Textarea-module_disabled__OqqOF) {\n outline: none !important;\n border-color: var(--primary);\n}\n.Textarea-module_textarea__L5zqa.Textarea-module_isInvalid__JI01W {\n border-color: #dc3545;\n box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2509803922);\n}";
|
|
1096
|
-
var styles$C = {"textarea":"Textarea-module_textarea__L5zqa","disabled":"Textarea-module_disabled__OqqOF","isInvalid":"Textarea-module_isInvalid__JI01W"};
|
|
1097
|
-
styleInject(css_248z$C);
|
|
900
|
+
function isValidElementType(type) {
|
|
901
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
902
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
903
|
+
}
|
|
1098
904
|
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
const cssClasses = [];
|
|
1103
|
-
cssClasses.push(styles$C.textarea);
|
|
1104
|
-
className && cssClasses.push(className);
|
|
1105
|
-
error && cssClasses.push(styles$C['isInvalid']);
|
|
1106
|
-
return cssClasses.filter(r => r).join(' ');
|
|
1107
|
-
};
|
|
1108
|
-
return (React.createElement("textarea", { className: getCssClass(), ...rest }));
|
|
1109
|
-
};
|
|
905
|
+
function typeOf(object) {
|
|
906
|
+
if (typeof object === 'object' && object !== null) {
|
|
907
|
+
var $$typeof = object.$$typeof;
|
|
1110
908
|
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
909
|
+
switch ($$typeof) {
|
|
910
|
+
case REACT_ELEMENT_TYPE:
|
|
911
|
+
var type = object.type;
|
|
1114
912
|
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
};
|
|
1124
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1125
|
-
const handleOnInput = (value, type, name) => {
|
|
1126
|
-
onInput && onInput({ value: value, type: type, name: name });
|
|
1127
|
-
};
|
|
1128
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1129
|
-
const handleOnChange = (value, type, name) => {
|
|
1130
|
-
onChange && onChange({ value: value, type: type, name: name });
|
|
1131
|
-
};
|
|
1132
|
-
return (React.createElement(React.Fragment, null,
|
|
1133
|
-
(type === 'text' ||
|
|
1134
|
-
type === 'date' ||
|
|
1135
|
-
type === 'datetime-local' ||
|
|
1136
|
-
type === 'email' ||
|
|
1137
|
-
type === 'number' ||
|
|
1138
|
-
type === 'password' ||
|
|
1139
|
-
type === 'color' ||
|
|
1140
|
-
type === 'time')
|
|
1141
|
-
&&
|
|
1142
|
-
React.createElement("input", { id: name, name: name, type: type, className: getCssClasses(), value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange((e?.target).value, type, name), onBlur: onBlur, placeholder: placeholder, readOnly: readonly, disabled: disabled, onKeyDown: onKeyDown }),
|
|
1143
|
-
type === 'file' &&
|
|
1144
|
-
React.createElement(FileInput, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, readOnly: readonly, disabled: disabled, onChange: (e) => handleOnChange(e.target.value, type, name) }, "choose a file"),
|
|
1145
|
-
type === 'textarea' &&
|
|
1146
|
-
React.createElement(Textarea, { id: name, name: name, className: className, error: !isValid, value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange(e.target.value, type, name), placeholder: placeholder, rows: textareaOptions?.rows, style: textareaOptions?.resize !== false ? undefined : { resize: 'none' } }),
|
|
1147
|
-
type === 'select' &&
|
|
1148
|
-
React.createElement(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions?.multiple, onChange: (e) => handleOnChange(e, type, name), options: options }),
|
|
1149
|
-
type === 'autocomplete' &&
|
|
1150
|
-
React.createElement(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions?.openOnFocus, onChange: (e) => handleOnChange(e, type, name), onSelect: (e) => handleOnChange(e.value, type, name), options: options }),
|
|
1151
|
-
type === 'checkbox' &&
|
|
1152
|
-
React.createElement(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''), onChange: (e) => handleOnChange((e?.target).checked, type, name), checked: value }),
|
|
1153
|
-
type === 'radio' &&
|
|
1154
|
-
React.createElement(React.Fragment, null, options.map((option) => React.createElement("div", { className: "form-check", key: option.id },
|
|
1155
|
-
React.createElement("input", { id: option.id ? option.id : option.value, name: name, type: "radio", className: "form-check-input", onChange: (e) => handleOnChange((e?.target).value, type, name), value: option.value, checked: value === option.value, onKeyDown: onKeyDown }),
|
|
1156
|
-
React.createElement("label", { className: "form-check-label", htmlFor: option.id }, option.label))))));
|
|
1157
|
-
};
|
|
1158
|
-
|
|
1159
|
-
var css_248z$A = ".FormLabel-module_formLabel__TXcHc {\n display: inline-block;\n margin-bottom: 0.5rem;\n}";
|
|
1160
|
-
var styles$A = {"formLabel":"FormLabel-module_formLabel__TXcHc"};
|
|
1161
|
-
styleInject(css_248z$A);
|
|
913
|
+
switch (type) {
|
|
914
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
915
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
916
|
+
case REACT_FRAGMENT_TYPE:
|
|
917
|
+
case REACT_PROFILER_TYPE:
|
|
918
|
+
case REACT_STRICT_MODE_TYPE:
|
|
919
|
+
case REACT_SUSPENSE_TYPE:
|
|
920
|
+
return type;
|
|
1162
921
|
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
const cssClasses = [];
|
|
1166
|
-
cssClasses.push(styles$A.formLabel);
|
|
1167
|
-
className && cssClasses.push(className);
|
|
1168
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1169
|
-
};
|
|
1170
|
-
return (React.createElement("label", { htmlFor: htmlFor, className: getCssClasses(), ...rest }, children));
|
|
1171
|
-
};
|
|
922
|
+
default:
|
|
923
|
+
var $$typeofType = type && type.$$typeof;
|
|
1172
924
|
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
925
|
+
switch ($$typeofType) {
|
|
926
|
+
case REACT_CONTEXT_TYPE:
|
|
927
|
+
case REACT_FORWARD_REF_TYPE:
|
|
928
|
+
case REACT_LAZY_TYPE:
|
|
929
|
+
case REACT_MEMO_TYPE:
|
|
930
|
+
case REACT_PROVIDER_TYPE:
|
|
931
|
+
return $$typeofType;
|
|
1176
932
|
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
return isInvalid;
|
|
1181
|
-
};
|
|
933
|
+
default:
|
|
934
|
+
return $$typeof;
|
|
935
|
+
}
|
|
1182
936
|
|
|
1183
|
-
|
|
937
|
+
}
|
|
1184
938
|
|
|
1185
|
-
|
|
939
|
+
case REACT_PORTAL_TYPE:
|
|
940
|
+
return $$typeof;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
1186
943
|
|
|
1187
|
-
|
|
944
|
+
return undefined;
|
|
945
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
1188
946
|
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
return { controls: nextProps.controls };
|
|
1204
|
-
}
|
|
1205
|
-
return null;
|
|
1206
|
-
}
|
|
1207
|
-
handleChange() {
|
|
1208
|
-
// get value by myForm instead of getControl?
|
|
1209
|
-
if (this.state.isChanged || this.state.isSubmitted) {
|
|
1210
|
-
const keys = Object.keys(this.state.controls);
|
|
1211
|
-
const values = keys.reduce((obj, f) => {
|
|
1212
|
-
const control = this.getControl(f);
|
|
1213
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1214
|
-
const newValue = (control.type === 'date' || control.type === 'datetime-local') &&
|
|
1215
|
-
control.value &&
|
|
1216
|
-
isValidDate(control.value)
|
|
1217
|
-
? new Date(control.value).toISOString()
|
|
1218
|
-
: control.value;
|
|
1219
|
-
return {
|
|
1220
|
-
...obj,
|
|
1221
|
-
[f]: newValue,
|
|
1222
|
-
};
|
|
1223
|
-
}, {});
|
|
1224
|
-
if (this.state.isValid && this.state.isSubmitted) {
|
|
1225
|
-
this.props.onSubmit && this.props.onSubmit(values);
|
|
1226
|
-
}
|
|
1227
|
-
this.props.onChange && this.props.onChange(values);
|
|
1228
|
-
this.setState({ isChanged: false, isSubmitted: false });
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
// extract to service?
|
|
1232
|
-
validateField(fieldValue, fieldValidators) {
|
|
1233
|
-
const errors = [];
|
|
1234
|
-
if (fieldValidators) {
|
|
1235
|
-
for (const validator of fieldValidators) {
|
|
1236
|
-
const validatorSplitted = validator.split(':');
|
|
1237
|
-
const validatorName = validatorSplitted[0];
|
|
1238
|
-
const validatorParam = validatorSplitted.length > 1 ? validatorSplitted[1] : null;
|
|
1239
|
-
switch (validatorName) {
|
|
1240
|
-
case 'required':
|
|
1241
|
-
if (IsEmptyValidator(fieldValue)) {
|
|
1242
|
-
errors.push({ validator: validatorName, message: 'This field is required' });
|
|
1243
|
-
}
|
|
1244
|
-
break;
|
|
1245
|
-
case 'email':
|
|
1246
|
-
if (EmailValidator(fieldValue)) {
|
|
1247
|
-
errors.push({ validator: validatorName, message: 'Email format is wrong' });
|
|
1248
|
-
}
|
|
1249
|
-
break;
|
|
1250
|
-
case 'min':
|
|
1251
|
-
if (!MinValidator(fieldValue, parseInt(validatorParam))) {
|
|
1252
|
-
errors.push({ validator: validatorName, message: `Minimum number of ${validatorParam} characters not met` });
|
|
1253
|
-
}
|
|
1254
|
-
break;
|
|
1255
|
-
case 'max':
|
|
1256
|
-
if (!MaxValidator(fieldValue, parseInt(validatorParam))) {
|
|
1257
|
-
errors.push({ validator: validatorName, message: `Maximum number of ${validatorParam} characters exceeded` });
|
|
1258
|
-
}
|
|
1259
|
-
break;
|
|
1260
|
-
case 'match':
|
|
1261
|
-
if (validatorParam) {
|
|
1262
|
-
const matchControl = this.getControl(validatorParam);
|
|
1263
|
-
if (matchControl) {
|
|
1264
|
-
if (!IsEqualValidator(fieldValue, matchControl.value)) {
|
|
1265
|
-
errors.push({ validator: validatorName, message: 'Values do not match' });
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
else {
|
|
1269
|
-
console.error(`Form: Field ${validatorParam} not found`);
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
break;
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
return errors;
|
|
1277
|
-
}
|
|
1278
|
-
handleInputChange(name, value) {
|
|
1279
|
-
const field = this.getControl(name);
|
|
1280
|
-
field.value = value;
|
|
1281
|
-
// redundant mit handleOnBlur
|
|
1282
|
-
field.isDirty = true;
|
|
1283
|
-
field.errors = this.validateField(field.value, field.validators);
|
|
1284
|
-
field.isValid = field.errors.length === 0;
|
|
1285
|
-
const newControls = { ...this.state.controls };
|
|
1286
|
-
newControls[name] = field;
|
|
1287
|
-
this.setState({ controls: newControls, isChanged: true }, () => this.handleChange());
|
|
1288
|
-
}
|
|
1289
|
-
handleOnBlur(e) {
|
|
1290
|
-
if (this.props.validateOnBlur) {
|
|
1291
|
-
const { name } = e.target;
|
|
1292
|
-
const field = this.getControl(name);
|
|
1293
|
-
field.isDirty = true;
|
|
1294
|
-
field.errors = this.validateField(field.value, field.validators);
|
|
1295
|
-
field.isValid = field.errors.length === 0;
|
|
1296
|
-
const controls = this.state.controls;
|
|
1297
|
-
if (controls) {
|
|
1298
|
-
controls[name] = field;
|
|
1299
|
-
this.setState({ controls: controls, isChanged: true }, () => this.handleChange());
|
|
1300
|
-
}
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
isRequired(fieldName) {
|
|
1304
|
-
let result = false;
|
|
1305
|
-
result = this.getControl(fieldName).validators.indexOf('required') >= 0;
|
|
1306
|
-
return result;
|
|
1307
|
-
}
|
|
1308
|
-
isInvalid(fieldName) {
|
|
1309
|
-
let result = false;
|
|
1310
|
-
const field = this.getControl(fieldName);
|
|
1311
|
-
result = field.isDirty && !field.isValid;
|
|
1312
|
-
return result;
|
|
1313
|
-
}
|
|
1314
|
-
getControl(name) {
|
|
1315
|
-
return this.state.controls[name];
|
|
1316
|
-
}
|
|
1317
|
-
renderLabel(fieldKey, label, labelClassName = 'form-label') {
|
|
1318
|
-
const cssClasses = [labelClassName, this.isRequired(fieldKey) ? 'required' : undefined];
|
|
1319
|
-
return (React.createElement(FormLabel, { htmlFor: fieldKey, className: cssClasses.join(' ') }, label));
|
|
1320
|
-
}
|
|
1321
|
-
handleFormSubmit() {
|
|
1322
|
-
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
1323
|
-
const field = this.getControl(fieldKey);
|
|
1324
|
-
// redundant mit handleBlur
|
|
1325
|
-
field.isDirty = true;
|
|
1326
|
-
field.errors = this.validateField(field.value, field.validators);
|
|
1327
|
-
field.isValid = field.errors.length === 0;
|
|
1328
|
-
}
|
|
1329
|
-
this.setState({
|
|
1330
|
-
controls: { ...this.state.controls },
|
|
1331
|
-
isSubmitted: true,
|
|
1332
|
-
isValid: Object.keys(this.state.controls)
|
|
1333
|
-
.map(f => this.getControl(f).isValid)
|
|
1334
|
-
.every(valid => valid === true),
|
|
1335
|
-
}, () => this.handleChange());
|
|
1336
|
-
}
|
|
1337
|
-
// trigger via ref
|
|
1338
|
-
handleFormReset() {
|
|
1339
|
-
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
1340
|
-
const field = this.getControl(fieldKey);
|
|
1341
|
-
field.value = '';
|
|
1342
|
-
field.isDirty = false;
|
|
1343
|
-
field.errors = [];
|
|
1344
|
-
field.isValid = field.errors.length === 0;
|
|
1345
|
-
}
|
|
1346
|
-
this.setState({
|
|
1347
|
-
controls: { ...this.state.controls },
|
|
1348
|
-
isSubmitted: false,
|
|
1349
|
-
isChanged: false,
|
|
1350
|
-
isValid: false,
|
|
1351
|
-
});
|
|
1352
|
-
}
|
|
1353
|
-
handleOnKeyDown(e) {
|
|
1354
|
-
if (e.key === 'Enter') {
|
|
1355
|
-
e.preventDefault();
|
|
1356
|
-
this.state.submitOnEnter && this.handleFormSubmit();
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
destroy() {
|
|
1360
|
-
this.setState({ controls: {}, isValid: false, isChanged: false, isSubmitted: false });
|
|
1361
|
-
}
|
|
1362
|
-
getFormGroupCssClass(fieldKey) {
|
|
1363
|
-
return this.getControl(fieldKey).config.formGroupClassName;
|
|
1364
|
-
}
|
|
1365
|
-
render() {
|
|
1366
|
-
return (React.createElement("form", { className: this.props.className, ref: this.myForm }, this.state &&
|
|
1367
|
-
this.state.controls &&
|
|
1368
|
-
Object.keys(this.state.controls).map(fieldKey => {
|
|
1369
|
-
return (React.createElement(FormGroup, { key: fieldKey, className: this.getFormGroupCssClass(fieldKey) },
|
|
1370
|
-
this.getControl(fieldKey).config.labelPosition !== 'behind' &&
|
|
1371
|
-
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
1372
|
-
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName),
|
|
1373
|
-
React.createElement(FormInput, { autoFocus: this.getControl(fieldKey).config.autoFocus, className: this.getControl(fieldKey).config.formControlClassName, isValid: !this.isInvalid(fieldKey), label: this.getControl(fieldKey).config.label, name: fieldKey, options: this.getControl(fieldKey).config.options, placeholder: this.getControl(fieldKey).config.placeholder, textareaOptions: this.getControl(fieldKey).config.textareaOptions, selectOptions: this.getControl(fieldKey).config.selectOptions, autoCompleteOptions: this.getControl(fieldKey).config.autoCompleteOptions, type: this.getControl(fieldKey).type, value: this.getControl(fieldKey).value, disabled: this.getControl(fieldKey).config.disabled, readonly: this.getControl(fieldKey).config.readonly, onChange: ({ name, value }) => this.handleInputChange(name, value), onBlur: (e) => this.handleOnBlur(e), onKeyDown: (e) => this.handleOnKeyDown(e) }),
|
|
1374
|
-
this.getControl(fieldKey).config.labelPosition === 'behind' &&
|
|
1375
|
-
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
1376
|
-
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName),
|
|
1377
|
-
this.getControl(fieldKey).config.hint && (React.createElement(FormHint, null, this.getControl(fieldKey).config.hint)),
|
|
1378
|
-
this.getControl(fieldKey).errors && React.createElement(FormError, { errors: this.getControl(fieldKey).errors })));
|
|
1379
|
-
})));
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
function isValidDate(dateObject) {
|
|
1383
|
-
return new Date(dateObject).toString() !== 'Invalid Date';
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
class FormControl {
|
|
1387
|
-
constructor(
|
|
1388
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1389
|
-
value, validators = [], type, config) {
|
|
1390
|
-
this.value = value;
|
|
1391
|
-
this.validators = validators;
|
|
1392
|
-
this.type = type;
|
|
1393
|
-
this.config = config;
|
|
1394
|
-
this.errors = [];
|
|
1395
|
-
this.isValid = false;
|
|
1396
|
-
this.isDirty = false;
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
const DaySelect = (props) => {
|
|
1401
|
-
const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange } = props;
|
|
1402
|
-
useEffect(() => {
|
|
1403
|
-
init();
|
|
1404
|
-
}, [month, year]);
|
|
1405
|
-
const init = () => {
|
|
1406
|
-
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
1407
|
-
const newDays = [];
|
|
1408
|
-
for (let i = 1; i <= daysInMonth; i++) {
|
|
1409
|
-
newDays.push({ value: i.toString(), label: i.toString() });
|
|
1410
|
-
}
|
|
1411
|
-
setDayOptions(newDays);
|
|
1412
|
-
};
|
|
1413
|
-
const [value, setValue] = useState(day);
|
|
1414
|
-
const [dayOptions, setDayOptions] = useState();
|
|
1415
|
-
const getCssClasses = () => {
|
|
1416
|
-
const cssClasses = [];
|
|
1417
|
-
className && cssClasses.push(className);
|
|
1418
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1419
|
-
};
|
|
1420
|
-
const handleOnChange = (e) => {
|
|
1421
|
-
setValue(e);
|
|
1422
|
-
onChange && onChange(e);
|
|
1423
|
-
};
|
|
1424
|
-
return (React.createElement(Select, { id: id, name: name, className: getCssClasses(), options: dayOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: value.toString() }));
|
|
1425
|
-
};
|
|
1426
|
-
|
|
1427
|
-
const MonthSelect = (props) => {
|
|
1428
|
-
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
1429
|
-
const { className, value = new Date().getMonth(), id, name, disabled, onChange } = props;
|
|
1430
|
-
const [newValue, setNewValue] = useState(value);
|
|
1431
|
-
const [monthOptions, setMonthOptions] = useState();
|
|
1432
|
-
useEffect(() => {
|
|
1433
|
-
setMonthOptions(months.map((m, index) => ({ value: index.toString(), label: m })));
|
|
1434
|
-
}, []);
|
|
1435
|
-
const getCssClasses = () => {
|
|
1436
|
-
const cssClasses = [];
|
|
1437
|
-
className && cssClasses.push(className);
|
|
1438
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1439
|
-
};
|
|
1440
|
-
const handleOnChange = (e) => {
|
|
1441
|
-
setNewValue(e);
|
|
1442
|
-
onChange && onChange(e);
|
|
1443
|
-
};
|
|
1444
|
-
return (React.createElement(Select, { id: id, name: name, className: getCssClasses(), options: monthOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
1445
|
-
};
|
|
1446
|
-
|
|
1447
|
-
const YearSelect = (props) => {
|
|
1448
|
-
const { className, from = 1970, to = new Date().getFullYear().toString(), value = new Date().getFullYear().toString(), id, name, disabled, onChange } = props;
|
|
1449
|
-
const [newValue, setNewValue] = useState(value.toString());
|
|
1450
|
-
const [years, setYears] = useState();
|
|
1451
|
-
useEffect(() => {
|
|
1452
|
-
const newYears = [];
|
|
1453
|
-
for (let i = from; i <= to; i++) {
|
|
1454
|
-
newYears.push({ value: i.toString(), label: i.toString() });
|
|
1455
|
-
}
|
|
1456
|
-
setYears(newYears.reverse());
|
|
1457
|
-
}, [from, to]);
|
|
1458
|
-
const getCssClasses = () => {
|
|
1459
|
-
const cssClasses = [];
|
|
1460
|
-
className && cssClasses.push(className);
|
|
1461
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1462
|
-
};
|
|
1463
|
-
const handleOnChange = (e) => {
|
|
1464
|
-
setNewValue(e);
|
|
1465
|
-
onChange && onChange(parseInt(e));
|
|
1466
|
-
};
|
|
1467
|
-
return (React.createElement(Select, { id: id, name: name, className: getCssClasses(), options: years, onChange: handleOnChange, disabled: disabled, value: newValue }));
|
|
1468
|
-
};
|
|
947
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
948
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
949
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
950
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
951
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
952
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
953
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
954
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
955
|
+
var Memo = REACT_MEMO_TYPE;
|
|
956
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
957
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
958
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
959
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
960
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
1469
961
|
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
DATEMODE[DATEMODE["DAY"] = 2] = "DAY";
|
|
1475
|
-
})(DATEMODE || (DATEMODE = {}));
|
|
1476
|
-
const DateSelect = (props) => {
|
|
1477
|
-
const { className, value = new Date(), disabled, yearConfig, onChange } = props;
|
|
1478
|
-
const getCssClasses = () => {
|
|
1479
|
-
const cssClasses = [];
|
|
1480
|
-
cssClasses.push('row');
|
|
1481
|
-
className && cssClasses.push(className);
|
|
1482
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1483
|
-
};
|
|
1484
|
-
const [currDate, setCurrDate] = useState(value);
|
|
1485
|
-
const handleOnChange = (e, mode) => {
|
|
1486
|
-
const currYear = mode === DATEMODE.YEAR ? e : currDate.getFullYear();
|
|
1487
|
-
const currMonth = mode === DATEMODE.MONTH ? e : currDate.getMonth();
|
|
1488
|
-
const currday = mode === DATEMODE.DAY ? e : currDate.getDate();
|
|
1489
|
-
const newDate = new Date(currYear, currMonth, currday);
|
|
1490
|
-
setCurrDate(newDate);
|
|
1491
|
-
onChange && onChange(newDate);
|
|
1492
|
-
};
|
|
1493
|
-
return (React.createElement(Row, { className: getCssClasses() },
|
|
1494
|
-
React.createElement(Column, null,
|
|
1495
|
-
React.createElement(FormLabel, null, "Year"),
|
|
1496
|
-
React.createElement(YearSelect, { value: currDate.getFullYear(), disabled: disabled, from: yearConfig?.from, to: yearConfig?.to, onChange: (e) => handleOnChange(e, DATEMODE.YEAR) })),
|
|
1497
|
-
React.createElement(Column, null,
|
|
1498
|
-
React.createElement(FormLabel, null, "Month"),
|
|
1499
|
-
React.createElement(MonthSelect, { value: currDate.getMonth(), disabled: disabled, onChange: (e) => handleOnChange(e, DATEMODE.MONTH) })),
|
|
1500
|
-
React.createElement(Column, null,
|
|
1501
|
-
React.createElement(FormLabel, null, "Day"),
|
|
1502
|
-
React.createElement(DaySelect, { day: currDate.getDate(), month: currDate.getMonth(), year: currDate.getFullYear(), disabled: disabled, onChange: (e) => handleOnChange(e, DATEMODE.DAY) }))));
|
|
1503
|
-
};
|
|
1504
|
-
/*
|
|
1505
|
-
* result = { year, month, day, dayOfWeek, weekNumber }
|
|
1506
|
-
*/
|
|
1507
|
-
// const getWeekNumber = () => {
|
|
1508
|
-
// var d = new Date(Date.UTC(this.getFullYear(), this.getMonth(), this.getDate()));
|
|
1509
|
-
// var dayNum = d.getUTCDay() || 7;
|
|
1510
|
-
// d.setUTCDate(d.getUTCDate() + 4 - dayNum);
|
|
1511
|
-
// var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
|
|
1512
|
-
// return Math.ceil((((d - yearStart) / 86400000) + 1) / 7)
|
|
1513
|
-
// };
|
|
962
|
+
function isAsyncMode(object) {
|
|
963
|
+
{
|
|
964
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
965
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1514
966
|
|
|
1515
|
-
|
|
967
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
968
|
+
}
|
|
969
|
+
}
|
|
1516
970
|
|
|
1517
|
-
|
|
1518
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
/** @license React v16.13.1
|
|
1522
|
-
* react-is.production.min.js
|
|
1523
|
-
*
|
|
1524
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1525
|
-
*
|
|
1526
|
-
* This source code is licensed under the MIT license found in the
|
|
1527
|
-
* LICENSE file in the root directory of this source tree.
|
|
1528
|
-
*/
|
|
1529
|
-
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
1530
|
-
Symbol.for("react.suspense_list"):60120,r$1=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
1531
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r$1:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r$1;var Portal=d;
|
|
1532
|
-
var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
|
|
1533
|
-
var isMemo=function(a){return z(a)===r$1};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
|
|
1534
|
-
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r$1||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
1535
|
-
|
|
1536
|
-
var reactIs_production_min = {
|
|
1537
|
-
AsyncMode: AsyncMode,
|
|
1538
|
-
ConcurrentMode: ConcurrentMode,
|
|
1539
|
-
ContextConsumer: ContextConsumer,
|
|
1540
|
-
ContextProvider: ContextProvider,
|
|
1541
|
-
Element: Element,
|
|
1542
|
-
ForwardRef: ForwardRef,
|
|
1543
|
-
Fragment: Fragment,
|
|
1544
|
-
Lazy: Lazy,
|
|
1545
|
-
Memo: Memo,
|
|
1546
|
-
Portal: Portal,
|
|
1547
|
-
Profiler: Profiler,
|
|
1548
|
-
StrictMode: StrictMode,
|
|
1549
|
-
Suspense: Suspense,
|
|
1550
|
-
isAsyncMode: isAsyncMode,
|
|
1551
|
-
isConcurrentMode: isConcurrentMode,
|
|
1552
|
-
isContextConsumer: isContextConsumer,
|
|
1553
|
-
isContextProvider: isContextProvider,
|
|
1554
|
-
isElement: isElement,
|
|
1555
|
-
isForwardRef: isForwardRef,
|
|
1556
|
-
isFragment: isFragment,
|
|
1557
|
-
isLazy: isLazy,
|
|
1558
|
-
isMemo: isMemo,
|
|
1559
|
-
isPortal: isPortal,
|
|
1560
|
-
isProfiler: isProfiler,
|
|
1561
|
-
isStrictMode: isStrictMode,
|
|
1562
|
-
isSuspense: isSuspense,
|
|
1563
|
-
isValidElementType: isValidElementType,
|
|
1564
|
-
typeOf: typeOf
|
|
1565
|
-
};
|
|
1566
|
-
|
|
1567
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1572
|
-
(function() {
|
|
1573
|
-
|
|
1574
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
1575
|
-
// nor polyfill, then a plain number is used for performance.
|
|
1576
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
1577
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
1578
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
1579
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
1580
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
1581
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
1582
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
1583
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
1584
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
1585
|
-
|
|
1586
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
1587
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
1588
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
1589
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
1590
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
1591
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
1592
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
1593
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
1594
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
1595
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
1596
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
1597
|
-
|
|
1598
|
-
function isValidElementType(type) {
|
|
1599
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1600
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
function typeOf(object) {
|
|
1604
|
-
if (typeof object === 'object' && object !== null) {
|
|
1605
|
-
var $$typeof = object.$$typeof;
|
|
1606
|
-
|
|
1607
|
-
switch ($$typeof) {
|
|
1608
|
-
case REACT_ELEMENT_TYPE:
|
|
1609
|
-
var type = object.type;
|
|
1610
|
-
|
|
1611
|
-
switch (type) {
|
|
1612
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
1613
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
1614
|
-
case REACT_FRAGMENT_TYPE:
|
|
1615
|
-
case REACT_PROFILER_TYPE:
|
|
1616
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1617
|
-
case REACT_SUSPENSE_TYPE:
|
|
1618
|
-
return type;
|
|
1619
|
-
|
|
1620
|
-
default:
|
|
1621
|
-
var $$typeofType = type && type.$$typeof;
|
|
1622
|
-
|
|
1623
|
-
switch ($$typeofType) {
|
|
1624
|
-
case REACT_CONTEXT_TYPE:
|
|
1625
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1626
|
-
case REACT_LAZY_TYPE:
|
|
1627
|
-
case REACT_MEMO_TYPE:
|
|
1628
|
-
case REACT_PROVIDER_TYPE:
|
|
1629
|
-
return $$typeofType;
|
|
1630
|
-
|
|
1631
|
-
default:
|
|
1632
|
-
return $$typeof;
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
case REACT_PORTAL_TYPE:
|
|
1638
|
-
return $$typeof;
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
return undefined;
|
|
1643
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
1644
|
-
|
|
1645
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
1646
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1647
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1648
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1649
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
1650
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1651
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
1652
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
1653
|
-
var Memo = REACT_MEMO_TYPE;
|
|
1654
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
1655
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
1656
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1657
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1658
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
1659
|
-
|
|
1660
|
-
function isAsyncMode(object) {
|
|
1661
|
-
{
|
|
1662
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
1663
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1664
|
-
|
|
1665
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
1666
|
-
}
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
971
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
1670
972
|
}
|
|
1671
973
|
function isConcurrentMode(object) {
|
|
1672
974
|
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
@@ -5682,169 +4984,687 @@ Calendar$1.propTypes = {
|
|
|
5682
4984
|
|
|
5683
4985
|
var Calendar = Calendar$1;
|
|
5684
4986
|
|
|
5685
|
-
var css_248z$
|
|
5686
|
-
var styles$
|
|
5687
|
-
styleInject(css_248z$
|
|
4987
|
+
var css_248z$H = ".DatePicker-module_datePicker__mTJ3f {\n width: 100%;\n}";
|
|
4988
|
+
var styles$H = {"datePicker":"DatePicker-module_datePicker__mTJ3f"};
|
|
4989
|
+
styleInject(css_248z$H);
|
|
4990
|
+
|
|
4991
|
+
const DatePicker = (props) => {
|
|
4992
|
+
const { value = new Date(), selectRange, minDate, maxDate,
|
|
4993
|
+
// disabled,
|
|
4994
|
+
onChange, ...rest } = props;
|
|
4995
|
+
const [currDate, setCurrDate] = useState(value);
|
|
4996
|
+
const handleOnChange = (e) => {
|
|
4997
|
+
setCurrDate(e);
|
|
4998
|
+
onChange && onChange(e);
|
|
4999
|
+
};
|
|
5000
|
+
return (jsx(Calendar, { className: styles$H.datePicker, value: currDate, minDate: minDate, maxDate: maxDate, selectRange: selectRange, onChange: handleOnChange, ...rest }));
|
|
5001
|
+
};
|
|
5002
|
+
|
|
5003
|
+
var css_248z$G = ".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}";
|
|
5004
|
+
var styles$G = {"column":"Column-module_column__fcTgl"};
|
|
5005
|
+
styleInject(css_248z$G);
|
|
5006
|
+
|
|
5007
|
+
const Column = (props) => {
|
|
5008
|
+
const { children, className, ...rest } = props;
|
|
5009
|
+
const getCssClasses = () => {
|
|
5010
|
+
const cssClasses = [];
|
|
5011
|
+
cssClasses.push(styles$G.column);
|
|
5012
|
+
className && cssClasses.push(className);
|
|
5013
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5014
|
+
};
|
|
5015
|
+
return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
5016
|
+
};
|
|
5017
|
+
|
|
5018
|
+
var css_248z$F = ".Row-module_row__bTIWp {\n display: flex;\n gap: 15px;\n flex-wrap: wrap;\n}\n.Row-module_row__bTIWp > * {\n flex-shrink: 0;\n width: 100%;\n min-width: 0;\n max-width: 100%;\n}";
|
|
5019
|
+
var styles$F = {"row":"Row-module_row__bTIWp"};
|
|
5020
|
+
styleInject(css_248z$F);
|
|
5021
|
+
|
|
5022
|
+
const Row = ({ children, direction = 'row', className, ...rest }) => {
|
|
5023
|
+
const getCssClasses = () => {
|
|
5024
|
+
const cssClasses = [];
|
|
5025
|
+
cssClasses.push(styles$F.row);
|
|
5026
|
+
className && cssClasses.push(className);
|
|
5027
|
+
direction && cssClasses.push(`flex-${direction}`);
|
|
5028
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5029
|
+
};
|
|
5030
|
+
return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
5031
|
+
};
|
|
5032
|
+
|
|
5033
|
+
var css_248z$E = ".Form-module_form__h9CkF > div {\n margin-bottom: 10px;\n}\n.Form-module_form__h9CkF :last-child {\n margin-bottom: 0;\n}";
|
|
5034
|
+
var styles$E = {"form":"Form-module_form__h9CkF"};
|
|
5035
|
+
styleInject(css_248z$E);
|
|
5036
|
+
|
|
5037
|
+
var css_248z$D = ".FormError-module_isInvalid__tO1Sw {\n width: 100%;\n margin-top: 0.25rem;\n font-size: 0.875em;\n color: #dc3545;\n}";
|
|
5038
|
+
var styles$D = {"isInvalid":"FormError-module_isInvalid__tO1Sw"};
|
|
5039
|
+
styleInject(css_248z$D);
|
|
5040
|
+
|
|
5041
|
+
const FormError = (props) => {
|
|
5042
|
+
const { className = styles$D.isInvalid, errors = [] } = props;
|
|
5043
|
+
return (jsx(Fragment$2, { children: errors &&
|
|
5044
|
+
jsx("div", { className: className, children: errors.map(e => jsx("div", { children: e.message }, e.validator)) }) }));
|
|
5045
|
+
};
|
|
5046
|
+
|
|
5047
|
+
const FormGroup = (props) => {
|
|
5048
|
+
const { children, className } = props;
|
|
5049
|
+
return jsx("div", { className: className, children: children });
|
|
5050
|
+
};
|
|
5051
|
+
|
|
5052
|
+
const FormHint = (props) => {
|
|
5053
|
+
const { children, className = 'form-text text-muted' } = props;
|
|
5054
|
+
const getCssClasses = () => {
|
|
5055
|
+
const cssClasses = [];
|
|
5056
|
+
className && cssClasses.push(className);
|
|
5057
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5058
|
+
};
|
|
5059
|
+
return (jsx("small", { className: getCssClasses(), children: children }));
|
|
5060
|
+
};
|
|
5061
|
+
|
|
5062
|
+
const FileInput = (props) => {
|
|
5063
|
+
const { id, className, children, name, multiple = false, accept, disabled, onChange, readOnly, value, deletable = false, ...rest } = props;
|
|
5064
|
+
const inputFileElement = useRef(null);
|
|
5065
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5066
|
+
const [model, setModel] = useState(value);
|
|
5067
|
+
const [fileList, setFileList] = useState();
|
|
5068
|
+
const getCssClasses = () => {
|
|
5069
|
+
const cssClasses = [];
|
|
5070
|
+
className && cssClasses.push(className);
|
|
5071
|
+
return cssClasses.filter(r => r).join(' ');
|
|
5072
|
+
};
|
|
5073
|
+
const handleOnChange = (event) => {
|
|
5074
|
+
const values = event.target.files;
|
|
5075
|
+
setFileList(values);
|
|
5076
|
+
onChange && onChange(event);
|
|
5077
|
+
};
|
|
5078
|
+
const handleOnDelete = () => {
|
|
5079
|
+
alert('coming soon');
|
|
5080
|
+
};
|
|
5081
|
+
return (jsxs("div", { className: "d-flex align-items-start", children: [jsx(Button, { className: "flex-wrap", disabled: disabled, onClick: () => inputFileElement.current?.click(), children: children }), jsx("div", { className: "d-flex align-items-center flex-wrap ml-1", children: fileList && Array.from(fileList).map((file) => jsx(Chip, { isDeletable: deletable, onDelete: () => handleOnDelete(), children: file.name }, file.name)) }), jsx("input", { type: "file", ref: inputFileElement, className: getCssClasses(), id: id, name: name, multiple: multiple, accept: accept, disabled: disabled, readOnly: readOnly, hidden: true, onChange: handleOnChange, value: model, ...rest })] }));
|
|
5082
|
+
};
|
|
5083
|
+
|
|
5084
|
+
var css_248z$C = ".Select-module_selectContainer__DHFDZ {\n position: relative;\n}\n\n.Select-module_select__Fbn38 {\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n align-items: center;\n min-height: calc(1.5em + 0.75rem + 2px);\n height: auto;\n display: flex;\n flex-wrap: wrap;\n}\n.Select-module_select__Fbn38 > span {\n flex: 1;\n}\n.Select-module_select__Fbn38:hover {\n cursor: pointer;\n}\n.Select-module_select__Fbn38:focus:not(.Select-module_select__Fbn38.Select-module_disabled__2XXut) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut, .Select-module_select__Fbn38.Select-module_readOnly__VoTER {\n background-color: #e9ecef;\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut:hover {\n cursor: not-allowed;\n}\n.Select-module_select__Fbn38.Select-module_readOnly__VoTER:hover {\n cursor: inherit;\n}\n\n.Select-module_chipContainer__1poFF {\n gap: 10px;\n flex: 1;\n display: inline-flex;\n flex-wrap: wrap;\n}\n\n.Select-module_selectMenu__8y4kQ {\n background-color: var(--light);\n position: absolute;\n box-shadow: var(--shadow);\n border-radius: var(--borderRadius);\n width: 100%;\n top: 2px;\n z-index: 1112;\n max-height: 280px;\n overflow: auto;\n}";
|
|
5085
|
+
var styles$C = {"selectContainer":"Select-module_selectContainer__DHFDZ","select":"Select-module_select__Fbn38","disabled":"Select-module_disabled__2XXut","readOnly":"Select-module_readOnly__VoTER","chipContainer":"Select-module_chipContainer__1poFF","selectMenu":"Select-module_selectMenu__8y4kQ"};
|
|
5086
|
+
styleInject(css_248z$C);
|
|
5087
|
+
|
|
5088
|
+
const Select = (props) => {
|
|
5089
|
+
const { id, className, options = [], value, multiple, multipleMaxCountItems = 5, disabled, readOnly, onChange, onKeyDown } = props;
|
|
5090
|
+
const [model, setModel] = useState('');
|
|
5091
|
+
const [hoverIndex, setHoverIndex] = useState(null);
|
|
5092
|
+
const [isShow, setIsShow] = useState(false);
|
|
5093
|
+
const [selectedOptions, setSelectedOptions] = useState([]);
|
|
5094
|
+
const selectConainter = useRef(null);
|
|
5095
|
+
const getCssClass = () => {
|
|
5096
|
+
const cssClasses = [];
|
|
5097
|
+
className && cssClasses.push(className);
|
|
5098
|
+
disabled && cssClasses.push(styles$C['disabled']);
|
|
5099
|
+
readOnly && cssClasses.push(styles$C['readOnly']);
|
|
5100
|
+
cssClasses.push(styles$C.select);
|
|
5101
|
+
return cssClasses.filter(r => r).join(' ');
|
|
5102
|
+
};
|
|
5103
|
+
useEffect(() => {
|
|
5104
|
+
const newValue = value ? value : '';
|
|
5105
|
+
writeValue(newValue);
|
|
5106
|
+
if (newValue) {
|
|
5107
|
+
const option = options.find(o => o.value === newValue);
|
|
5108
|
+
if (option) {
|
|
5109
|
+
setHoverIndex(options.indexOf(option));
|
|
5110
|
+
}
|
|
5111
|
+
}
|
|
5112
|
+
}, [value, options]);
|
|
5113
|
+
useEffect(() => {
|
|
5114
|
+
if (hoverIndex) {
|
|
5115
|
+
scrollIntoView(hoverIndex);
|
|
5116
|
+
}
|
|
5117
|
+
}, [hoverIndex, isShow]);
|
|
5118
|
+
const scrollIntoView = (index) => {
|
|
5119
|
+
const htmlListItem = selectConainter.current?.querySelector(`#list-item-${index}`);
|
|
5120
|
+
if (htmlListItem) {
|
|
5121
|
+
htmlListItem?.scrollIntoView({ block: 'end', behavior: 'smooth' });
|
|
5122
|
+
}
|
|
5123
|
+
};
|
|
5124
|
+
const writeValue = (val) => setModel(val);
|
|
5125
|
+
useEffect(() => {
|
|
5126
|
+
if (!multiple) {
|
|
5127
|
+
const newOption = options.find(o => o.value === model);
|
|
5128
|
+
if (newOption) {
|
|
5129
|
+
setSelectedOptions([newOption]);
|
|
5130
|
+
}
|
|
5131
|
+
}
|
|
5132
|
+
else {
|
|
5133
|
+
const filteredOptions = options.filter(o => model.indexOf(o.value) >= 0);
|
|
5134
|
+
setSelectedOptions([...filteredOptions]);
|
|
5135
|
+
}
|
|
5136
|
+
}, [model, multiple]);
|
|
5137
|
+
const handleOnClick = (option) => {
|
|
5138
|
+
let newValue = multiple ? [] : '';
|
|
5139
|
+
if (!multiple) {
|
|
5140
|
+
if (model !== option.value) {
|
|
5141
|
+
newValue = option.value;
|
|
5142
|
+
onChange && onChange(newValue);
|
|
5143
|
+
}
|
|
5144
|
+
hide();
|
|
5145
|
+
}
|
|
5146
|
+
else {
|
|
5147
|
+
const selectedOption = selectedOptions.find(o => o.value === option.value);
|
|
5148
|
+
if (selectedOption) {
|
|
5149
|
+
newValue = selectedOptions.filter(o => o.value !== option.value).map(o => o.value);
|
|
5150
|
+
}
|
|
5151
|
+
else {
|
|
5152
|
+
newValue = newValue.concat(selectedOptions.map(o => o.value));
|
|
5153
|
+
newValue.push(option.value);
|
|
5154
|
+
}
|
|
5155
|
+
onChange && onChange(newValue);
|
|
5156
|
+
}
|
|
5157
|
+
writeValue(newValue);
|
|
5158
|
+
};
|
|
5159
|
+
const show = () => {
|
|
5160
|
+
if (!disabled && !readOnly) {
|
|
5161
|
+
setIsShow(true);
|
|
5162
|
+
}
|
|
5163
|
+
};
|
|
5164
|
+
const hide = () => setIsShow(false);
|
|
5165
|
+
const isActive = (option) => {
|
|
5166
|
+
return selectedOptions.indexOf(option) >= 0 || hoverIndex === options.indexOf(option);
|
|
5167
|
+
};
|
|
5168
|
+
const renderSingleViewModel = () => {
|
|
5169
|
+
let result = null;
|
|
5170
|
+
if (selectedOptions.length > 0) {
|
|
5171
|
+
result = jsx("span", { children: selectedOptions[0].label });
|
|
5172
|
+
}
|
|
5173
|
+
return result;
|
|
5174
|
+
};
|
|
5175
|
+
const renderMultipleViewModel = () => {
|
|
5176
|
+
let result = null;
|
|
5177
|
+
if (selectedOptions.length <= multipleMaxCountItems && selectedOptions.length > 0) {
|
|
5178
|
+
result = selectedOptions
|
|
5179
|
+
.map(option => jsx(Chip, { color: COLOR.primary, isDeletable: true, onDelete: (e) => handleOnDelete(e, option), children: option.label }, option.value));
|
|
5180
|
+
}
|
|
5181
|
+
else {
|
|
5182
|
+
result = jsxs("span", { children: [selectedOptions.length, " Items selected"] });
|
|
5183
|
+
}
|
|
5184
|
+
return result;
|
|
5185
|
+
};
|
|
5186
|
+
const handleOnDelete = (event, option) => {
|
|
5187
|
+
event.stopPropagation();
|
|
5188
|
+
handleOnClick(option);
|
|
5189
|
+
};
|
|
5190
|
+
// TODO - extract with wrapper?
|
|
5191
|
+
const handleOnKeyDown = (e) => {
|
|
5192
|
+
if (isShow) {
|
|
5193
|
+
onKeyDown && onKeyDown(e);
|
|
5194
|
+
switch (e.code) {
|
|
5195
|
+
case 'Escape':
|
|
5196
|
+
hide();
|
|
5197
|
+
break;
|
|
5198
|
+
case 'ArrowDown':
|
|
5199
|
+
if (hoverIndex) {
|
|
5200
|
+
setHoverIndex(hoverIndex + 1);
|
|
5201
|
+
}
|
|
5202
|
+
break;
|
|
5203
|
+
case 'ArrowUp':
|
|
5204
|
+
// TODO
|
|
5205
|
+
if (hoverIndex) {
|
|
5206
|
+
setHoverIndex(hoverIndex - 1);
|
|
5207
|
+
}
|
|
5208
|
+
break;
|
|
5209
|
+
case 'Enter':
|
|
5210
|
+
if (hoverIndex) {
|
|
5211
|
+
const option = options[hoverIndex];
|
|
5212
|
+
if (option) {
|
|
5213
|
+
handleOnClick(option);
|
|
5214
|
+
}
|
|
5215
|
+
}
|
|
5216
|
+
break;
|
|
5217
|
+
}
|
|
5218
|
+
}
|
|
5219
|
+
};
|
|
5220
|
+
return (jsxs("div", { ref: selectConainter, className: styles$C.selectContainer, children: [jsx("div", { id: id, className: getCssClass(), onClick: () => show(), tabIndex: 0, onKeyDown: (e) => handleOnKeyDown(e), children: jsxs(Fragment$1, { children: [!multiple && renderSingleViewModel(), multiple &&
|
|
5221
|
+
jsx("div", { className: styles$C.chipContainer, children: renderMultipleViewModel() }), jsx(Icon, { className: "ml-auto", children: jsx(ChevronDownSolidIcon, {}) })] }) }), isShow &&
|
|
5222
|
+
jsxs(Portal$1, { className: 'backdrop-root', children: [jsx("div", { className: styles$C.selectMenu, style: { left: selectConainter.current?.getBoundingClientRect().x, top: selectConainter.current?.getBoundingClientRect().y, width: selectConainter.current?.getBoundingClientRect().width }, children: jsx(List, { children: options && options.map((option, index) => jsxs(ListItem, { id: `list-item-${index}`, onClick: () => handleOnClick(option), active: isActive(option), children: [multiple &&
|
|
5223
|
+
jsx(Checkbox, { checked: isActive(option), onChange: () => handleOnClick(option) }), jsx(ListItemText, { primary: option.label ? option.label : option.value })] }, option.value)) }) }), jsx(Backdrop, { style: { zIndex: 1111 }, isTransparent: true, onClick: () => hide() })] })] }));
|
|
5224
|
+
};
|
|
5225
|
+
|
|
5226
|
+
var css_248z$B = ".Textarea-module_textarea__L5zqa {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n background-clip: padding-box;\n border: 2px solid var(--input-border-color);\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: var(--borderRadius);\n resize: vertical;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: 1px solid #ced4da;\n}\n.Textarea-module_textarea__L5zqa:focus:not(.Textarea-module_textarea__L5zqa.Textarea-module_disabled__OqqOF) {\n outline: none !important;\n border-color: var(--primary);\n}\n.Textarea-module_textarea__L5zqa.Textarea-module_isInvalid__JI01W {\n border-color: #dc3545;\n box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2509803922);\n}";
|
|
5227
|
+
var styles$B = {"textarea":"Textarea-module_textarea__L5zqa","disabled":"Textarea-module_disabled__OqqOF","isInvalid":"Textarea-module_isInvalid__JI01W"};
|
|
5228
|
+
styleInject(css_248z$B);
|
|
5229
|
+
|
|
5230
|
+
const Textarea = (props) => {
|
|
5231
|
+
const { className, error, ...rest } = props;
|
|
5232
|
+
const getCssClass = () => {
|
|
5233
|
+
const cssClasses = [];
|
|
5234
|
+
cssClasses.push(styles$B.textarea);
|
|
5235
|
+
className && cssClasses.push(className);
|
|
5236
|
+
error && cssClasses.push(styles$B['isInvalid']);
|
|
5237
|
+
return cssClasses.filter(r => r).join(' ');
|
|
5238
|
+
};
|
|
5239
|
+
return (jsx("textarea", { className: getCssClass(), ...rest }));
|
|
5240
|
+
};
|
|
5241
|
+
|
|
5242
|
+
var css_248z$A = ".FormInput-module_formInput__VXZip {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n -webkit-appearance: none;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n.FormInput-module_formInput__VXZip:focus:not(.FormInput-module_formInput__VXZip.FormInput-module_disabled__EjdD9) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);\n}\n.FormInput-module_formInput__VXZip.FormInput-module_isInvalid__vQDuz {\n border-color: #dc3545;\n box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2509803922);\n}";
|
|
5243
|
+
var styles$A = {"formInput":"FormInput-module_formInput__VXZip","disabled":"FormInput-module_disabled__EjdD9","isInvalid":"FormInput-module_isInvalid__vQDuz"};
|
|
5244
|
+
styleInject(css_248z$A);
|
|
5245
|
+
|
|
5246
|
+
const FormInput = (props) => {
|
|
5247
|
+
const { value, name, type, placeholder, className, isValid = true, options = [], textareaOptions, selectOptions, autoCompleteOptions, autoFocus, label, disabled = false, readonly = false, onInput, onChange, onBlur, onKeyDown } = props;
|
|
5248
|
+
const getCssClasses = () => {
|
|
5249
|
+
const cssClasses = [];
|
|
5250
|
+
cssClasses.push(styles$A.formInput);
|
|
5251
|
+
className && cssClasses.push(className);
|
|
5252
|
+
!isValid && cssClasses.push(styles$A['isInvalid']);
|
|
5253
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5254
|
+
};
|
|
5255
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5256
|
+
const handleOnInput = (value, type, name) => {
|
|
5257
|
+
onInput && onInput({ value: value, type: type, name: name });
|
|
5258
|
+
};
|
|
5259
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5260
|
+
const handleOnChange = (value, type, name) => {
|
|
5261
|
+
onChange && onChange({ value: value, type: type, name: name });
|
|
5262
|
+
};
|
|
5263
|
+
return (jsxs(Fragment$1, { children: [(type === 'text' ||
|
|
5264
|
+
type === 'date' ||
|
|
5265
|
+
type === 'datetime-local' ||
|
|
5266
|
+
type === 'email' ||
|
|
5267
|
+
type === 'number' ||
|
|
5268
|
+
type === 'password' ||
|
|
5269
|
+
type === 'color' ||
|
|
5270
|
+
type === 'time')
|
|
5271
|
+
&&
|
|
5272
|
+
jsx("input", { id: name, name: name, type: type, className: getCssClasses(), value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange((e?.target).value, type, name), onBlur: onBlur, placeholder: placeholder, readOnly: readonly, disabled: disabled, onKeyDown: onKeyDown }), type === 'file' &&
|
|
5273
|
+
jsx(FileInput, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, readOnly: readonly, disabled: disabled, onChange: (e) => handleOnChange(e.target.value, type, name), children: "choose a file" }), type === 'textarea' &&
|
|
5274
|
+
jsx(Textarea, { id: name, name: name, className: className, error: !isValid, value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange(e.target.value, type, name), placeholder: placeholder, rows: textareaOptions?.rows, style: textareaOptions?.resize !== false ? undefined : { resize: 'none' } }), type === 'select' &&
|
|
5275
|
+
jsx(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions?.multiple, onChange: (e) => handleOnChange(e, type, name), options: options }), type === 'autocomplete' &&
|
|
5276
|
+
jsx(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions?.openOnFocus, onChange: (e) => handleOnChange(e, type, name), onSelect: (e) => handleOnChange(e.value, type, name), options: options }), type === 'checkbox' &&
|
|
5277
|
+
jsx(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''), onChange: (e) => handleOnChange((e?.target).checked, type, name), checked: value }), type === 'radio' &&
|
|
5278
|
+
jsx(Fragment$1, { children: options.map((option) => jsxs("div", { className: "form-check", children: [jsx("input", { id: option.id ? option.id : option.value, name: name, type: "radio", className: "form-check-input", onChange: (e) => handleOnChange((e?.target).value, type, name), value: option.value, checked: value === option.value, onKeyDown: onKeyDown }), jsx("label", { className: "form-check-label", htmlFor: option.id, children: option.label })] }, option.id)) })] }));
|
|
5279
|
+
};
|
|
5280
|
+
|
|
5281
|
+
var css_248z$z = ".FormLabel-module_formLabel__TXcHc {\n display: inline-block;\n margin-bottom: 0.5rem;\n}";
|
|
5282
|
+
var styles$z = {"formLabel":"FormLabel-module_formLabel__TXcHc"};
|
|
5283
|
+
styleInject(css_248z$z);
|
|
5284
|
+
|
|
5285
|
+
const FormLabel = ({ children, className, htmlFor, ...rest }) => {
|
|
5286
|
+
const getCssClasses = () => {
|
|
5287
|
+
const cssClasses = [];
|
|
5288
|
+
cssClasses.push(styles$z.formLabel);
|
|
5289
|
+
className && cssClasses.push(className);
|
|
5290
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5291
|
+
};
|
|
5292
|
+
return (jsx("label", { htmlFor: htmlFor, className: getCssClasses(), ...rest, children: children }));
|
|
5293
|
+
};
|
|
5294
|
+
|
|
5295
|
+
const IsEmptyValidator = (value) => value?.trim() === ''
|
|
5296
|
+
|| value === null
|
|
5297
|
+
|| value === undefined;
|
|
5298
|
+
|
|
5299
|
+
const EmailValidator = (value) => {
|
|
5300
|
+
const isInvalidEmailFormat = value.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i) === null;
|
|
5301
|
+
const isInvalid = !IsEmptyValidator(value) && isInvalidEmailFormat;
|
|
5302
|
+
return isInvalid;
|
|
5303
|
+
};
|
|
5304
|
+
|
|
5305
|
+
const IsEqualValidator = (valueA, valueB) => valueA === valueB;
|
|
5306
|
+
|
|
5307
|
+
const MaxValidator = (val, valueB) => val.length <= valueB;
|
|
5308
|
+
|
|
5309
|
+
const MinValidator = (val, minLength) => val.length >= minLength;
|
|
5310
|
+
|
|
5311
|
+
class Form extends Component {
|
|
5312
|
+
constructor(props) {
|
|
5313
|
+
super(props);
|
|
5314
|
+
this.myForm = createRef();
|
|
5315
|
+
this.state = {
|
|
5316
|
+
controls: undefined,
|
|
5317
|
+
isValid: false,
|
|
5318
|
+
isChanged: false,
|
|
5319
|
+
isSubmitted: false,
|
|
5320
|
+
submitOnEnter: props.submitOnEnter !== undefined ? props.submitOnEnter : true,
|
|
5321
|
+
};
|
|
5322
|
+
}
|
|
5323
|
+
getCssClasses() {
|
|
5324
|
+
const cssClasses = [];
|
|
5325
|
+
cssClasses.push(styles$E.form);
|
|
5326
|
+
this.props.className && cssClasses.push(this.props.className);
|
|
5327
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5328
|
+
}
|
|
5329
|
+
static getDerivedStateFromProps(nextProps, state) {
|
|
5330
|
+
if (!state.controls && nextProps.controls) {
|
|
5331
|
+
return { controls: nextProps.controls };
|
|
5332
|
+
}
|
|
5333
|
+
return null;
|
|
5334
|
+
}
|
|
5335
|
+
handleChange() {
|
|
5336
|
+
// get value by myForm instead of getControl?
|
|
5337
|
+
if (this.state.isChanged || this.state.isSubmitted) {
|
|
5338
|
+
const keys = Object.keys(this.state.controls);
|
|
5339
|
+
const values = keys.reduce((obj, f) => {
|
|
5340
|
+
const control = this.getControl(f);
|
|
5341
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5342
|
+
const newValue = (control.type === 'date' || control.type === 'datetime-local') &&
|
|
5343
|
+
control.value &&
|
|
5344
|
+
isValidDate(control.value)
|
|
5345
|
+
? new Date(control.value).toISOString()
|
|
5346
|
+
: control.value;
|
|
5347
|
+
return {
|
|
5348
|
+
...obj,
|
|
5349
|
+
[f]: newValue,
|
|
5350
|
+
};
|
|
5351
|
+
}, {});
|
|
5352
|
+
if (this.state.isValid && this.state.isSubmitted) {
|
|
5353
|
+
this.props.onSubmit && this.props.onSubmit(values);
|
|
5354
|
+
}
|
|
5355
|
+
this.props.onChange && this.props.onChange(values);
|
|
5356
|
+
this.setState({ isChanged: false, isSubmitted: false });
|
|
5357
|
+
}
|
|
5358
|
+
}
|
|
5359
|
+
// extract to service?
|
|
5360
|
+
validateField(fieldValue, fieldValidators) {
|
|
5361
|
+
const errors = [];
|
|
5362
|
+
if (fieldValidators) {
|
|
5363
|
+
for (const validator of fieldValidators) {
|
|
5364
|
+
const validatorSplitted = validator.split(':');
|
|
5365
|
+
const validatorName = validatorSplitted[0];
|
|
5366
|
+
const validatorParam = validatorSplitted.length > 1 ? validatorSplitted[1] : null;
|
|
5367
|
+
switch (validatorName) {
|
|
5368
|
+
case 'required':
|
|
5369
|
+
if (IsEmptyValidator(fieldValue)) {
|
|
5370
|
+
errors.push({ validator: validatorName, message: 'This field is required' });
|
|
5371
|
+
}
|
|
5372
|
+
break;
|
|
5373
|
+
case 'email':
|
|
5374
|
+
if (EmailValidator(fieldValue)) {
|
|
5375
|
+
errors.push({ validator: validatorName, message: 'Email format is wrong' });
|
|
5376
|
+
}
|
|
5377
|
+
break;
|
|
5378
|
+
case 'min':
|
|
5379
|
+
if (!MinValidator(fieldValue, parseInt(validatorParam))) {
|
|
5380
|
+
errors.push({ validator: validatorName, message: `Minimum number of ${validatorParam} characters not met` });
|
|
5381
|
+
}
|
|
5382
|
+
break;
|
|
5383
|
+
case 'max':
|
|
5384
|
+
if (!MaxValidator(fieldValue, parseInt(validatorParam))) {
|
|
5385
|
+
errors.push({ validator: validatorName, message: `Maximum number of ${validatorParam} characters exceeded` });
|
|
5386
|
+
}
|
|
5387
|
+
break;
|
|
5388
|
+
case 'match':
|
|
5389
|
+
if (validatorParam) {
|
|
5390
|
+
const matchControl = this.getControl(validatorParam);
|
|
5391
|
+
if (matchControl) {
|
|
5392
|
+
if (!IsEqualValidator(fieldValue, matchControl.value)) {
|
|
5393
|
+
errors.push({ validator: validatorName, message: 'Values do not match' });
|
|
5394
|
+
}
|
|
5395
|
+
}
|
|
5396
|
+
else {
|
|
5397
|
+
console.error(`Form: Field ${validatorParam} not found`);
|
|
5398
|
+
}
|
|
5399
|
+
}
|
|
5400
|
+
break;
|
|
5401
|
+
}
|
|
5402
|
+
}
|
|
5403
|
+
}
|
|
5404
|
+
return errors;
|
|
5405
|
+
}
|
|
5406
|
+
handleInputChange(name, value) {
|
|
5407
|
+
const field = this.getControl(name);
|
|
5408
|
+
field.value = value;
|
|
5409
|
+
// redundant mit handleOnBlur
|
|
5410
|
+
field.isDirty = true;
|
|
5411
|
+
field.errors = this.validateField(field.value, field.validators);
|
|
5412
|
+
field.isValid = field.errors.length === 0;
|
|
5413
|
+
const newControls = { ...this.state.controls };
|
|
5414
|
+
newControls[name] = field;
|
|
5415
|
+
this.setState({ controls: newControls, isChanged: true }, () => this.handleChange());
|
|
5416
|
+
}
|
|
5417
|
+
handleOnBlur(e) {
|
|
5418
|
+
if (this.props.validateOnBlur) {
|
|
5419
|
+
const { name } = e.target;
|
|
5420
|
+
const field = this.getControl(name);
|
|
5421
|
+
field.isDirty = true;
|
|
5422
|
+
field.errors = this.validateField(field.value, field.validators);
|
|
5423
|
+
field.isValid = field.errors.length === 0;
|
|
5424
|
+
const controls = this.state.controls;
|
|
5425
|
+
if (controls) {
|
|
5426
|
+
controls[name] = field;
|
|
5427
|
+
this.setState({ controls: controls, isChanged: true }, () => this.handleChange());
|
|
5428
|
+
}
|
|
5429
|
+
}
|
|
5430
|
+
}
|
|
5431
|
+
isRequired(fieldName) {
|
|
5432
|
+
let result = false;
|
|
5433
|
+
result = this.getControl(fieldName).validators.indexOf('required') >= 0;
|
|
5434
|
+
return result;
|
|
5435
|
+
}
|
|
5436
|
+
isInvalid(fieldName) {
|
|
5437
|
+
let result = false;
|
|
5438
|
+
const field = this.getControl(fieldName);
|
|
5439
|
+
result = field.isDirty && !field.isValid;
|
|
5440
|
+
return result;
|
|
5441
|
+
}
|
|
5442
|
+
getControl(name) {
|
|
5443
|
+
return this.state.controls[name];
|
|
5444
|
+
}
|
|
5445
|
+
renderLabel(fieldKey, label, labelClassName = 'form-label') {
|
|
5446
|
+
const cssClasses = [labelClassName, this.isRequired(fieldKey) ? 'required' : undefined];
|
|
5447
|
+
return (jsx(FormLabel, { htmlFor: fieldKey, className: cssClasses.join(' '), children: label }));
|
|
5448
|
+
}
|
|
5449
|
+
handleFormSubmit() {
|
|
5450
|
+
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
5451
|
+
const field = this.getControl(fieldKey);
|
|
5452
|
+
// redundant mit handleBlur
|
|
5453
|
+
field.isDirty = true;
|
|
5454
|
+
field.errors = this.validateField(field.value, field.validators);
|
|
5455
|
+
field.isValid = field.errors.length === 0;
|
|
5456
|
+
}
|
|
5457
|
+
this.setState({
|
|
5458
|
+
controls: { ...this.state.controls },
|
|
5459
|
+
isSubmitted: true,
|
|
5460
|
+
isValid: Object.keys(this.state.controls)
|
|
5461
|
+
.map(f => this.getControl(f).isValid)
|
|
5462
|
+
.every(valid => valid === true),
|
|
5463
|
+
}, () => this.handleChange());
|
|
5464
|
+
}
|
|
5465
|
+
// trigger via ref
|
|
5466
|
+
handleFormReset() {
|
|
5467
|
+
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
5468
|
+
const field = this.getControl(fieldKey);
|
|
5469
|
+
field.value = '';
|
|
5470
|
+
field.isDirty = false;
|
|
5471
|
+
field.errors = [];
|
|
5472
|
+
field.isValid = field.errors.length === 0;
|
|
5473
|
+
}
|
|
5474
|
+
this.setState({
|
|
5475
|
+
controls: { ...this.state.controls },
|
|
5476
|
+
isSubmitted: false,
|
|
5477
|
+
isChanged: false,
|
|
5478
|
+
isValid: false,
|
|
5479
|
+
});
|
|
5480
|
+
}
|
|
5481
|
+
handleOnKeyDown(e) {
|
|
5482
|
+
if (e.key === 'Enter') {
|
|
5483
|
+
e.preventDefault();
|
|
5484
|
+
this.state.submitOnEnter && this.handleFormSubmit();
|
|
5485
|
+
}
|
|
5486
|
+
}
|
|
5487
|
+
destroy() {
|
|
5488
|
+
this.setState({ controls: {}, isValid: false, isChanged: false, isSubmitted: false });
|
|
5489
|
+
}
|
|
5490
|
+
getFormGroupCssClass(fieldKey) {
|
|
5491
|
+
return this.getControl(fieldKey).config.formGroupClassName;
|
|
5492
|
+
}
|
|
5493
|
+
render() {
|
|
5494
|
+
return (jsx("form", { className: this.getCssClasses(), ref: this.myForm, children: this.state &&
|
|
5495
|
+
this.state.controls &&
|
|
5496
|
+
Object.keys(this.state.controls).map(fieldKey => {
|
|
5497
|
+
return (jsxs(FormGroup, { className: this.getFormGroupCssClass(fieldKey), children: [this.getControl(fieldKey).config.labelPosition !== 'behind' &&
|
|
5498
|
+
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
5499
|
+
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName), jsx(FormInput, { autoFocus: this.getControl(fieldKey).config.autoFocus, className: this.getControl(fieldKey).config.formControlClassName, isValid: !this.isInvalid(fieldKey), label: this.getControl(fieldKey).config.label, name: fieldKey, options: this.getControl(fieldKey).config.options, placeholder: this.getControl(fieldKey).config.placeholder, textareaOptions: this.getControl(fieldKey).config.textareaOptions, selectOptions: this.getControl(fieldKey).config.selectOptions, autoCompleteOptions: this.getControl(fieldKey).config.autoCompleteOptions, type: this.getControl(fieldKey).type, value: this.getControl(fieldKey).value, disabled: this.getControl(fieldKey).config.disabled, readonly: this.getControl(fieldKey).config.readonly, onChange: ({ name, value }) => this.handleInputChange(name, value), onBlur: (e) => this.handleOnBlur(e), onKeyDown: (e) => this.handleOnKeyDown(e) }), this.getControl(fieldKey).config.labelPosition === 'behind' &&
|
|
5500
|
+
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
5501
|
+
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName), this.getControl(fieldKey).config.hint && (jsx(FormHint, { children: this.getControl(fieldKey).config.hint })), this.getControl(fieldKey).errors && jsx(FormError, { errors: this.getControl(fieldKey).errors })] }, fieldKey));
|
|
5502
|
+
}) }));
|
|
5503
|
+
}
|
|
5504
|
+
}
|
|
5505
|
+
function isValidDate(dateObject) {
|
|
5506
|
+
return new Date(dateObject).toString() !== 'Invalid Date';
|
|
5507
|
+
}
|
|
5508
|
+
|
|
5509
|
+
class FormControl {
|
|
5510
|
+
constructor(
|
|
5511
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5512
|
+
value, validators = [], type, config) {
|
|
5513
|
+
this.value = value;
|
|
5514
|
+
this.validators = validators;
|
|
5515
|
+
this.type = type;
|
|
5516
|
+
this.config = config;
|
|
5517
|
+
this.errors = [];
|
|
5518
|
+
this.isValid = false;
|
|
5519
|
+
this.isDirty = false;
|
|
5520
|
+
}
|
|
5521
|
+
}
|
|
5688
5522
|
|
|
5689
|
-
const
|
|
5690
|
-
const {
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5523
|
+
const DaySelect = (props) => {
|
|
5524
|
+
const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange } = props;
|
|
5525
|
+
useEffect(() => {
|
|
5526
|
+
init();
|
|
5527
|
+
}, [month, year]);
|
|
5528
|
+
const init = () => {
|
|
5529
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
5530
|
+
const newDays = [];
|
|
5531
|
+
for (let i = 1; i <= daysInMonth; i++) {
|
|
5532
|
+
newDays.push({ value: i.toString(), label: i.toString() });
|
|
5533
|
+
}
|
|
5534
|
+
setDayOptions(newDays);
|
|
5535
|
+
};
|
|
5536
|
+
const [value, setValue] = useState(day);
|
|
5537
|
+
const [dayOptions, setDayOptions] = useState();
|
|
5538
|
+
const getCssClasses = () => {
|
|
5539
|
+
const cssClasses = [];
|
|
5540
|
+
className && cssClasses.push(className);
|
|
5541
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5542
|
+
};
|
|
5694
5543
|
const handleOnChange = (e) => {
|
|
5695
|
-
|
|
5544
|
+
setValue(e);
|
|
5696
5545
|
onChange && onChange(e);
|
|
5697
5546
|
};
|
|
5698
|
-
return (
|
|
5547
|
+
return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: dayOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: value.toString() }));
|
|
5699
5548
|
};
|
|
5700
5549
|
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
const
|
|
5706
|
-
const { children, className, position = 'left', permanent = false, target = document.body, shadow = true, onClickBackdrop, ...rest } = props;
|
|
5550
|
+
const MonthSelect = (props) => {
|
|
5551
|
+
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
5552
|
+
const { className, value = new Date().getMonth(), id, name, disabled, onChange } = props;
|
|
5553
|
+
const [newValue, setNewValue] = useState(value);
|
|
5554
|
+
const [monthOptions, setMonthOptions] = useState();
|
|
5707
5555
|
useEffect(() => {
|
|
5708
|
-
|
|
5709
|
-
return () => {
|
|
5710
|
-
document.body.classList.remove(styles$y.drawerOpen);
|
|
5711
|
-
};
|
|
5556
|
+
setMonthOptions(months.map((m, index) => ({ value: index.toString(), label: m })));
|
|
5712
5557
|
}, []);
|
|
5713
|
-
const handleClickBackdrop = () => {
|
|
5714
|
-
onClickBackdrop && onClickBackdrop();
|
|
5715
|
-
};
|
|
5716
|
-
return (React.createElement(Portal$1, { className: 'drawer-root', target: target },
|
|
5717
|
-
React.createElement(DrawerContent, { className: className, position: position, permanent: permanent, shadow: shadow, ...rest }, children),
|
|
5718
|
-
!permanent && React.createElement(Backdrop, { onClick: handleClickBackdrop })));
|
|
5719
|
-
};
|
|
5720
|
-
const DrawerContent = (props) => {
|
|
5721
|
-
const { children, className, position = 'left', permanent = false, shadow, ...rest } = props;
|
|
5722
5558
|
const getCssClasses = () => {
|
|
5723
5559
|
const cssClasses = [];
|
|
5724
|
-
cssClasses.push(styles$y.drawer);
|
|
5725
|
-
shadow && cssClasses.push(styles$y.shadow);
|
|
5726
|
-
!!permanent && cssClasses.push(styles$y['permanent']);
|
|
5727
|
-
position === 'left' ? cssClasses.push(styles$y['left']) : cssClasses.push(styles$y['right']);
|
|
5728
5560
|
className && cssClasses.push(className);
|
|
5729
5561
|
return cssClasses.filter(css => css).join(' ');
|
|
5730
5562
|
};
|
|
5731
|
-
const
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
};
|
|
5735
|
-
const getStyles = () => {
|
|
5736
|
-
return !permanent ? positionStyles[position] : undefined;
|
|
5563
|
+
const handleOnChange = (e) => {
|
|
5564
|
+
setNewValue(e);
|
|
5565
|
+
onChange && onChange(e);
|
|
5737
5566
|
};
|
|
5738
|
-
return (
|
|
5567
|
+
return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: monthOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
5739
5568
|
};
|
|
5740
5569
|
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
const MenuBody = (props) => {
|
|
5746
|
-
const { parentRef, children, className, shadow = true, menuPosition = 'left', onClickBackdrop } = props;
|
|
5747
|
-
const [popperInstance, setPopperInstance] = useState();
|
|
5748
|
-
const menuBodyRef = useRef(null);
|
|
5570
|
+
const YearSelect = (props) => {
|
|
5571
|
+
const { className, from = 1970, to = new Date().getFullYear().toString(), value = new Date().getFullYear().toString(), id, name, disabled, onChange } = props;
|
|
5572
|
+
const [newValue, setNewValue] = useState(value.toString());
|
|
5573
|
+
const [years, setYears] = useState();
|
|
5749
5574
|
useEffect(() => {
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
modifiers: [
|
|
5754
|
-
{
|
|
5755
|
-
name: 'offset',
|
|
5756
|
-
options: {
|
|
5757
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5758
|
-
offset: ({ placement, popper }) => {
|
|
5759
|
-
if (placement === 'left-start') {
|
|
5760
|
-
return [0, -popper.width]; // y, x
|
|
5761
|
-
}
|
|
5762
|
-
if (placement === 'right-start') {
|
|
5763
|
-
return [0, -popper.width];
|
|
5764
|
-
}
|
|
5765
|
-
return [];
|
|
5766
|
-
},
|
|
5767
|
-
},
|
|
5768
|
-
},
|
|
5769
|
-
]
|
|
5770
|
-
});
|
|
5771
|
-
setPopperInstance(popperInstance);
|
|
5772
|
-
}
|
|
5773
|
-
else {
|
|
5774
|
-
popperInstance?.destroy();
|
|
5575
|
+
const newYears = [];
|
|
5576
|
+
for (let i = from; i <= to; i++) {
|
|
5577
|
+
newYears.push({ value: i.toString(), label: i.toString() });
|
|
5775
5578
|
}
|
|
5776
|
-
|
|
5579
|
+
setYears(newYears.reverse());
|
|
5580
|
+
}, [from, to]);
|
|
5777
5581
|
const getCssClasses = () => {
|
|
5778
5582
|
const cssClasses = [];
|
|
5779
|
-
cssClasses.push(styles$x.menuBody);
|
|
5780
|
-
shadow && cssClasses.push(styles$x.shadow);
|
|
5781
5583
|
className && cssClasses.push(className);
|
|
5782
5584
|
return cssClasses.filter(css => css).join(' ');
|
|
5783
5585
|
};
|
|
5784
|
-
const
|
|
5785
|
-
|
|
5586
|
+
const handleOnChange = (e) => {
|
|
5587
|
+
setNewValue(e);
|
|
5588
|
+
onChange && onChange(parseInt(e));
|
|
5786
5589
|
};
|
|
5787
|
-
|
|
5788
|
-
popperInstance?.destroy();
|
|
5789
|
-
});
|
|
5790
|
-
return (React.createElement(Portal$1, { className: 'menu-root' },
|
|
5791
|
-
React.createElement("div", { ref: menuBodyRef, className: getCssClasses() },
|
|
5792
|
-
React.createElement(List, null, children)),
|
|
5793
|
-
React.createElement(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })));
|
|
5590
|
+
return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: years, onChange: handleOnChange, disabled: disabled, value: newValue }));
|
|
5794
5591
|
};
|
|
5795
5592
|
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5593
|
+
var DATEMODE;
|
|
5594
|
+
(function (DATEMODE) {
|
|
5595
|
+
DATEMODE[DATEMODE["YEAR"] = 0] = "YEAR";
|
|
5596
|
+
DATEMODE[DATEMODE["MONTH"] = 1] = "MONTH";
|
|
5597
|
+
DATEMODE[DATEMODE["DAY"] = 2] = "DAY";
|
|
5598
|
+
})(DATEMODE || (DATEMODE = {}));
|
|
5599
|
+
const DateSelect = (props) => {
|
|
5600
|
+
const { className, value = new Date(), disabled, yearConfig, onChange } = props;
|
|
5800
5601
|
const getCssClasses = () => {
|
|
5801
5602
|
const cssClasses = [];
|
|
5603
|
+
cssClasses.push('row');
|
|
5802
5604
|
className && cssClasses.push(className);
|
|
5803
5605
|
return cssClasses.filter(css => css).join(' ');
|
|
5804
5606
|
};
|
|
5805
|
-
const
|
|
5806
|
-
|
|
5607
|
+
const [currDate, setCurrDate] = useState(value);
|
|
5608
|
+
const handleOnChange = (e, mode) => {
|
|
5609
|
+
const currYear = mode === DATEMODE.YEAR ? e : currDate.getFullYear();
|
|
5610
|
+
const currMonth = mode === DATEMODE.MONTH ? e : currDate.getMonth();
|
|
5611
|
+
const currday = mode === DATEMODE.DAY ? e : currDate.getDate();
|
|
5612
|
+
const newDate = new Date(currYear, currMonth, currday);
|
|
5613
|
+
setCurrDate(newDate);
|
|
5614
|
+
onChange && onChange(newDate);
|
|
5807
5615
|
};
|
|
5808
|
-
return (
|
|
5809
|
-
React.createElement("div", { ref: toggleContainerRef }, toggle),
|
|
5810
|
-
open &&
|
|
5811
|
-
React.createElement(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop }, children)));
|
|
5616
|
+
return (jsxs(Row, { className: getCssClasses(), children: [jsxs(Column, { children: [jsx(FormLabel, { children: "Year" }), jsx(YearSelect, { value: currDate.getFullYear(), disabled: disabled, from: yearConfig?.from, to: yearConfig?.to, onChange: (e) => handleOnChange(e, DATEMODE.YEAR) })] }), jsxs(Column, { children: [jsx(FormLabel, { children: "Month" }), jsx(MonthSelect, { value: currDate.getMonth(), disabled: disabled, onChange: (e) => handleOnChange(e, DATEMODE.MONTH) })] }), jsxs(Column, { children: [jsx(FormLabel, { children: "Day" }), jsx(DaySelect, { day: currDate.getDate(), month: currDate.getMonth(), year: currDate.getFullYear(), disabled: disabled, onChange: (e) => handleOnChange(e, DATEMODE.DAY) })] })] }));
|
|
5812
5617
|
};
|
|
5813
5618
|
|
|
5814
|
-
|
|
5815
|
-
|
|
5619
|
+
var css_248z$y = ".Drawer-module_drawer__kdQCk {\n height: 100%;\n z-index: 1101;\n bottom: 0;\n position: fixed;\n background: white;\n min-width: 320px;\n overflow-y: auto;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_permanent__c-y8y {\n position: inherit;\n z-index: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_left__loQVO {\n order: 0;\n left: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_right__sJ3mZ {\n order: 2;\n right: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_shadow__Myo3n {\n box-shadow: var(--shadow);\n}\n\n.Drawer-module_drawerOpen__07ptP {\n overflow: hidden;\n}";
|
|
5620
|
+
var styles$y = {"drawer":"Drawer-module_drawer__kdQCk","permanent":"Drawer-module_permanent__c-y8y","left":"Drawer-module_left__loQVO","right":"Drawer-module_right__sJ3mZ","shadow":"Drawer-module_shadow__Myo3n","drawerOpen":"Drawer-module_drawerOpen__07ptP"};
|
|
5621
|
+
styleInject(css_248z$y);
|
|
5622
|
+
|
|
5623
|
+
const Drawer = (props) => {
|
|
5624
|
+
const { children, className, position = 'left', permanent = false, target = document.body, shadow = true, onClickBackdrop, ...rest } = props;
|
|
5625
|
+
useEffect(() => {
|
|
5626
|
+
document.body.classList.add(styles$y.drawerOpen);
|
|
5627
|
+
return () => {
|
|
5628
|
+
document.body.classList.remove(styles$y.drawerOpen);
|
|
5629
|
+
};
|
|
5630
|
+
}, []);
|
|
5631
|
+
const handleClickBackdrop = () => {
|
|
5632
|
+
onClickBackdrop && onClickBackdrop();
|
|
5633
|
+
};
|
|
5634
|
+
return (jsxs(Portal$1, { className: 'drawer-root', target: target, children: [jsx(DrawerContent, { className: className, position: position, permanent: permanent, shadow: shadow, ...rest, children: children }), !permanent && jsx(Backdrop, { onClick: handleClickBackdrop })] }));
|
|
5635
|
+
};
|
|
5636
|
+
const DrawerContent = (props) => {
|
|
5637
|
+
const { children, className, position = 'left', permanent = false, shadow, ...rest } = props;
|
|
5816
5638
|
const getCssClasses = () => {
|
|
5817
5639
|
const cssClasses = [];
|
|
5640
|
+
cssClasses.push(styles$y.drawer);
|
|
5641
|
+
shadow && cssClasses.push(styles$y.shadow);
|
|
5642
|
+
!!permanent && cssClasses.push(styles$y['permanent']);
|
|
5643
|
+
position === 'left' ? cssClasses.push(styles$y['left']) : cssClasses.push(styles$y['right']);
|
|
5644
|
+
className && cssClasses.push(className);
|
|
5818
5645
|
return cssClasses.filter(css => css).join(' ');
|
|
5819
5646
|
};
|
|
5820
|
-
const
|
|
5821
|
-
|
|
5822
|
-
|
|
5647
|
+
const positionStyles = {
|
|
5648
|
+
left: { left: '0px' },
|
|
5649
|
+
right: { right: '0px' }
|
|
5823
5650
|
};
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
return children;
|
|
5651
|
+
const getStyles = () => {
|
|
5652
|
+
return !permanent ? positionStyles[position] : undefined;
|
|
5653
|
+
};
|
|
5654
|
+
return (jsx("div", { className: getCssClasses(), style: getStyles(), ...rest, children: children }));
|
|
5829
5655
|
};
|
|
5830
5656
|
|
|
5831
|
-
var css_248z$
|
|
5832
|
-
var styles$
|
|
5833
|
-
styleInject(css_248z$
|
|
5834
|
-
|
|
5835
|
-
const MenuDivider = () => React.createElement("div", { className: styles$w.menuItemDivider });
|
|
5836
|
-
|
|
5837
|
-
var css_248z$v = ".ExpansionPanelContent-module_expansionPanelContent__aXNfH {\n padding: 8px 16px 16px;\n}";
|
|
5838
|
-
var styles$v = {"expansionPanelContent":"ExpansionPanelContent-module_expansionPanelContent__aXNfH"};
|
|
5839
|
-
styleInject(css_248z$v);
|
|
5657
|
+
var css_248z$x = ".ExpansionPanelContent-module_expansionPanelContent__aXNfH {\n padding: 8px 16px 16px;\n}";
|
|
5658
|
+
var styles$x = {"expansionPanelContent":"ExpansionPanelContent-module_expansionPanelContent__aXNfH"};
|
|
5659
|
+
styleInject(css_248z$x);
|
|
5840
5660
|
|
|
5841
5661
|
const ExpansionPanelContent = ({ children }) => {
|
|
5842
|
-
return (
|
|
5662
|
+
return (jsx("div", { className: styles$x.expansionPanelContent, children: children }));
|
|
5843
5663
|
};
|
|
5844
5664
|
|
|
5845
|
-
var css_248z$
|
|
5846
|
-
var styles$
|
|
5847
|
-
styleInject(css_248z$
|
|
5665
|
+
var css_248z$w = ".ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq {\n display: flex;\n align-items: center;\n padding: 12px 16px;\n min-height: 48px;\n}\n.ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq:hover {\n cursor: pointer;\n background-color: var(--highlight);\n}";
|
|
5666
|
+
var styles$w = {"expansionPanelHeader":"ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq"};
|
|
5667
|
+
styleInject(css_248z$w);
|
|
5848
5668
|
|
|
5849
5669
|
const ExpansionPanelHeader = (props) => {
|
|
5850
5670
|
const { children, isExpanded, onClick } = props;
|
|
@@ -5852,15 +5672,12 @@ const ExpansionPanelHeader = (props) => {
|
|
|
5852
5672
|
e.stopPropagation();
|
|
5853
5673
|
onClick && onClick(e);
|
|
5854
5674
|
};
|
|
5855
|
-
return (
|
|
5856
|
-
children,
|
|
5857
|
-
React.createElement("span", { className: "ml-auto text-muted" },
|
|
5858
|
-
React.createElement(Icon, null, isExpanded ? React.createElement(ChevronUpSolidIcon, null) : React.createElement(ChevronDownSolidIcon, null)))));
|
|
5675
|
+
return (jsxs("div", { className: styles$w.expansionPanelHeader, onClick: handleClick, children: [children, jsx("span", { className: "ml-auto text-muted", children: jsx(Icon, { children: isExpanded ? jsx(ChevronUpSolidIcon, {}) : jsx(ChevronDownSolidIcon, {}) }) })] }));
|
|
5859
5676
|
};
|
|
5860
5677
|
|
|
5861
|
-
var css_248z$
|
|
5862
|
-
var styles$
|
|
5863
|
-
styleInject(css_248z$
|
|
5678
|
+
var css_248z$v = ".ExpansionPanel-module_expansionPanel__m1yQq {\n background-color: var(--white);\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_shadow__zIjJ6 {\n box-shadow: var(--shadow);\n}\n.ExpansionPanel-module_expansionPanel__m1yQq:first-child {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq:last-child {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph:first-child {\n margin-top: 0;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph:last-child {\n margin-bottom: 0;\n}";
|
|
5679
|
+
var styles$v = {"expansionPanel":"ExpansionPanel-module_expansionPanel__m1yQq","shadow":"ExpansionPanel-module_shadow__zIjJ6","isExpanded":"ExpansionPanel-module_isExpanded__TS1ph"};
|
|
5680
|
+
styleInject(css_248z$v);
|
|
5864
5681
|
|
|
5865
5682
|
const ExpansionPanel = (props) => {
|
|
5866
5683
|
const { header, children, isExpanded = false, shadow, onChange } = props;
|
|
@@ -5870,34 +5687,32 @@ const ExpansionPanel = (props) => {
|
|
|
5870
5687
|
}, [isExpanded]);
|
|
5871
5688
|
const getCssClasses = () => {
|
|
5872
5689
|
const cssClasses = [];
|
|
5873
|
-
cssClasses.push(styles$
|
|
5690
|
+
cssClasses.push(styles$v.expansionPanel);
|
|
5874
5691
|
if (_isExpanded) {
|
|
5875
|
-
cssClasses.push(styles$
|
|
5692
|
+
cssClasses.push(styles$v.isExpanded);
|
|
5876
5693
|
}
|
|
5877
|
-
shadow && cssClasses.push(styles$
|
|
5694
|
+
shadow && cssClasses.push(styles$v.shadow);
|
|
5878
5695
|
return cssClasses.filter(css => css).join(' ');
|
|
5879
5696
|
};
|
|
5880
5697
|
const handleClickHeader = (event) => {
|
|
5881
5698
|
setIsExpanded(!_isExpanded);
|
|
5882
5699
|
onChange && onChange(event, !_isExpanded);
|
|
5883
5700
|
};
|
|
5884
|
-
return (
|
|
5885
|
-
|
|
5886
|
-
_isExpanded &&
|
|
5887
|
-
React.createElement(ExpansionPanelContent, null, children)));
|
|
5701
|
+
return (jsxs("div", { className: getCssClasses(), children: [jsx(ExpansionPanelHeader, { isExpanded: _isExpanded, onClick: handleClickHeader, children: header }), _isExpanded &&
|
|
5702
|
+
jsx(ExpansionPanelContent, { children: children })] }));
|
|
5888
5703
|
};
|
|
5889
5704
|
|
|
5890
|
-
var css_248z$
|
|
5891
|
-
var styles$
|
|
5892
|
-
styleInject(css_248z$
|
|
5705
|
+
var css_248z$u = ".FloatingActionButton-module_fab__Rw3kd {\n box-shadow: var(--shadow);\n}\n\n.FloatingActionButton-module_fixed__XQOkG {\n position: fixed;\n z-index: 1000;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_leftTop__ZiHQN {\n top: 16px;\n left: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_leftBottom__210sl {\n bottom: 16px;\n left: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_rightTop__VUsvT {\n top: 64px;\n right: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_rightBottom__FaUFl {\n bottom: 16px;\n right: 16px;\n}";
|
|
5706
|
+
var styles$u = {"fab":"FloatingActionButton-module_fab__Rw3kd","fixed":"FloatingActionButton-module_fixed__XQOkG","leftTop":"FloatingActionButton-module_leftTop__ZiHQN","leftBottom":"FloatingActionButton-module_leftBottom__210sl","rightTop":"FloatingActionButton-module_rightTop__VUsvT","rightBottom":"FloatingActionButton-module_rightBottom__FaUFl"};
|
|
5707
|
+
styleInject(css_248z$u);
|
|
5893
5708
|
|
|
5894
5709
|
const FloatingActionButton = (props) => {
|
|
5895
5710
|
const { className, icon, color = COLOR.primary, fixed, position = 'rightBottom', size = SIZE.lg, isActive, disabled, onClick } = props;
|
|
5896
5711
|
const getCssClasses = () => {
|
|
5897
5712
|
const cssClasses = [];
|
|
5898
|
-
cssClasses.push(styles$
|
|
5899
|
-
fixed && cssClasses.push(styles$
|
|
5900
|
-
position && fixed && cssClasses.push(styles$
|
|
5713
|
+
cssClasses.push(styles$u.fab);
|
|
5714
|
+
fixed && cssClasses.push(styles$u.fixed);
|
|
5715
|
+
position && fixed && cssClasses.push(styles$u[position]);
|
|
5901
5716
|
className && cssClasses.push(className);
|
|
5902
5717
|
return cssClasses.filter(css => css).join(' ');
|
|
5903
5718
|
};
|
|
@@ -5905,48 +5720,47 @@ const FloatingActionButton = (props) => {
|
|
|
5905
5720
|
e.stopPropagation();
|
|
5906
5721
|
onClick && onClick(e);
|
|
5907
5722
|
};
|
|
5908
|
-
return (
|
|
5723
|
+
return (jsx(IconButton, { className: getCssClasses(), color: color, size: size, isActive: isActive, disabled: disabled, icon: icon, variant: VARIANT.contained, onClick: handleClick }));
|
|
5909
5724
|
};
|
|
5910
5725
|
|
|
5911
|
-
var css_248z$
|
|
5912
|
-
var styles$
|
|
5913
|
-
styleInject(css_248z$
|
|
5726
|
+
var css_248z$t = ".Link-module_link__YlJQl {\n color: var(--primary);\n text-decoration: underline;\n}\n.Link-module_link__YlJQl:hover {\n color: var(--primary-dark);\n}";
|
|
5727
|
+
var styles$t = {"link":"Link-module_link__YlJQl"};
|
|
5728
|
+
styleInject(css_248z$t);
|
|
5914
5729
|
|
|
5915
5730
|
const Link = (props) => {
|
|
5916
5731
|
const { href = '#', className, target, children, ...rest } = props;
|
|
5917
5732
|
const [status, setStatus] = useState(STATUS.NORMAL);
|
|
5918
|
-
const [cssClassName] = useCssClasses([styles$
|
|
5733
|
+
const [cssClassName] = useCssClasses([styles$t.link, className, status]);
|
|
5919
5734
|
const onMouseEnter = () => {
|
|
5920
5735
|
setStatus(STATUS.HOVERED);
|
|
5921
5736
|
};
|
|
5922
5737
|
const onMouseLeave = () => {
|
|
5923
5738
|
setStatus(STATUS.NORMAL);
|
|
5924
5739
|
};
|
|
5925
|
-
return (
|
|
5740
|
+
return (jsx("a", { className: cssClassName, href: href, target: target, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ...rest, children: children }));
|
|
5926
5741
|
};
|
|
5927
5742
|
|
|
5928
|
-
var css_248z$
|
|
5929
|
-
var styles$
|
|
5930
|
-
styleInject(css_248z$
|
|
5743
|
+
var css_248z$s = ".LoadingIndicator-module_loadingIndicatorContainer__GS9OG {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n.LoadingIndicator-module_loadingIndicatorContainer__GS9OG.LoadingIndicator-module_isFixed__WCFNG {\n position: fixed;\n top: 0;\n left: 0;\n}\n\n.LoadingIndicator-module_loadingIndicator__EC9sx {\n animation-name: LoadingIndicator-module_spinAnimation__LeY4Z;\n animation-duration: 5000ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n width: 24px;\n height: 24px;\n}\n\n@keyframes LoadingIndicator-module_spinAnimation__LeY4Z {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}";
|
|
5744
|
+
var styles$s = {"loadingIndicatorContainer":"LoadingIndicator-module_loadingIndicatorContainer__GS9OG","isFixed":"LoadingIndicator-module_isFixed__WCFNG","loadingIndicator":"LoadingIndicator-module_loadingIndicator__EC9sx","spinAnimation":"LoadingIndicator-module_spinAnimation__LeY4Z"};
|
|
5745
|
+
styleInject(css_248z$s);
|
|
5931
5746
|
|
|
5932
5747
|
const LoadingIndicator = ({ ...rest }) => {
|
|
5933
5748
|
const getCssClasses = () => {
|
|
5934
5749
|
const cssClasses = [];
|
|
5935
|
-
cssClasses.push(styles$
|
|
5750
|
+
cssClasses.push(styles$s.loadingIndicator);
|
|
5936
5751
|
return cssClasses.filter(css => css).join(' ');
|
|
5937
5752
|
};
|
|
5938
|
-
return (
|
|
5939
|
-
React.createElement(SpinnerSolidIcon, null)));
|
|
5753
|
+
return (jsx("div", { className: getCssClasses(), ...rest, children: jsx(SpinnerSolidIcon, {}) }));
|
|
5940
5754
|
};
|
|
5941
5755
|
|
|
5942
5756
|
const LoadingIndicatorContainer = ({ children, isFixed }) => {
|
|
5943
5757
|
const getCssClasses = () => {
|
|
5944
5758
|
const cssClasses = [];
|
|
5945
|
-
cssClasses.push(styles$
|
|
5946
|
-
isFixed && cssClasses.push(styles$
|
|
5759
|
+
cssClasses.push(styles$s.loadingIndicatorContainer);
|
|
5760
|
+
isFixed && cssClasses.push(styles$s.isFixed);
|
|
5947
5761
|
return cssClasses.filter(css => css).join(' ');
|
|
5948
5762
|
};
|
|
5949
|
-
return (
|
|
5763
|
+
return (jsx("div", { className: getCssClasses(), children: children }));
|
|
5950
5764
|
};
|
|
5951
5765
|
|
|
5952
5766
|
var client = createCommonjsModule(function (module, exports) {
|
|
@@ -5987,8 +5801,7 @@ class LoadingIndicatorService {
|
|
|
5987
5801
|
this.container.classList.add('snackbar-container');
|
|
5988
5802
|
document.body.appendChild(this.container);
|
|
5989
5803
|
this.root = client_1(this.container);
|
|
5990
|
-
this.root.render(
|
|
5991
|
-
React.createElement(LoadingIndicator, null)));
|
|
5804
|
+
this.root.render(jsx(LoadingIndicatorContainer, { isFixed: true, children: jsx(LoadingIndicator, {}) }));
|
|
5992
5805
|
}
|
|
5993
5806
|
hide() {
|
|
5994
5807
|
if (this.container) {
|
|
@@ -6001,6 +5814,97 @@ class LoadingIndicatorService {
|
|
|
6001
5814
|
}
|
|
6002
5815
|
const loadingIndicatorService = new LoadingIndicatorService();
|
|
6003
5816
|
|
|
5817
|
+
var css_248z$r = ".MenuBody-module_menuBody__u4FIQ {\n z-index: 1111;\n margin: 0;\n position: absolute;\n top: 100%;\n left: 0;\n min-width: 10rem;\n padding: 0px;\n font-size: 1rem;\n color: #212529;\n text-align: left;\n list-style: none;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: var(--borderRadius);\n max-width: 300px;\n}\n.MenuBody-module_menuBody__u4FIQ.MenuBody-module_shadow__OBp-f {\n box-shadow: var(--shadow);\n}";
|
|
5818
|
+
var styles$r = {"menuBody":"MenuBody-module_menuBody__u4FIQ","shadow":"MenuBody-module_shadow__OBp-f"};
|
|
5819
|
+
styleInject(css_248z$r);
|
|
5820
|
+
|
|
5821
|
+
const MenuBody = (props) => {
|
|
5822
|
+
const { parentRef, children, className, shadow = true, menuPosition = 'left', onClickBackdrop } = props;
|
|
5823
|
+
const [popperInstance, setPopperInstance] = useState();
|
|
5824
|
+
const menuBodyRef = useRef(null);
|
|
5825
|
+
useEffect(() => {
|
|
5826
|
+
if (menuBodyRef && parentRef.current && menuBodyRef.current) {
|
|
5827
|
+
const popperInstance = createPopper(parentRef.current, menuBodyRef.current, {
|
|
5828
|
+
placement: `${menuPosition}-start`,
|
|
5829
|
+
modifiers: [
|
|
5830
|
+
{
|
|
5831
|
+
name: 'offset',
|
|
5832
|
+
options: {
|
|
5833
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5834
|
+
offset: ({ placement, popper }) => {
|
|
5835
|
+
if (placement === 'left-start') {
|
|
5836
|
+
return [0, -popper.width]; // y, x
|
|
5837
|
+
}
|
|
5838
|
+
if (placement === 'right-start') {
|
|
5839
|
+
return [0, -popper.width];
|
|
5840
|
+
}
|
|
5841
|
+
return [];
|
|
5842
|
+
},
|
|
5843
|
+
},
|
|
5844
|
+
},
|
|
5845
|
+
]
|
|
5846
|
+
});
|
|
5847
|
+
setPopperInstance(popperInstance);
|
|
5848
|
+
}
|
|
5849
|
+
else {
|
|
5850
|
+
popperInstance?.destroy();
|
|
5851
|
+
}
|
|
5852
|
+
}, [menuBodyRef]);
|
|
5853
|
+
const getCssClasses = () => {
|
|
5854
|
+
const cssClasses = [];
|
|
5855
|
+
cssClasses.push(styles$r.menuBody);
|
|
5856
|
+
shadow && cssClasses.push(styles$r.shadow);
|
|
5857
|
+
className && cssClasses.push(className);
|
|
5858
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5859
|
+
};
|
|
5860
|
+
const handleClickBackdrop = () => {
|
|
5861
|
+
onClickBackdrop && onClickBackdrop();
|
|
5862
|
+
};
|
|
5863
|
+
useOnDestroy(() => {
|
|
5864
|
+
popperInstance?.destroy();
|
|
5865
|
+
});
|
|
5866
|
+
return (jsxs(Portal$1, { className: 'menu-root', children: [jsx("div", { ref: menuBodyRef, className: getCssClasses(), children: jsx(List, { children: children }) }), jsx(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })] }));
|
|
5867
|
+
};
|
|
5868
|
+
|
|
5869
|
+
const Menu = (props) => {
|
|
5870
|
+
const { toggle, children, className, open, menuPosition, onClickBackdrop, ...rest } = props;
|
|
5871
|
+
const menuContainer = useRef(null);
|
|
5872
|
+
const toggleContainerRef = useRef(null);
|
|
5873
|
+
const getCssClasses = () => {
|
|
5874
|
+
const cssClasses = [];
|
|
5875
|
+
className && cssClasses.push(className);
|
|
5876
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5877
|
+
};
|
|
5878
|
+
const handleClickBackdrop = () => {
|
|
5879
|
+
onClickBackdrop && onClickBackdrop();
|
|
5880
|
+
};
|
|
5881
|
+
return (jsxs("div", { ref: menuContainer, className: getCssClasses(), ...rest, children: [jsx("div", { ref: toggleContainerRef, children: toggle }), open &&
|
|
5882
|
+
jsx(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop, children: children })] }));
|
|
5883
|
+
};
|
|
5884
|
+
|
|
5885
|
+
const MenuItem = (props) => {
|
|
5886
|
+
const { children, onClick, ...rest } = props;
|
|
5887
|
+
const getCssClasses = () => {
|
|
5888
|
+
const cssClasses = [];
|
|
5889
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5890
|
+
};
|
|
5891
|
+
const handleClick = (e) => {
|
|
5892
|
+
e.stopPropagation();
|
|
5893
|
+
onClick && onClick(e);
|
|
5894
|
+
};
|
|
5895
|
+
return (jsx(ListItem, { className: getCssClasses(), onClick: handleClick, ...rest, children: children }));
|
|
5896
|
+
};
|
|
5897
|
+
|
|
5898
|
+
const MenuToggle = ({ children }) => {
|
|
5899
|
+
return children;
|
|
5900
|
+
};
|
|
5901
|
+
|
|
5902
|
+
var css_248z$q = ".MenuDivider-module_menuItemDivider__oRP-j {\n height: 0;\n margin: 0.5rem 0;\n overflow: hidden;\n border-top: 1px solid #e9ecef;\n}";
|
|
5903
|
+
var styles$q = {"menuItemDivider":"MenuDivider-module_menuItemDivider__oRP-j"};
|
|
5904
|
+
styleInject(css_248z$q);
|
|
5905
|
+
|
|
5906
|
+
const MenuDivider = () => jsx("div", { className: styles$q.menuItemDivider });
|
|
5907
|
+
|
|
6004
5908
|
var css_248z$p = ".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}";
|
|
6005
5909
|
var styles$p = {"modalHeader":"ModalHeader-module_modalHeader__tw-u-","shadow":"ModalHeader-module_shadow__qELWb","modalTitle":"ModalHeader-module_modalTitle__2xShH"};
|
|
6006
5910
|
styleInject(css_248z$p);
|
|
@@ -6017,17 +5921,15 @@ const ModalHeader = (props) => {
|
|
|
6017
5921
|
const handleClick = () => {
|
|
6018
5922
|
onClose && onClose();
|
|
6019
5923
|
};
|
|
6020
|
-
return (
|
|
6021
|
-
|
|
6022
|
-
isDismissable &&
|
|
6023
|
-
React.createElement(IconButton, { icon: React.createElement(TimesSolidIcon, null), variant: VARIANT.text, onClick: handleClick })));
|
|
5924
|
+
return (jsxs("div", { className: getCssClasses(), ...rest, children: [jsx("h5", { className: styles$p.modalTitle, children: children }), isDismissable &&
|
|
5925
|
+
jsx(IconButton, { icon: jsx(TimesSolidIcon, {}), variant: VARIANT.text, onClick: handleClick })] }));
|
|
6024
5926
|
};
|
|
6025
5927
|
|
|
6026
5928
|
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}";
|
|
6027
5929
|
var styles$o = {"modalBody":"ModalBody-module_modalBody__D-gk2"};
|
|
6028
5930
|
styleInject(css_248z$o);
|
|
6029
5931
|
|
|
6030
|
-
const ModalBody = ({ children }) => (
|
|
5932
|
+
const ModalBody = ({ children }) => (jsx("div", { className: styles$o.modalBody, children: children }));
|
|
6031
5933
|
|
|
6032
5934
|
var css_248z$n = ".ModalFooter-module_modalFooter__SNm-f {\n display: flex;\n flex-wrap: wrap;\n flex-shrink: 0;\n align-items: center;\n justify-content: flex-end;\n padding: 0.75rem;\n border-bottom-right-radius: calc(0.3rem - 1px);\n border-bottom-left-radius: calc(0.3rem - 1px);\n}\n.ModalFooter-module_modalFooter__SNm-f.ModalFooter-module_shadow__z29Cy {\n box-shadow: var(--shadow);\n}\n.ModalFooter-module_modalFooter__SNm-f > * {\n margin: 0.25rem;\n}";
|
|
6033
5935
|
var styles$n = {"modalFooter":"ModalFooter-module_modalFooter__SNm-f","shadow":"ModalFooter-module_shadow__z29Cy"};
|
|
@@ -6042,7 +5944,7 @@ const ModalFooter = (props) => {
|
|
|
6042
5944
|
className && cssClasses.push(className);
|
|
6043
5945
|
return cssClasses.filter(css => css).join(' ');
|
|
6044
5946
|
};
|
|
6045
|
-
return (
|
|
5947
|
+
return (jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
6046
5948
|
};
|
|
6047
5949
|
|
|
6048
5950
|
var css_248z$m = ".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}";
|
|
@@ -6069,17 +5971,9 @@ const Modal = (props) => {
|
|
|
6069
5971
|
const handleClickBackdrop = () => {
|
|
6070
5972
|
onBackdropClick && onBackdropClick();
|
|
6071
5973
|
};
|
|
6072
|
-
return (
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
React.createElement("div", { className: getCssClass() },
|
|
6076
|
-
React.createElement("div", { className: styles$m.modalContent },
|
|
6077
|
-
header &&
|
|
6078
|
-
React.createElement(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick() }, header),
|
|
6079
|
-
React.createElement(ModalBody, null, children),
|
|
6080
|
-
footer &&
|
|
6081
|
-
React.createElement(ModalFooter, null, footer))))),
|
|
6082
|
-
React.createElement(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })));
|
|
5974
|
+
return (jsxs(Fragment$1, { children: [jsx(Portal$1, { className: 'modal-root', target: target, children: jsx("div", { className: styles$m.modal, children: jsx("div", { className: getCssClass(), children: jsxs("div", { className: styles$m.modalContent, children: [header &&
|
|
5975
|
+
jsx(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick(), children: header }), jsx(ModalBody, { children: children }), footer &&
|
|
5976
|
+
jsx(ModalFooter, { children: footer })] }) }) }) }), jsx(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })] }));
|
|
6083
5977
|
};
|
|
6084
5978
|
|
|
6085
5979
|
var MODALTYPE;
|
|
@@ -6135,11 +6029,8 @@ const GlobalModal = ({ title, description, formControls, onOk, onChange, onCance
|
|
|
6135
6029
|
}
|
|
6136
6030
|
button.handler && button.handler();
|
|
6137
6031
|
};
|
|
6138
|
-
return (
|
|
6139
|
-
|
|
6140
|
-
modalType === MODALTYPE.FORM &&
|
|
6141
|
-
React.createElement(React.Fragment, null,
|
|
6142
|
-
React.createElement(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }))));
|
|
6032
|
+
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 &&
|
|
6033
|
+
jsx(Fragment$1, { children: jsx(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }) })] }));
|
|
6143
6034
|
};
|
|
6144
6035
|
|
|
6145
6036
|
class ModalService {
|
|
@@ -6157,7 +6048,7 @@ class ModalService {
|
|
|
6157
6048
|
this.hide();
|
|
6158
6049
|
};
|
|
6159
6050
|
this.root = client_1(this.container);
|
|
6160
|
-
this.root.render(
|
|
6051
|
+
this.root.render(jsx(GlobalModal, { fullScreen: options && options.fullScreen, size: options && options.size, title: title, description: description, onCancel: handleCancel, onBackdropClick: handleCancel, onOk: handleOk, isDismissable: options && options.isDismissable, buttons: options && options.buttons }));
|
|
6161
6052
|
}
|
|
6162
6053
|
});
|
|
6163
6054
|
}
|
|
@@ -6175,7 +6066,7 @@ class ModalService {
|
|
|
6175
6066
|
this.hide();
|
|
6176
6067
|
};
|
|
6177
6068
|
this.root = client_1(this.container);
|
|
6178
|
-
this.root.render(
|
|
6069
|
+
this.root.render(jsx(GlobalModal, { fullScreen: options && options.fullScreen, size: options && options.size, title: title, formControls: formControls, onCancel: handleCancel, onBackdropClick: handleCancel, onOk: handleOk, isDismissable: options && options.isDismissable, buttons: options && options.buttons }));
|
|
6179
6070
|
}
|
|
6180
6071
|
});
|
|
6181
6072
|
}
|
|
@@ -6212,7 +6103,7 @@ const NumberSelect = (props) => {
|
|
|
6212
6103
|
setNewValue(e);
|
|
6213
6104
|
onChange && onChange(e);
|
|
6214
6105
|
};
|
|
6215
|
-
return (
|
|
6106
|
+
return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: numberOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
6216
6107
|
};
|
|
6217
6108
|
|
|
6218
6109
|
var css_248z$l = ".Tooltip-module_tooltipContainer__9ZWx3 {\n display: inline;\n}\n\n.Tooltip-module_tooltip__x5HOu {\n background-color: #333;\n color: white;\n padding: 5px 10px;\n border-radius: 4px;\n font-size: 13px;\n position: absolute;\n left: -1000000px;\n z-index: 1100;\n}\n\n.Tooltip-module_arrow__B6lfe, .Tooltip-module_arrow__B6lfe::before {\n position: absolute;\n width: 8px;\n height: 8px;\n z-index: -1;\n}\n.Tooltip-module_arrow__B6lfe::before {\n content: \"\";\n transform: rotate(45deg);\n background: #333;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-top__h5aww {\n bottom: -4px;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-bottom__dYc5B {\n top: -4px;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-left__8-2Jw {\n right: -4px;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-right__v4h4z {\n left: -4px;\n}";
|
|
@@ -6293,16 +6184,9 @@ const Tooltip = (props) => {
|
|
|
6293
6184
|
placement && cssClasses.push(styles$l[`placement-${placement}`]);
|
|
6294
6185
|
return cssClasses.filter(css => css).join(' ');
|
|
6295
6186
|
};
|
|
6296
|
-
return (
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
React.createElement("div", { className: styles$l.tooltip, ref: refTooltip },
|
|
6300
|
-
React.createElement("div", { className: 'd-flex align-items-center' },
|
|
6301
|
-
text,
|
|
6302
|
-
showClose &&
|
|
6303
|
-
React.createElement(Icon, { className: 'ml-1', onClick: handleClickClose },
|
|
6304
|
-
React.createElement(TimesSolidIcon, null))),
|
|
6305
|
-
React.createElement("div", { className: getArrowStyles(), "data-popper-arrow": true }))));
|
|
6187
|
+
return (jsxs(Fragment$1, { children: [jsx("div", { ref: refChild, className: styles$l.tooltipContainer, onMouseOver: handleMouseOver, onMouseLeave: handleMouseLeave, onFocus: handleFocus, onBlur: handleBlur, children: children }), open && text &&
|
|
6188
|
+
jsxs("div", { className: styles$l.tooltip, ref: refTooltip, children: [jsxs("div", { className: 'd-flex align-items-center', children: [text, showClose &&
|
|
6189
|
+
jsx(Icon, { className: 'ml-1', onClick: handleClickClose, children: jsx(TimesSolidIcon, {}) })] }), jsx("div", { className: getArrowStyles(), "data-popper-arrow": true })] })] }));
|
|
6306
6190
|
};
|
|
6307
6191
|
|
|
6308
6192
|
var css_248z$k = ":root {\n --progress-height: 0.5rem;\n --progress-bg: #e9ecef;\n --progress-box-shadow: var(--shadow);\n --progress-bar-color: #fff;\n --progress-bar-bg: var(--primary);\n --progress-bar-transition: width 0.6s ease;\n}\n\n.ProgressBar-module_progressBarContainer__vtbBw {\n display: flex;\n height: var(--progress-height);\n overflow: hidden;\n background-color: var(--progress-bg);\n}\n\n.ProgressBar-module_progressBar__hr8I8 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n color: var(--progress-bar-color);\n text-align: center;\n white-space: nowrap;\n transition: var(--progress-bar-transition);\n background-color: var(--progress-bar-bg);\n}\n.ProgressBar-module_progressBar__hr8I8.ProgressBar-module_indeterminate__WcQdD {\n width: 100%;\n height: 100%;\n animation: ProgressBar-module_indeterminateAnimation__SlBFt 1s infinite linear;\n transform-origin: 0% 50%;\n}\n\n@keyframes ProgressBar-module_indeterminateAnimation__SlBFt {\n 0% {\n transform: translateX(0) scaleX(0);\n }\n 40% {\n transform: translateX(0) scaleX(0.4);\n }\n 100% {\n transform: translateX(100%) scaleX(0.5);\n }\n}";
|
|
@@ -6344,9 +6228,7 @@ const ProgressBar = (props) => {
|
|
|
6344
6228
|
}
|
|
6345
6229
|
return `${width}%`;
|
|
6346
6230
|
};
|
|
6347
|
-
return (
|
|
6348
|
-
React.createElement("div", { className: getCssClasses(), ...rest },
|
|
6349
|
-
React.createElement("div", { className: getCssClassesBar(), style: { 'width': getStyle() }, role: "progressbar" }))));
|
|
6231
|
+
return (jsx(Tooltip, { text: !indeterminate ? model?.toString() : '', children: jsx("div", { className: getCssClasses(), ...rest, children: jsx("div", { className: getCssClassesBar(), style: { 'width': getStyle() }, role: "progressbar" }) }) }));
|
|
6350
6232
|
};
|
|
6351
6233
|
|
|
6352
6234
|
class SidebarItemModel {
|
|
@@ -6412,40 +6294,87 @@ const Sidebar = (props) => {
|
|
|
6412
6294
|
const handleClickSubItem = (itemPath, subItemPath, e) => {
|
|
6413
6295
|
navigate(e, `${itemPath}/${subItemPath}`);
|
|
6414
6296
|
};
|
|
6415
|
-
return (
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
"(",
|
|
6422
|
-
item.items.length,
|
|
6423
|
-
")"))) }),
|
|
6424
|
-
item.items && item.items.length > 0 &&
|
|
6425
|
-
React.createElement(ListItemAction, null, item.isCollapsed ? React.createElement(ChevronDownSolidIcon, null) : React.createElement(ChevronUpSolidIcon, null))),
|
|
6426
|
-
!item.isCollapsed && item.items && item.items.length > 0 && (React.createElement(List, { className: "list-level-1", key: `${item.id}-sub` }, item.items.map(subItem => (React.createElement(ListItem, { className: "list-item-level-1", active: isMenuItemActive(subItem.path), key: subItem.id, onClick: (e) => handleClickSubItem(item.path, subItem.path, e) }, subItem.label)))))))))));
|
|
6427
|
-
};
|
|
6428
|
-
|
|
6429
|
-
var css_248z$j = ".Snackbar-module_snackbar__O5T2b {\n display: flex;\n align-items: center;\n min-width: 288px;\n padding: 6px 16px;\n transform-origin: center;\n min-height: 52px;\n animation: Snackbar-module_bounceIn__E47iD 0.4s ease;\n z-index: 1001;\n position: fixed;\n left: 50%;\n transform: translateX(-50%);\n bottom: 2%;\n border-radius: var(--borderRadius);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_primary__ZBOTN {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_accent__0MnFy {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_secondary__s8-ez {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_light__Vrd7o {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_dark__U-5io {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n\n.Snackbar-module_text__G5r5D {\n width: 100%;\n padding: 8px 0;\n}\n\n.Snackbar-module_action__vus2Y {\n margin-left: auto;\n}\n.Snackbar-module_action__vus2Y:hover {\n cursor: pointer;\n}\n\n@keyframes Snackbar-module_bounceIn__E47iD {\n 0% {\n opacity: 0;\n }\n 50% {\n opacity: 0.9;\n }\n 80% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}";
|
|
6430
|
-
var styles$j = {"snackbar":"Snackbar-module_snackbar__O5T2b","bounceIn":"Snackbar-module_bounceIn__E47iD","primary":"Snackbar-module_primary__ZBOTN","accent":"Snackbar-module_accent__0MnFy","secondary":"Snackbar-module_secondary__s8-ez","light":"Snackbar-module_light__Vrd7o","dark":"Snackbar-module_dark__U-5io","text":"Snackbar-module_text__G5r5D","action":"Snackbar-module_action__vus2Y"};
|
|
6297
|
+
return (jsx("nav", { className: getCssClasses(), ...rest, children: jsx(List, { children: menuItems.map(item => (jsxs(React.Fragment, { children: [jsxs(ListItem, { active: isMenuItemActive(item.path), onClick: (e) => handleClickItem(item, e), children: [jsx(ListItemText, { primary: jsxs(Fragment$1, { children: [item.label, item.items && item.items.length > 0 && (jsxs("small", { className: "ml-2", children: ["(", item.items.length, ")"] }))] }) }), item.items && item.items.length > 0 &&
|
|
6298
|
+
jsx(ListItemAction, { children: item.isCollapsed ? jsx(ChevronDownSolidIcon, {}) : jsx(ChevronUpSolidIcon, {}) })] }), !item.isCollapsed && item.items && item.items.length > 0 && (jsx(List, { className: "list-level-1", children: item.items.map(subItem => (jsx(ListItem, { className: "list-item-level-1", active: isMenuItemActive(subItem.path), onClick: (e) => handleClickSubItem(item.path, subItem.path, e), children: subItem.label }, subItem.id))) }, `${item.id}-sub`))] }, item.id))) }) }));
|
|
6299
|
+
};
|
|
6300
|
+
|
|
6301
|
+
var css_248z$j = "@keyframes SkeletonAvatar-module_skeleton-loading__eM-ZU {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonAvatar-module_skeletonAvatar__03QnJ {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background-color: var(--secondary);\n animation: SkeletonAvatar-module_skeleton-loading__eM-ZU 1s linear infinite alternate;\n}";
|
|
6302
|
+
var styles$j = {"skeletonAvatar":"SkeletonAvatar-module_skeletonAvatar__03QnJ","skeleton-loading":"SkeletonAvatar-module_skeleton-loading__eM-ZU"};
|
|
6431
6303
|
styleInject(css_248z$j);
|
|
6432
6304
|
|
|
6305
|
+
const SkeletonAvatar = (props) => {
|
|
6306
|
+
const { className, ...rest } = props;
|
|
6307
|
+
const getCssClasses = () => {
|
|
6308
|
+
const cssClasses = [];
|
|
6309
|
+
cssClasses.push(styles$j.skeletonAvatar);
|
|
6310
|
+
className && cssClasses.push(className);
|
|
6311
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6312
|
+
};
|
|
6313
|
+
return (jsx("div", { className: getCssClasses(), ...rest }));
|
|
6314
|
+
};
|
|
6315
|
+
|
|
6316
|
+
var css_248z$i = "@keyframes SkeletonText-module_skeleton-loading__EYFfJ {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonText-module_skeletonText__E5NCO {\n width: 100%;\n height: 0.7rem;\n margin-bottom: 0.5rem;\n border-radius: 0.25rem;\n animation: SkeletonText-module_skeleton-loading__EYFfJ 1s linear infinite alternate;\n}";
|
|
6317
|
+
var styles$i = {"skeletonText":"SkeletonText-module_skeletonText__E5NCO","skeleton-loading":"SkeletonText-module_skeleton-loading__EYFfJ"};
|
|
6318
|
+
styleInject(css_248z$i);
|
|
6319
|
+
|
|
6320
|
+
const SkeletonText = (props) => {
|
|
6321
|
+
const { className, ...rest } = props;
|
|
6322
|
+
const getCssClasses = () => {
|
|
6323
|
+
const cssClasses = [];
|
|
6324
|
+
cssClasses.push(styles$i.skeletonText);
|
|
6325
|
+
className && cssClasses.push(className);
|
|
6326
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6327
|
+
};
|
|
6328
|
+
return (jsx("div", { className: getCssClasses(), ...rest }));
|
|
6329
|
+
};
|
|
6330
|
+
|
|
6331
|
+
var css_248z$h = "@keyframes SkeletonFooter-module_skeleton-loading__OEErv {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonFooter-module_skeletonFooter__u2Gxc {\n width: 30%;\n height: 0.7rem;\n border-radius: 0.25rem;\n animation: SkeletonFooter-module_skeleton-loading__OEErv 1s linear infinite alternate;\n}";
|
|
6332
|
+
var styles$h = {"skeletonFooter":"SkeletonFooter-module_skeletonFooter__u2Gxc","skeleton-loading":"SkeletonFooter-module_skeleton-loading__OEErv"};
|
|
6333
|
+
styleInject(css_248z$h);
|
|
6334
|
+
|
|
6335
|
+
const SkeletonFooter = (props) => {
|
|
6336
|
+
const { className, ...rest } = props;
|
|
6337
|
+
const getCssClasses = () => {
|
|
6338
|
+
const cssClasses = [];
|
|
6339
|
+
cssClasses.push(styles$h.skeletonFooter);
|
|
6340
|
+
className && cssClasses.push(className);
|
|
6341
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6342
|
+
};
|
|
6343
|
+
return (jsx("div", { className: getCssClasses(), ...rest }));
|
|
6344
|
+
};
|
|
6345
|
+
|
|
6346
|
+
var css_248z$g = "@keyframes SkeletonImage-module_skeleton-loading__04lJ7 {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonImage-module_skeletonImage__2EwDG {\n height: 10rem;\n margin: 0.5rem 0;\n border-radius: 0.75rem;\n animation: SkeletonImage-module_skeleton-loading__04lJ7 1s linear infinite alternate;\n}\n\n.SkeletonImage-module_div__tqqrB {\n width: 100%;\n height: 100%;\n object-fit: cover;\n margin: auto;\n border-radius: 0.75rem;\n border-color: none;\n}";
|
|
6347
|
+
var styles$g = {"skeletonImage":"SkeletonImage-module_skeletonImage__2EwDG","skeleton-loading":"SkeletonImage-module_skeleton-loading__04lJ7","div":"SkeletonImage-module_div__tqqrB"};
|
|
6348
|
+
styleInject(css_248z$g);
|
|
6349
|
+
|
|
6350
|
+
const SkeletonImage = (props) => {
|
|
6351
|
+
const { className, ...rest } = props;
|
|
6352
|
+
const getCssClasses = () => {
|
|
6353
|
+
const cssClasses = [];
|
|
6354
|
+
cssClasses.push(styles$g.skeletonImage);
|
|
6355
|
+
className && cssClasses.push(className);
|
|
6356
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6357
|
+
};
|
|
6358
|
+
return (jsx("div", { className: getCssClasses(), ...rest, children: jsx("div", { className: styles$g.img }) }));
|
|
6359
|
+
};
|
|
6360
|
+
|
|
6361
|
+
var css_248z$f = ".Snackbar-module_snackbar__O5T2b {\n display: flex;\n align-items: center;\n min-width: 288px;\n padding: 6px 16px;\n transform-origin: center;\n min-height: 52px;\n animation: Snackbar-module_bounceIn__E47iD 0.4s ease;\n z-index: 1001;\n position: fixed;\n left: 50%;\n transform: translateX(-50%);\n bottom: 2%;\n border-radius: var(--borderRadius);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_primary__ZBOTN {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_accent__0MnFy {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_secondary__s8-ez {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_light__Vrd7o {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_dark__U-5io {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n\n.Snackbar-module_text__G5r5D {\n width: 100%;\n padding: 8px 0;\n}\n\n.Snackbar-module_action__vus2Y {\n margin-left: auto;\n}\n.Snackbar-module_action__vus2Y:hover {\n cursor: pointer;\n}\n\n@keyframes Snackbar-module_bounceIn__E47iD {\n 0% {\n opacity: 0;\n }\n 50% {\n opacity: 0.9;\n }\n 80% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}";
|
|
6362
|
+
var styles$f = {"snackbar":"Snackbar-module_snackbar__O5T2b","bounceIn":"Snackbar-module_bounceIn__E47iD","primary":"Snackbar-module_primary__ZBOTN","accent":"Snackbar-module_accent__0MnFy","secondary":"Snackbar-module_secondary__s8-ez","light":"Snackbar-module_light__Vrd7o","dark":"Snackbar-module_dark__U-5io","text":"Snackbar-module_text__G5r5D","action":"Snackbar-module_action__vus2Y"};
|
|
6363
|
+
styleInject(css_248z$f);
|
|
6364
|
+
|
|
6433
6365
|
const Snackbar = (props) => {
|
|
6434
6366
|
const { children, color = COLOR.dark, actionText = 'ok', onOk, ...rest } = props;
|
|
6435
6367
|
const getCssClasses = () => {
|
|
6436
6368
|
const cssClasses = [];
|
|
6437
|
-
cssClasses.push(styles$
|
|
6369
|
+
cssClasses.push(styles$f.snackbar);
|
|
6438
6370
|
cssClasses.push(`shadow-lg`);
|
|
6439
|
-
cssClasses.push(styles$
|
|
6371
|
+
cssClasses.push(styles$f[color]);
|
|
6440
6372
|
return cssClasses.filter(css => css).join(' ');
|
|
6441
6373
|
};
|
|
6442
6374
|
const handleClickAction = (e) => {
|
|
6443
6375
|
onOk && onOk(e);
|
|
6444
6376
|
};
|
|
6445
|
-
return (
|
|
6446
|
-
React.createElement("div", { className: styles$j.text }, children),
|
|
6447
|
-
React.createElement("div", { className: styles$j.action + ' text-accent', onClick: handleClickAction },
|
|
6448
|
-
React.createElement("span", null, actionText))));
|
|
6377
|
+
return (jsxs("div", { className: getCssClasses(), ...rest, children: [jsx("div", { className: styles$f.text, children: children }), jsx("div", { className: styles$f.action + ' text-accent', onClick: handleClickAction, children: jsx("span", { children: actionText }) })] }));
|
|
6449
6378
|
};
|
|
6450
6379
|
|
|
6451
6380
|
class SnackbarService {
|
|
@@ -6469,7 +6398,7 @@ class SnackbarService {
|
|
|
6469
6398
|
this.hide();
|
|
6470
6399
|
};
|
|
6471
6400
|
this.root = client_1(this.container);
|
|
6472
|
-
this.root.render(
|
|
6401
|
+
this.root.render(jsx(Snackbar, { color: mergedOptions.color, actionText: mergedOptions.actionText, onOk: handleOk, children: message }));
|
|
6473
6402
|
});
|
|
6474
6403
|
}
|
|
6475
6404
|
hide() {
|
|
@@ -6483,29 +6412,29 @@ class SnackbarService {
|
|
|
6483
6412
|
}
|
|
6484
6413
|
const snackbarService = new SnackbarService();
|
|
6485
6414
|
|
|
6486
|
-
var css_248z$
|
|
6487
|
-
var styles$
|
|
6488
|
-
styleInject(css_248z$
|
|
6415
|
+
var css_248z$e = ".SpeedDialActions-module_speedDialActions__cY2i3 {\n margin-bottom: -32px;\n flex-direction: column-reverse;\n padding-bottom: 48px;\n display: flex;\n pointer-events: auto;\n}";
|
|
6416
|
+
var styles$e = {"speedDialActions":"SpeedDialActions-module_speedDialActions__cY2i3"};
|
|
6417
|
+
styleInject(css_248z$e);
|
|
6489
6418
|
|
|
6490
6419
|
const SpeedDialActions = (props) => {
|
|
6491
6420
|
const { children } = props;
|
|
6492
6421
|
const getCssClasses = () => {
|
|
6493
6422
|
const cssClasses = [];
|
|
6494
|
-
cssClasses.push(styles$
|
|
6423
|
+
cssClasses.push(styles$e.speedDialActions);
|
|
6495
6424
|
return cssClasses.filter(css => css).join(' ');
|
|
6496
6425
|
};
|
|
6497
|
-
return (
|
|
6426
|
+
return (jsx("div", { className: getCssClasses(), children: children }));
|
|
6498
6427
|
};
|
|
6499
6428
|
|
|
6500
|
-
var css_248z$
|
|
6501
|
-
var styles$
|
|
6502
|
-
styleInject(css_248z$
|
|
6429
|
+
var css_248z$d = ".SpeedDial-module_speedDial__W3VN2 {\n position: absolute;\n flex-direction: column-reverse;\n display: flex;\n z-index: 1050;\n align-items: center;\n right: 16px;\n bottom: 16px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}";
|
|
6430
|
+
var styles$d = {"speedDial":"SpeedDial-module_speedDial__W3VN2"};
|
|
6431
|
+
styleInject(css_248z$d);
|
|
6503
6432
|
|
|
6504
6433
|
const SpeedDial = (props) => {
|
|
6505
6434
|
const { children, className, open, onOpen, onClose, ...rest } = props;
|
|
6506
6435
|
const getCssClasses = () => {
|
|
6507
6436
|
const cssClasses = [];
|
|
6508
|
-
cssClasses.push(styles$
|
|
6437
|
+
cssClasses.push(styles$d.speedDial);
|
|
6509
6438
|
className && cssClasses.push(className);
|
|
6510
6439
|
return cssClasses.filter(css => css).join(' ');
|
|
6511
6440
|
};
|
|
@@ -6517,26 +6446,23 @@ const SpeedDial = (props) => {
|
|
|
6517
6446
|
onOpen && onOpen(e);
|
|
6518
6447
|
}
|
|
6519
6448
|
};
|
|
6520
|
-
return (
|
|
6521
|
-
|
|
6522
|
-
React.createElement(FloatingActionButton, { icon: React.createElement(PlusSolidIcon, null), onClick: handleClick })),
|
|
6523
|
-
open &&
|
|
6524
|
-
React.createElement(SpeedDialActions, null, children)));
|
|
6449
|
+
return (jsxs("div", { className: getCssClasses(), ...rest, children: [jsx("div", { style: { 'transform': open ? 'rotate(45deg)' : undefined }, children: jsx(FloatingActionButton, { icon: jsx(PlusSolidIcon, {}), onClick: handleClick }) }), open &&
|
|
6450
|
+
jsx(SpeedDialActions, { children: children })] }));
|
|
6525
6451
|
};
|
|
6526
6452
|
|
|
6527
|
-
var css_248z$
|
|
6528
|
-
var styles$
|
|
6529
|
-
styleInject(css_248z$
|
|
6453
|
+
var css_248z$c = ".SpeedDialAction-module_speedDialAction__kJLpz + .SpeedDialAction-module_speedDialAction__kJLpz {\n margin-bottom: 10px;\n}";
|
|
6454
|
+
var styles$c = {"speedDialAction":"SpeedDialAction-module_speedDialAction__kJLpz"};
|
|
6455
|
+
styleInject(css_248z$c);
|
|
6530
6456
|
|
|
6531
6457
|
const SpeedDialAction = (props) => {
|
|
6532
6458
|
const { icon, color = COLOR.light, onClick, className } = props;
|
|
6533
6459
|
const getCssClasses = () => {
|
|
6534
6460
|
const cssClasses = [];
|
|
6535
|
-
cssClasses.push(styles$
|
|
6461
|
+
cssClasses.push(styles$c.speedDialAction);
|
|
6536
6462
|
className && cssClasses.push(className);
|
|
6537
6463
|
return cssClasses.filter(css => css).join(' ');
|
|
6538
6464
|
};
|
|
6539
|
-
return (
|
|
6465
|
+
return (jsx(IconButton, { className: getCssClasses(), icon: icon, color: color, variant: VARIANT.contained, shadow: true, onClick: onClick }));
|
|
6540
6466
|
};
|
|
6541
6467
|
|
|
6542
6468
|
const SpeedDialIcon = (props) => {
|
|
@@ -6546,79 +6472,72 @@ const SpeedDialIcon = (props) => {
|
|
|
6546
6472
|
className && cssClasses.push(className);
|
|
6547
6473
|
return cssClasses.filter(css => css).join(' ');
|
|
6548
6474
|
};
|
|
6549
|
-
return (
|
|
6475
|
+
return (jsx(Icon, { className: getCssClasses(), ...rest, children: children }));
|
|
6550
6476
|
};
|
|
6551
6477
|
|
|
6552
|
-
var css_248z$
|
|
6553
|
-
var styles$
|
|
6554
|
-
styleInject(css_248z$
|
|
6478
|
+
var css_248z$b = ".StepperActions-module_stepperActions__hBUkh {\n display: flex;\n}";
|
|
6479
|
+
var styles$b = {"stepperActions":"StepperActions-module_stepperActions__hBUkh"};
|
|
6480
|
+
styleInject(css_248z$b);
|
|
6555
6481
|
|
|
6556
6482
|
const StepperActions = (props) => {
|
|
6557
6483
|
const { className, showDoneButton, showResetButton, isCompleted, isFirstStep, isStepOptional, onBack, onSkip, onNext, onReset } = props;
|
|
6558
6484
|
const getCssClasses = () => {
|
|
6559
6485
|
const cssClasses = [];
|
|
6560
|
-
cssClasses.push(styles$
|
|
6486
|
+
cssClasses.push(styles$b.stepperActions);
|
|
6561
6487
|
className && cssClasses.push(className);
|
|
6562
6488
|
return cssClasses.filter(css => css).join(' ');
|
|
6563
6489
|
};
|
|
6564
|
-
return (
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
isCompleted && showResetButton && (React.createElement(Button, { color: COLOR.secondary, variant: VARIANT.text, onClick: () => onReset && onReset() }, "Reset")),
|
|
6569
|
-
isStepOptional && (React.createElement(Button, { variant: VARIANT.contained, color: COLOR.primary, onClick: () => onSkip && onSkip() }, "Skip")),
|
|
6570
|
-
!isCompleted &&
|
|
6571
|
-
React.createElement(Button, { className: 'ml-2', variant: VARIANT.contained, color: COLOR.primary, endIcon: React.createElement(ChevronRightSolidIcon, null), onClick: () => onNext && onNext() }, "Next"),
|
|
6572
|
-
isCompleted && showDoneButton &&
|
|
6573
|
-
React.createElement(Button, { className: 'ml-2', variant: VARIANT.contained, color: COLOR.primary, startIcon: React.createElement(CheckSolidIcon, null), onClick: () => onNext && onNext() }, "Done"))));
|
|
6490
|
+
return (jsxs("div", { className: getCssClasses(), children: [!isFirstStep &&
|
|
6491
|
+
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 &&
|
|
6492
|
+
jsx(Button, { className: 'ml-2', variant: VARIANT.contained, color: COLOR.primary, endIcon: jsx(ChevronRightSolidIcon, {}), onClick: () => onNext && onNext(), children: "Next" }), isCompleted && showDoneButton &&
|
|
6493
|
+
jsx(Button, { className: 'ml-2', variant: VARIANT.contained, color: COLOR.primary, startIcon: jsx(CheckSolidIcon, {}), onClick: () => onNext && onNext(), children: "Done" })] })] }));
|
|
6574
6494
|
};
|
|
6575
6495
|
|
|
6576
6496
|
const StepPanel = (props) => {
|
|
6577
6497
|
const { children } = props;
|
|
6578
|
-
return (
|
|
6498
|
+
return (jsx("div", { className: "steppanel", children: children }));
|
|
6579
6499
|
};
|
|
6580
6500
|
|
|
6581
|
-
var css_248z$
|
|
6582
|
-
var styles$
|
|
6583
|
-
styleInject(css_248z$
|
|
6501
|
+
var css_248z$a = ".StepConnector-module_stepConnector__A7A-7 {\n flex: 1 1 auto;\n flex-shrink: 0;\n min-width: 20px;\n}\n\n.StepConnector-module_stepConnectorLine__8rQxv {\n display: block;\n border-color: var(--secondary);\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.StepConnector-module_stepConnectorLine__8rQxv.StepConnector-module_isActive__TUIKV {\n border-color: var(--primary);\n}\n\n.StepConnector-module_stepConnectorLineHorizontal__i09K0 {\n border-top-style: solid;\n border-top-width: 1px;\n}";
|
|
6502
|
+
var styles$a = {"stepConnector":"StepConnector-module_stepConnector__A7A-7","stepConnectorLine":"StepConnector-module_stepConnectorLine__8rQxv","isActive":"StepConnector-module_isActive__TUIKV","stepConnectorLineHorizontal":"StepConnector-module_stepConnectorLineHorizontal__i09K0"};
|
|
6503
|
+
styleInject(css_248z$a);
|
|
6584
6504
|
|
|
6585
6505
|
const StepConnector = (props) => {
|
|
6586
6506
|
const { isActive, isHorizontal = true } = props;
|
|
6587
6507
|
const getCssClassesConnector = () => {
|
|
6588
6508
|
const cssClasses = [];
|
|
6589
|
-
cssClasses.push(styles$
|
|
6509
|
+
cssClasses.push(styles$a.stepConnector);
|
|
6590
6510
|
return cssClasses.filter(css => css).join(' ');
|
|
6591
6511
|
};
|
|
6592
6512
|
const getCssClassesLine = () => {
|
|
6593
6513
|
const cssClasses = [];
|
|
6594
|
-
cssClasses.push(styles$
|
|
6595
|
-
isActive && cssClasses.push(styles$
|
|
6596
|
-
isHorizontal && cssClasses.push(styles$
|
|
6514
|
+
cssClasses.push(styles$a.stepConnectorLine);
|
|
6515
|
+
isActive && cssClasses.push(styles$a['isActive']);
|
|
6516
|
+
isHorizontal && cssClasses.push(styles$a.stepConnectorLineHorizontal);
|
|
6597
6517
|
return cssClasses.filter(css => css).join(' ');
|
|
6598
6518
|
};
|
|
6599
|
-
return (
|
|
6600
|
-
React.createElement("div", { className: getCssClassesLine() })));
|
|
6519
|
+
return (jsx("div", { className: getCssClassesConnector(), children: jsx("div", { className: getCssClassesLine() }) }));
|
|
6601
6520
|
};
|
|
6602
6521
|
|
|
6603
|
-
var css_248z$
|
|
6604
|
-
var styles$
|
|
6605
|
-
styleInject(css_248z$
|
|
6522
|
+
var css_248z$9 = ".Stepper-module_stepper__V6odG {\n display: flex;\n align-items: center;\n flex-direction: row;\n margin-bottom: 10px;\n}\n.Stepper-module_stepper__V6odG.Stepper-module_isHorizontal__Q-3Wu {\n overflow-x: auto;\n}";
|
|
6523
|
+
var styles$9 = {"stepper":"Stepper-module_stepper__V6odG","isHorizontal":"Stepper-module_isHorizontal__Q-3Wu"};
|
|
6524
|
+
styleInject(css_248z$9);
|
|
6606
6525
|
|
|
6607
|
-
var css_248z$
|
|
6608
|
-
var styles$
|
|
6609
|
-
styleInject(css_248z$
|
|
6526
|
+
var css_248z$8 = ".Dot-module_dot__w59yb {\n transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n border-radius: 50%;\n width: 8px;\n height: 8px;\n margin: 0px 2px;\n background-color: var(--secondary);\n}\n.Dot-module_dot__w59yb.Dot-module_isActive__V74RJ {\n background-color: var(--primary);\n}";
|
|
6527
|
+
var styles$8 = {"dot":"Dot-module_dot__w59yb","isActive":"Dot-module_isActive__V74RJ"};
|
|
6528
|
+
styleInject(css_248z$8);
|
|
6610
6529
|
|
|
6611
6530
|
const Dot = (props) => {
|
|
6612
6531
|
const { className, color = COLOR.primary, isActive, ...rest } = props;
|
|
6613
6532
|
const getCssClasses = () => {
|
|
6614
6533
|
const cssClasses = [];
|
|
6615
|
-
cssClasses.push(styles$
|
|
6616
|
-
cssClasses.push(styles$
|
|
6617
|
-
isActive && cssClasses.push(styles$
|
|
6534
|
+
cssClasses.push(styles$8.dot);
|
|
6535
|
+
cssClasses.push(styles$8[color]);
|
|
6536
|
+
isActive && cssClasses.push(styles$8.isActive);
|
|
6618
6537
|
className && cssClasses.push(className);
|
|
6619
6538
|
return cssClasses.filter(css => css).join(' ');
|
|
6620
6539
|
};
|
|
6621
|
-
return (
|
|
6540
|
+
return (jsx("div", { className: getCssClasses(), ...rest }));
|
|
6622
6541
|
};
|
|
6623
6542
|
|
|
6624
6543
|
const Stepper = (props) => {
|
|
@@ -6650,16 +6569,16 @@ const Stepper = (props) => {
|
|
|
6650
6569
|
setActiveIndex(index);
|
|
6651
6570
|
};
|
|
6652
6571
|
const renderSteps = (child, index) => {
|
|
6653
|
-
return (
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6572
|
+
return (jsx(Fragment$1, { children: React.isValidElement(child) &&
|
|
6573
|
+
cloneElement(child, {
|
|
6574
|
+
index: index,
|
|
6575
|
+
isActive: activeIndex >= index,
|
|
6576
|
+
isDone: activeIndex > index,
|
|
6577
|
+
isDisabled: isLinear && (activeIndex + 1 < index),
|
|
6578
|
+
showLabel: showLabel,
|
|
6579
|
+
showProgressCheckIcon: showProgressCheckIcon,
|
|
6580
|
+
onClick: () => handleClickStep(index)
|
|
6581
|
+
}) }));
|
|
6663
6582
|
};
|
|
6664
6583
|
const isStepOptional = (index) => {
|
|
6665
6584
|
return steps && steps[index].props.isOptional;
|
|
@@ -6703,46 +6622,40 @@ const Stepper = (props) => {
|
|
|
6703
6622
|
};
|
|
6704
6623
|
const getCssClasses = () => {
|
|
6705
6624
|
const cssClasses = [];
|
|
6706
|
-
cssClasses.push(styles$
|
|
6707
|
-
isHorizontal && cssClasses.push(styles$
|
|
6625
|
+
cssClasses.push(styles$9.stepper);
|
|
6626
|
+
isHorizontal && cssClasses.push(styles$9['isHorizontal']);
|
|
6708
6627
|
return cssClasses.filter(css => css).join(' ');
|
|
6709
6628
|
};
|
|
6710
|
-
return (
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
React.createElement("div", { className: 'd-flex mt-2 align-items-center justify-content-center' }, steps.map((step, index) => React.createElement(Dot, { key: index, isActive: activeIndex >= index }))))));
|
|
6721
|
-
};
|
|
6722
|
-
|
|
6723
|
-
var css_248z$b = ".Typography-module_typography__sw-td {\n font-family: var(--fontFamily);\n}\n.Typography-module_typography__sw-td.Typography-module_wrap__W7G0R {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nh1 {\n font-size: calc(1.375rem + 1.5vw);\n}\n\nh2 {\n font-size: calc(1.325rem + 0.9vw);\n}\n\nh3 {\n font-size: calc(1.3rem + 0.6vw);\n}\n\nh4 {\n font-size: calc(1.275rem + 0.3vw);\n}\n\nh5 {\n font-size: 1.25rem;\n}\n\nh6 {\n font-size: 1rem;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-weight: 500 !important;\n margin-top: 0;\n margin-bottom: 0.5rem;\n line-height: 1.2;\n}";
|
|
6724
|
-
var styles$b = {"typography":"Typography-module_typography__sw-td","wrap":"Typography-module_wrap__W7G0R"};
|
|
6725
|
-
styleInject(css_248z$b);
|
|
6629
|
+
return (jsx(Fragment$1, { children: steps &&
|
|
6630
|
+
jsxs(Fragment$1, { children: [showSteps &&
|
|
6631
|
+
jsx("div", { className: getCssClasses(), children: steps.map((child, index) => (jsxs(Fragment$2, { children: [renderSteps(child, index), index !== steps.length - 1 && jsx(StepConnector, { isActive: activeIndex > index })] }, child.props.value))) }), steps && steps.map((step, index) => jsx(Fragment$2, { children: index === activeIndex &&
|
|
6632
|
+
jsx(StepPanel, { children: step.props.children }) }, step.props.value)), jsx(StepperActions, { className: "mt-3", isFirstStep: activeIndex === 0, isStepOptional: isStepOptional(activeIndex), isCompleted: isLastStep(), onBack: handleBack, onSkip: handleSkip, onNext: handleNext, onReset: handleReset, showDoneButton: showDoneButton, showResetButton: showResetButton }), steps && showDots &&
|
|
6633
|
+
jsx("div", { className: 'd-flex mt-2 align-items-center justify-content-center', children: steps.map((step, index) => jsx(Dot, { isActive: activeIndex >= index }, index)) })] }) }));
|
|
6634
|
+
};
|
|
6635
|
+
|
|
6636
|
+
var css_248z$7 = ".Typography-module_typography__sw-td {\n font-family: var(--fontFamily);\n}\n.Typography-module_typography__sw-td.Typography-module_wrap__W7G0R {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nh1 {\n font-size: calc(1.375rem + 1.5vw);\n}\n\nh2 {\n font-size: calc(1.325rem + 0.9vw);\n}\n\nh3 {\n font-size: calc(1.3rem + 0.6vw);\n}\n\nh4 {\n font-size: calc(1.275rem + 0.3vw);\n}\n\nh5 {\n font-size: 1.25rem;\n}\n\nh6 {\n font-size: 1rem;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-weight: 500 !important;\n margin-top: 0;\n margin-bottom: 0.5rem;\n line-height: 1.2;\n}";
|
|
6637
|
+
var styles$7 = {"typography":"Typography-module_typography__sw-td","wrap":"Typography-module_wrap__W7G0R"};
|
|
6638
|
+
styleInject(css_248z$7);
|
|
6726
6639
|
|
|
6727
6640
|
const Wrapper = (props) => {
|
|
6728
6641
|
const { as = 'span', wrap, children, className, ...rest } = props;
|
|
6729
6642
|
const getCssClasses = () => {
|
|
6730
6643
|
const cssClasses = [];
|
|
6731
|
-
cssClasses.push(styles$
|
|
6732
|
-
cssClasses.push(styles$
|
|
6733
|
-
wrap && cssClasses.push(styles$
|
|
6644
|
+
cssClasses.push(styles$7.typography);
|
|
6645
|
+
cssClasses.push(styles$7.as);
|
|
6646
|
+
wrap && cssClasses.push(styles$7.wrap);
|
|
6734
6647
|
className && cssClasses.push(className);
|
|
6735
6648
|
return cssClasses.filter(css => css).join(' ');
|
|
6736
6649
|
};
|
|
6737
6650
|
return React.createElement(as, { ...rest, className: getCssClasses() }, children);
|
|
6738
6651
|
};
|
|
6739
6652
|
const Typography = ({ children, as = 'span', wrap, ...rest }) => {
|
|
6740
|
-
return (
|
|
6653
|
+
return (jsx(Wrapper, { as: as, wrap: wrap, ...rest, children: children }));
|
|
6741
6654
|
};
|
|
6742
6655
|
|
|
6743
|
-
var css_248z$
|
|
6744
|
-
var styles$
|
|
6745
|
-
styleInject(css_248z$
|
|
6656
|
+
var css_248z$6 = ".Step-module_stepWrapper__IQwq1 {\n display: flex;\n align-items: center;\n padding-left: 8px;\n padding-right: 8px;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Step-module_stepWrapper__IQwq1.Step-module_hasLabel__LZNvd:not(.Step-module_disabled__JnxUP):hover {\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.04);\n border-radius: var(--borderRadius);\n}\n\n.Step-module_step__k42go {\n width: 40px;\n height: 40px;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Step-module_step__k42go:not(.Step-module_hasLabel__LZNvd):not(.Step-module_disabled__JnxUP):hover {\n border-radius: 100%;\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.04);\n}\n.Step-module_step__k42go.Step-module_hasLabel__LZNvd svg {\n width: 18px !important;\n height: 18px !important;\n}\n\n.Step-module_stepIconCircle__hnxIV svg {\n width: 24px;\n height: 24px;\n}\n\n.Step-module_stepValue__B0-xv {\n position: absolute;\n color: var(--secondary-contrast-text);\n}\n.Step-module_stepValue__B0-xv .Step-module_isActive__3GGcl {\n color: var(--primary-contrast-text);\n}";
|
|
6657
|
+
var styles$6 = {"stepWrapper":"Step-module_stepWrapper__IQwq1","hasLabel":"Step-module_hasLabel__LZNvd","disabled":"Step-module_disabled__JnxUP","step":"Step-module_step__k42go","stepIconCircle":"Step-module_stepIconCircle__hnxIV","stepValue":"Step-module_stepValue__B0-xv","isActive":"Step-module_isActive__3GGcl"};
|
|
6658
|
+
styleInject(css_248z$6);
|
|
6746
6659
|
|
|
6747
6660
|
const Step = (props) => {
|
|
6748
6661
|
const { className, label, showLabel, index, value, isActive, isDone, isDisabled, showProgressCheckIcon, onClick } = props;
|
|
@@ -6754,98 +6667,31 @@ const Step = (props) => {
|
|
|
6754
6667
|
};
|
|
6755
6668
|
const getCssClasses = () => {
|
|
6756
6669
|
const cssClasses = [];
|
|
6757
|
-
cssClasses.push(styles$
|
|
6758
|
-
label && showLabel && cssClasses.push(styles$
|
|
6759
|
-
isDisabled && cssClasses.push(styles$
|
|
6670
|
+
cssClasses.push(styles$6.stepWrapper);
|
|
6671
|
+
label && showLabel && cssClasses.push(styles$6['hasLabel']);
|
|
6672
|
+
isDisabled && cssClasses.push(styles$6['disabled']);
|
|
6760
6673
|
className && cssClasses.push(className);
|
|
6761
6674
|
return cssClasses.filter(css => css).join(' ');
|
|
6762
6675
|
};
|
|
6763
6676
|
const getCssClassesStep = () => {
|
|
6764
6677
|
const cssClasses = [];
|
|
6765
|
-
cssClasses.push(styles$
|
|
6766
|
-
label && showLabel && cssClasses.push(styles$
|
|
6767
|
-
isDisabled && cssClasses.push(styles$
|
|
6678
|
+
cssClasses.push(styles$6.step);
|
|
6679
|
+
label && showLabel && cssClasses.push(styles$6['hasLabel']);
|
|
6680
|
+
isDisabled && cssClasses.push(styles$6['disabled']);
|
|
6768
6681
|
return cssClasses.filter(css => css).join(' ');
|
|
6769
6682
|
};
|
|
6770
6683
|
const getCssClassesStepValue = () => {
|
|
6771
6684
|
const cssClasses = [];
|
|
6772
|
-
cssClasses.push(styles$
|
|
6685
|
+
cssClasses.push(styles$6.stepValue);
|
|
6773
6686
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6774
|
-
isActive && cssClasses.push(styles$
|
|
6687
|
+
isActive && cssClasses.push(styles$6.stepValue['isActive']);
|
|
6775
6688
|
return cssClasses.filter(css => css).join(' ');
|
|
6776
6689
|
};
|
|
6777
|
-
return (
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
React.createElement(Icon, null,
|
|
6783
|
-
React.createElement(CheckSolidIcon, null))
|
|
6784
|
-
:
|
|
6785
|
-
React.createElement(Typography, null, index + 1))),
|
|
6786
|
-
label && showLabel &&
|
|
6787
|
-
React.createElement(Typography, { className: "flex-shrink-0" }, label)));
|
|
6788
|
-
};
|
|
6789
|
-
|
|
6790
|
-
var css_248z$9 = "@keyframes SkeletonAvatar-module_skeleton-loading__eM-ZU {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonAvatar-module_skeletonAvatar__03QnJ {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background-color: var(--secondary);\n animation: SkeletonAvatar-module_skeleton-loading__eM-ZU 1s linear infinite alternate;\n}";
|
|
6791
|
-
var styles$9 = {"skeletonAvatar":"SkeletonAvatar-module_skeletonAvatar__03QnJ","skeleton-loading":"SkeletonAvatar-module_skeleton-loading__eM-ZU"};
|
|
6792
|
-
styleInject(css_248z$9);
|
|
6793
|
-
|
|
6794
|
-
const SkeletonAvatar = (props) => {
|
|
6795
|
-
const { className, ...rest } = props;
|
|
6796
|
-
const getCssClasses = () => {
|
|
6797
|
-
const cssClasses = [];
|
|
6798
|
-
cssClasses.push(styles$9.skeletonAvatar);
|
|
6799
|
-
className && cssClasses.push(className);
|
|
6800
|
-
return cssClasses.filter(r => r).join(' ');
|
|
6801
|
-
};
|
|
6802
|
-
return (React.createElement("div", { className: getCssClasses(), ...rest }));
|
|
6803
|
-
};
|
|
6804
|
-
|
|
6805
|
-
var css_248z$8 = "@keyframes SkeletonText-module_skeleton-loading__EYFfJ {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonText-module_skeletonText__E5NCO {\n width: 100%;\n height: 0.7rem;\n margin-bottom: 0.5rem;\n border-radius: 0.25rem;\n animation: SkeletonText-module_skeleton-loading__EYFfJ 1s linear infinite alternate;\n}";
|
|
6806
|
-
var styles$8 = {"skeletonText":"SkeletonText-module_skeletonText__E5NCO","skeleton-loading":"SkeletonText-module_skeleton-loading__EYFfJ"};
|
|
6807
|
-
styleInject(css_248z$8);
|
|
6808
|
-
|
|
6809
|
-
const SkeletonText = (props) => {
|
|
6810
|
-
const { className, ...rest } = props;
|
|
6811
|
-
const getCssClasses = () => {
|
|
6812
|
-
const cssClasses = [];
|
|
6813
|
-
cssClasses.push(styles$8.skeletonText);
|
|
6814
|
-
className && cssClasses.push(className);
|
|
6815
|
-
return cssClasses.filter(r => r).join(' ');
|
|
6816
|
-
};
|
|
6817
|
-
return (React.createElement("div", { className: getCssClasses(), ...rest }));
|
|
6818
|
-
};
|
|
6819
|
-
|
|
6820
|
-
var css_248z$7 = "@keyframes SkeletonFooter-module_skeleton-loading__OEErv {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonFooter-module_skeletonFooter__u2Gxc {\n width: 30%;\n height: 0.7rem;\n border-radius: 0.25rem;\n animation: SkeletonFooter-module_skeleton-loading__OEErv 1s linear infinite alternate;\n}";
|
|
6821
|
-
var styles$7 = {"skeletonFooter":"SkeletonFooter-module_skeletonFooter__u2Gxc","skeleton-loading":"SkeletonFooter-module_skeleton-loading__OEErv"};
|
|
6822
|
-
styleInject(css_248z$7);
|
|
6823
|
-
|
|
6824
|
-
const SkeletonFooter = (props) => {
|
|
6825
|
-
const { className, ...rest } = props;
|
|
6826
|
-
const getCssClasses = () => {
|
|
6827
|
-
const cssClasses = [];
|
|
6828
|
-
cssClasses.push(styles$7.skeletonFooter);
|
|
6829
|
-
className && cssClasses.push(className);
|
|
6830
|
-
return cssClasses.filter(r => r).join(' ');
|
|
6831
|
-
};
|
|
6832
|
-
return (React.createElement("div", { className: getCssClasses(), ...rest }));
|
|
6833
|
-
};
|
|
6834
|
-
|
|
6835
|
-
var css_248z$6 = "@keyframes SkeletonImage-module_skeleton-loading__04lJ7 {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonImage-module_skeletonImage__2EwDG {\n height: 10rem;\n margin: 0.5rem 0;\n border-radius: 0.75rem;\n animation: SkeletonImage-module_skeleton-loading__04lJ7 1s linear infinite alternate;\n}\n\n.SkeletonImage-module_div__tqqrB {\n width: 100%;\n height: 100%;\n object-fit: cover;\n margin: auto;\n border-radius: 0.75rem;\n border-color: none;\n}";
|
|
6836
|
-
var styles$6 = {"skeletonImage":"SkeletonImage-module_skeletonImage__2EwDG","skeleton-loading":"SkeletonImage-module_skeleton-loading__04lJ7","div":"SkeletonImage-module_div__tqqrB"};
|
|
6837
|
-
styleInject(css_248z$6);
|
|
6838
|
-
|
|
6839
|
-
const SkeletonImage = (props) => {
|
|
6840
|
-
const { className, ...rest } = props;
|
|
6841
|
-
const getCssClasses = () => {
|
|
6842
|
-
const cssClasses = [];
|
|
6843
|
-
cssClasses.push(styles$6.skeletonImage);
|
|
6844
|
-
className && cssClasses.push(className);
|
|
6845
|
-
return cssClasses.filter(r => r).join(' ');
|
|
6846
|
-
};
|
|
6847
|
-
return (React.createElement("div", { className: getCssClasses(), ...rest },
|
|
6848
|
-
React.createElement("div", { className: styles$6.img })));
|
|
6690
|
+
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 ?
|
|
6691
|
+
jsx(Icon, { children: jsx(CheckSolidIcon, {}) })
|
|
6692
|
+
:
|
|
6693
|
+
jsx(Typography, { children: index + 1 }) })] }), label && showLabel &&
|
|
6694
|
+
jsx(Typography, { className: "flex-shrink-0", children: label })] }));
|
|
6849
6695
|
};
|
|
6850
6696
|
|
|
6851
6697
|
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}";
|
|
@@ -6863,13 +6709,12 @@ const Table = (props) => {
|
|
|
6863
6709
|
className && cssClasses.push(className);
|
|
6864
6710
|
return cssClasses.filter(css => css).join(' ');
|
|
6865
6711
|
};
|
|
6866
|
-
return (
|
|
6867
|
-
React.createElement("table", { className: getCssClasses(), ...rest }, children)));
|
|
6712
|
+
return (jsx(ConditionalWrapper, { condition: responsive, wrapper: (children) => jsx("div", { className: styles$5.tableResponsive, children: children }), children: jsx("table", { className: getCssClasses(), ...rest, children: children }) }));
|
|
6868
6713
|
};
|
|
6869
6714
|
|
|
6870
6715
|
const TableRow = (props) => {
|
|
6871
6716
|
const { children, ...rest } = props;
|
|
6872
|
-
return (
|
|
6717
|
+
return (jsx("tr", { ...rest, children: children }));
|
|
6873
6718
|
};
|
|
6874
6719
|
|
|
6875
6720
|
const TableContext = createContext({
|
|
@@ -6879,21 +6724,19 @@ const useTableContext = () => useContext(TableContext);
|
|
|
6879
6724
|
|
|
6880
6725
|
const TableHead = (props) => {
|
|
6881
6726
|
const { children, ...rest } = props;
|
|
6882
|
-
return (
|
|
6883
|
-
React.createElement("thead", { ...rest }, children)));
|
|
6727
|
+
return (jsx(TableContext.Provider, { value: { variant: 'head' }, children: jsx("thead", { ...rest, children: children }) }));
|
|
6884
6728
|
};
|
|
6885
6729
|
|
|
6886
6730
|
const TableBody = (props) => {
|
|
6887
6731
|
const { children, ...rest } = props;
|
|
6888
|
-
return (
|
|
6889
|
-
React.createElement("tbody", { ...rest }, children)));
|
|
6732
|
+
return (jsx(TableContext.Provider, { value: { variant: 'body' }, children: jsx("tbody", { ...rest, children: children }) }));
|
|
6890
6733
|
};
|
|
6891
6734
|
|
|
6892
6735
|
const TableCell = (props) => {
|
|
6893
6736
|
const { variant } = useTableContext();
|
|
6894
6737
|
const { children, component, ...rest } = props;
|
|
6895
|
-
return (
|
|
6896
|
-
|
|
6738
|
+
return (jsx(ConditionalWrapper, { condition: true, wrapper: (children) => ((variant === 'head' || component === 'th') ? (jsx("th", { ...rest, children: children })) :
|
|
6739
|
+
jsx("td", { ...rest, children: children })), children: children }));
|
|
6897
6740
|
};
|
|
6898
6741
|
|
|
6899
6742
|
const TabContext = createContext({});
|
|
@@ -6911,7 +6754,7 @@ const TabIndicator = (props) => {
|
|
|
6911
6754
|
cssClasses.push(styles$4[color]);
|
|
6912
6755
|
return cssClasses.filter(css => css).join(' ');
|
|
6913
6756
|
};
|
|
6914
|
-
return (
|
|
6757
|
+
return (jsx("span", { className: getCssClasses(), style: {
|
|
6915
6758
|
width: width,
|
|
6916
6759
|
left: `calc(calc(100% / ${amount}) * ${index})`
|
|
6917
6760
|
} }));
|
|
@@ -6953,12 +6796,8 @@ const Tabs = (props) => {
|
|
|
6953
6796
|
className && cssClasses.push(className);
|
|
6954
6797
|
return cssClasses.filter(css => css).join(' ');
|
|
6955
6798
|
};
|
|
6956
|
-
return (
|
|
6957
|
-
|
|
6958
|
-
React.createElement("div", { className: getCssClasses() },
|
|
6959
|
-
children,
|
|
6960
|
-
children &&
|
|
6961
|
-
React.createElement(TabIndicator, { color: indicatorColor, width: (100 / React.Children.toArray(children).length) + '%', index: selectedIndex, amount: React.Children.toArray(children).length })))));
|
|
6799
|
+
return (jsx(ButtonContext.Provider, { value: { color: color || COLOR.light }, children: jsx(TabContext.Provider, { value: tabContext, children: jsxs("div", { className: getCssClasses(), children: [children, children &&
|
|
6800
|
+
jsx(TabIndicator, { color: indicatorColor, width: (100 / React.Children.toArray(children).length) + '%', index: selectedIndex, amount: React.Children.toArray(children).length })] }) }) }));
|
|
6962
6801
|
};
|
|
6963
6802
|
|
|
6964
6803
|
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}";
|
|
@@ -6978,12 +6817,12 @@ const Tab = (props) => {
|
|
|
6978
6817
|
onClick && onClick({ event: event, value: value });
|
|
6979
6818
|
setSelectedValue && setSelectedValue(value);
|
|
6980
6819
|
};
|
|
6981
|
-
return (
|
|
6820
|
+
return (jsx(Button, { className: getCssClasses(), onClick: handleClick, isActive: selectedValue === value, disabled: disabled, children: label }));
|
|
6982
6821
|
};
|
|
6983
6822
|
|
|
6984
6823
|
const TabPanel = (props) => {
|
|
6985
6824
|
const { children, value, index, ...rest } = props;
|
|
6986
|
-
return (
|
|
6825
|
+
return (jsx("div", { role: "tabpanel", hidden: value !== index, id: `tabpanel-${index}`, "aria-labelledby": `wrapped-tab-${index}`, ...rest, children: value === index && children }));
|
|
6987
6826
|
};
|
|
6988
6827
|
|
|
6989
6828
|
const HourSelect = (props) => {
|
|
@@ -7006,7 +6845,7 @@ const HourSelect = (props) => {
|
|
|
7006
6845
|
setNewValue(e);
|
|
7007
6846
|
onChange && onChange(e);
|
|
7008
6847
|
};
|
|
7009
|
-
return (
|
|
6848
|
+
return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: hourOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7010
6849
|
};
|
|
7011
6850
|
|
|
7012
6851
|
const MilliSecondSelect = (props) => {
|
|
@@ -7029,7 +6868,7 @@ const MilliSecondSelect = (props) => {
|
|
|
7029
6868
|
setNewValue(e);
|
|
7030
6869
|
onChange && onChange(e);
|
|
7031
6870
|
};
|
|
7032
|
-
return (
|
|
6871
|
+
return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: milliSecondOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7033
6872
|
};
|
|
7034
6873
|
|
|
7035
6874
|
const MinuteSelect = (props) => {
|
|
@@ -7052,7 +6891,7 @@ const MinuteSelect = (props) => {
|
|
|
7052
6891
|
setNewValue(e);
|
|
7053
6892
|
onChange && onChange(e);
|
|
7054
6893
|
};
|
|
7055
|
-
return (
|
|
6894
|
+
return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: minuteOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7056
6895
|
};
|
|
7057
6896
|
|
|
7058
6897
|
const SecondSelect = (props) => {
|
|
@@ -7075,7 +6914,7 @@ const SecondSelect = (props) => {
|
|
|
7075
6914
|
setNewValue(e);
|
|
7076
6915
|
onChange && onChange(e);
|
|
7077
6916
|
};
|
|
7078
|
-
return (
|
|
6917
|
+
return (jsx(Select, { id: id, name: name, className: getCssClasses(), options: secondOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7079
6918
|
};
|
|
7080
6919
|
|
|
7081
6920
|
var TIMEMODE;
|
|
@@ -7106,23 +6945,11 @@ const TimeSelect = (props) => {
|
|
|
7106
6945
|
setCurrDate(newDate);
|
|
7107
6946
|
onChange && onChange(newDate);
|
|
7108
6947
|
};
|
|
7109
|
-
return (
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
showMinutes &&
|
|
7115
|
-
React.createElement(Column, null,
|
|
7116
|
-
React.createElement(FormLabel, null, "Minutes"),
|
|
7117
|
-
React.createElement(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MINUTE) })),
|
|
7118
|
-
showSeconds &&
|
|
7119
|
-
React.createElement(Column, null,
|
|
7120
|
-
React.createElement(FormLabel, null, "Seconds"),
|
|
7121
|
-
React.createElement(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.SECONDS) })),
|
|
7122
|
-
showMilliSeconds &&
|
|
7123
|
-
React.createElement(Column, null,
|
|
7124
|
-
React.createElement(FormLabel, null, "Milliseconds"),
|
|
7125
|
-
React.createElement(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MILLISECONDS) }))));
|
|
6948
|
+
return (jsxs(Row, { className: getCssClasses(), children: [showHours &&
|
|
6949
|
+
jsxs(Column, { children: [jsx(FormLabel, { children: "Hours" }), jsx(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.HOUR) })] }), showMinutes &&
|
|
6950
|
+
jsxs(Column, { children: [jsx(FormLabel, { children: "Minutes" }), jsx(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MINUTE) })] }), showSeconds &&
|
|
6951
|
+
jsxs(Column, { children: [jsx(FormLabel, { children: "Seconds" }), jsx(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.SECONDS) })] }), showMilliSeconds &&
|
|
6952
|
+
jsxs(Column, { children: [jsx(FormLabel, { children: "Milliseconds" }), jsx(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MILLISECONDS) })] })] }));
|
|
7126
6953
|
};
|
|
7127
6954
|
|
|
7128
6955
|
var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important;\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 0px;\n}\n.TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important;\n}";
|
|
@@ -7137,7 +6964,7 @@ const TreeView = (props) => {
|
|
|
7137
6964
|
className && cssClasses.push(className);
|
|
7138
6965
|
return cssClasses.filter(css => css).join(' ');
|
|
7139
6966
|
};
|
|
7140
|
-
return (
|
|
6967
|
+
return (jsx("ul", { className: getCssClasses(), ...rest, children: children }));
|
|
7141
6968
|
};
|
|
7142
6969
|
|
|
7143
6970
|
var css_248z = ".TreeItem-module_treeItem__Mxsjr {\n display: flex;\n flex-direction: column;\n min-height: 48px;\n justify-content: center;\n}";
|
|
@@ -7174,14 +7001,9 @@ const TreeItem = (props) => {
|
|
|
7174
7001
|
setIsSelected(!_isSelected);
|
|
7175
7002
|
onItemSelect && onItemSelect({ id: nodeId, isSelected: !_isSelected });
|
|
7176
7003
|
};
|
|
7177
|
-
return (
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
React.createElement(IconButton, { onClick: () => handleOnToggleExpand(nodeId), icon: !_isExpanded ? React.createElement(ChevronRightSolidIcon, null) : React.createElement(ChevronDownSolidIcon, null) }),
|
|
7181
|
-
isSelectable && nodeId &&
|
|
7182
|
-
React.createElement(Checkbox, { checked: _isSelected, onChange: () => handleOnSelect(nodeId) }),
|
|
7183
|
-
label),
|
|
7184
|
-
children && _isExpanded ? React.createElement("ul", null, children) : null));
|
|
7004
|
+
return (jsxs("li", { className: getCssClasses(), style: { paddingLeft: `${(TreeViewItemPadding * (children ? 0 : 1))}px` }, children: [jsxs("div", { className: "d-flex align-items-center", children: [children && nodeId &&
|
|
7005
|
+
jsx(IconButton, { onClick: () => handleOnToggleExpand(nodeId), icon: !_isExpanded ? jsx(ChevronRightSolidIcon, {}) : jsx(ChevronDownSolidIcon, {}) }), isSelectable && nodeId &&
|
|
7006
|
+
jsx(Checkbox, { checked: _isSelected, onChange: () => handleOnSelect(nodeId) }), label] }), children && _isExpanded ? jsx("ul", { children: children }) : null] }));
|
|
7185
7007
|
};
|
|
7186
7008
|
|
|
7187
7009
|
export { Alert, AppBar, AppBarTitle, AutoComplete, Backdrop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonContext, ButtonGroup, COLOR, Card, CardBody, CardFooter, CardImage, CardSubtitle, CardText, CardTitle, CaretDownSolidIcon, CheckSolidIcon, CheckSquareRegularIcon, Checkbox, ChevronDownSolidIcon, ChevronLeftSolidIcon, ChevronRightSolidIcon, ChevronUpSolidIcon, Chip, CircleSolidIcon, Column, ConditionalWrapper, CssTransition, DATEMODE, DatePicker, DateSelect, DaySelect, Dot, Drawer, EmailValidator, ExpansionPanel, ExpansionPanelContent, ExpansionPanelHeader, FileInput, FloatingActionButton, Form, FormControl, FormError, FormGroup, FormHint, FormInput, FormLabel, GlobalModal, HomeSolidIcon, HourSelect, Icon, IconButton, IsEmptyValidator, IsEqualValidator, Link, List, ListItem, ListItemAction, ListItemAvatar, ListItemIcon, ListItemText, LoadingIndicator, LoadingIndicatorContainer, 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, TreeItem, TreeView, Typography, VARIANT, YearSelect, loadingIndicatorService, modalService, snackbarService, useButtonContext, useConstructor, useCssClasses, useDebounce, useHover, useMobileDetect, useOnDestroy, useWindowSize };
|