@pdg/react-form 1.0.132 → 1.0.133

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/dist/index.esm.js CHANGED
@@ -1,30 +1,4 @@
1
- import React,{createContext,useContext,useRef,useCallback,useMemo,useLayoutEffect,useEffect,useState,useId}from'react';import classNames from'classnames';import {Box,styled,useTheme,InputLabel,Grid,Collapse,FormHelperText,InputAdornment,IconButton,TextField,Chip,Autocomplete,Icon,CircularProgress,MenuItem,Checkbox,FormControl,Input,OutlinedInput,FilledInput,FormControlLabel,Typography,RadioGroup,Radio,ToggleButton,ToggleButtonGroup,Rating,Skeleton,darken,Button,Tooltip,tooltipClasses,ClickAwayListener,Dialog,DialogTitle,DialogContent,DialogActions,Switch,Paper,Menu}from'@mui/material';import {empty,ifUndefined,nextTick,notEmpty,equal,telNoAutoDash,companyNoAutoDash,personalNoAutoDash}from'@pdg/util';import dayjs from'dayjs';import {useAutoUpdateLayoutRef,useAutoUpdateState,useAutoUpdateRefState,useFirstSkipEffect}from'@pdg/react-hook';import {PdgButton,PdgIcon,PdgIconText}from'@pdg/react-component';import {useResizeDetector}from'react-resize-detector';import {NumericFormat}from'react-number-format';import {CheckBox,CheckBoxOutlineBlank,RadioButtonUnchecked,RadioButtonChecked}from'@mui/icons-material';import {Editor}from'@tinymce/tinymce-react';import {AdapterDayjs}from'@mui/x-date-pickers/AdapterDayjs';import {PickersDay,StaticDatePicker,LocalizationProvider,DesktopDatePicker,StaticDateTimePicker,DesktopDateTimePicker}from'@mui/x-date-pickers';import SimpleBar from'simplebar-react';import'dayjs/locale/ko';function styleInject(css, ref) {
2
- if ( ref === void 0 ) ref = {};
3
- var insertAt = ref.insertAt;
4
-
5
- if (!css || typeof document === 'undefined') { return; }
6
-
7
- var head = document.head || document.getElementsByTagName('head')[0];
8
- var style = document.createElement('style');
9
- style.type = 'text/css';
10
-
11
- if (insertAt === 'top') {
12
- if (head.firstChild) {
13
- head.insertBefore(style, head.firstChild);
14
- } else {
15
- head.appendChild(style);
16
- }
17
- } else {
18
- head.appendChild(style);
19
- }
20
-
21
- if (style.styleSheet) {
22
- style.styleSheet.cssText = css;
23
- } else {
24
- style.appendChild(document.createTextNode(css));
25
- }
26
- }var css_248z$m = ".simplebar-track.simplebar-vertical {\n width: 8px !important;\n}\n.simplebar-track.simplebar-vertical .simplebar-scrollbar.simplebar-visible:before {\n opacity: 0.3 !important;\n}";
27
- styleInject(css_248z$m);/******************************************************************************
1
+ import React,{createContext,useContext,useRef,useCallback,useMemo,useLayoutEffect,useEffect,useState,useId}from'react';import classNames from'classnames';import {Box,styled,useTheme,InputLabel,Grid,Collapse,FormHelperText,InputAdornment,IconButton,TextField,Chip,Autocomplete,Icon,CircularProgress,MenuItem,Checkbox,FormControl,Input,OutlinedInput,FilledInput,FormControlLabel,Typography,RadioGroup,Radio,ToggleButton,ToggleButtonGroup,Rating,Skeleton,darken,Button,Tooltip,tooltipClasses,ClickAwayListener,Dialog,DialogTitle,DialogContent,DialogActions,Switch,Paper,Menu}from'@mui/material';import {empty,ifUndefined,nextTick,notEmpty,equal,telNoAutoDash,companyNoAutoDash,personalNoAutoDash}from'@pdg/util';import dayjs from'dayjs';import {useAutoUpdateLayoutRef,useAutoUpdateState,useAutoUpdateRefState,useFirstSkipEffect,useForceUpdate}from'@pdg/react-hook';import {PdgButton,PdgIcon,PdgIconText}from'@pdg/react-component';import {useResizeDetector}from'react-resize-detector';import {NumericFormat}from'react-number-format';import {CheckBoxOutlineBlank,CheckBox,RadioButtonChecked,RadioButtonUnchecked}from'@mui/icons-material';import {Editor}from'@tinymce/tinymce-react';import {AdapterDayjs}from'@mui/x-date-pickers/AdapterDayjs';import {PickersDay,StaticDatePicker,LocalizationProvider,DesktopDatePicker,StaticDateTimePicker,DesktopDateTimePicker}from'@mui/x-date-pickers';import SimpleBar from'simplebar-react';import'dayjs/locale/ko';/******************************************************************************
28
2
  Copyright (c) Microsoft Corporation.
29
3
 
30
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -38,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
38
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39
13
  PERFORMANCE OF THIS SOFTWARE.
40
14
  ***************************************************************************** */
41
- /* global Reflect, Promise, SuppressedError, Symbol */
15
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
42
16
 
43
17
 
44
18
  var __assign = function() {
@@ -654,9 +628,9 @@ var appendFormValueData = function (data, itemCommands) {
654
628
  * ******************************************************************************************************************/
655
629
  return (React.createElement(PdgButton, __assign({ ref: ref, className: classNames(className, 'FormButton'), type: type, variant: initVariant ? initVariant : type === 'submit' ? 'contained' : 'outlined', size: size, color: color, fullWidth: fullWidth, onClick: onClick }, props)));
656
630
  });
657
- var FormButton$1 = React.memo(FormButton);var IconPdgIcon = styled(PdgIcon)(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n vertical-align: middle;\n margin-right: 3px;\n margin-top: -4px;\n margin-bottom: -2px;\n"], ["\n vertical-align: middle;\n margin-right: 3px;\n margin-top: -4px;\n margin-bottom: -2px;\n"])));
631
+ var FormButton$1 = React.memo(FormButton);var IconPdgIcon = styled(PdgIcon)(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n vertical-align: middle;\n margin-right: 3px;\n margin-top: -4px;\n margin-bottom: -2px;\n"], ["\n vertical-align: middle;\n margin-right: 3px;\n margin-top: -4px;\n margin-bottom: -2px;\n"])));
658
632
  var ChildrenSpan = styled('span')(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n vertical-align: middle;\n"], ["\n vertical-align: middle;\n"])));
659
- var templateObject_1$i, templateObject_2$9;var FormLabel = React.forwardRef(function (_a, ref) {
633
+ var templateObject_1$j, templateObject_2$9;var FormLabel = React.forwardRef(function (_a, ref) {
660
634
  /********************************************************************************************************************
661
635
  * Use
662
636
  * ******************************************************************************************************************/
@@ -672,11 +646,11 @@ var templateObject_1$i, templateObject_2$9;var FormLabel = React.forwardRef(func
672
646
  /********************************************************************************************************************
673
647
  * Render
674
648
  * ******************************************************************************************************************/
675
- return (React.createElement(InputLabel, __assign({ ref: ref, shrink: true, className: 'FormItemBase-InputLabel', size: size === 'medium' ? 'normal' : size, error: error, style: newStyle }, props), icon ? (React.createElement(React.Fragment, null,
649
+ return (React.createElement(InputLabel, __assign({ ref: ref, shrink: true, className: 'FormItemBase-InputLabel', size: size, error: error, style: newStyle }, props), icon ? (React.createElement(React.Fragment, null,
676
650
  React.createElement(IconPdgIcon, null, icon),
677
651
  React.createElement(ChildrenSpan, null, children))) : (children)));
678
652
  });
679
- var FormLabel$1 = React.memo(FormLabel);var StyledLineBox = styled(Box)(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n border-bottom: thin solid #dfdfdf;\n position: absolute;\n left: 0;\n top: 50%;\n width: 100%;\n"], ["\n border-bottom: thin solid #dfdfdf;\n position: absolute;\n left: 0;\n top: 50%;\n width: 100%;\n"])));
653
+ var FormLabel$1 = React.memo(FormLabel);var StyledLineBox = styled(Box)(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n border-bottom: thin solid #dfdfdf;\n position: absolute;\n left: 0;\n top: 50%;\n width: 100%;\n"], ["\n border-bottom: thin solid #dfdfdf;\n position: absolute;\n left: 0;\n top: 50%;\n width: 100%;\n"])));
680
654
  var StyledErrorLineBox = styled(Box)(function (_a) {
681
655
  var theme = _a.theme;
682
656
  return ({
@@ -699,7 +673,7 @@ var StyledWarningLineBox = styled(Box)(function (_a) {
699
673
  opacity: 0.4,
700
674
  });
701
675
  });
702
- var templateObject_1$h;var DEFAULT_LINE_STYLE = { flex: 1, position: 'relative' };
676
+ var templateObject_1$i;var DEFAULT_LINE_STYLE = { flex: 1, position: 'relative' };
703
677
  var FormDivider = React.forwardRef(function (_a, ref) {
704
678
  /********************************************************************************************************************
705
679
  * FormState
@@ -744,7 +718,7 @@ var FormDivider = React.forwardRef(function (_a, ref) {
744
718
  /********************************************************************************************************************
745
719
  * Render
746
720
  * ******************************************************************************************************************/
747
- return (React.createElement(Grid, { ref: ref, item: true, xs: 12, style: style, className: classNames(className, 'FormDivider'), sx: sx },
721
+ return (React.createElement(Grid, { ref: ref, size: { xs: 12 }, style: style, className: classNames(className, 'FormDivider'), sx: sx },
748
722
  React.createElement(Box, { sx: {
749
723
  display: 'flex',
750
724
  py: 1,
@@ -762,8 +736,8 @@ var FormDivider = React.forwardRef(function (_a, ref) {
762
736
  } }, label)),
763
737
  (line || collapse) && (React.createElement("div", { style: lineStyle }, error ? React.createElement(StyledErrorLineBox, null) : warning ? React.createElement(StyledWarningLineBox, null) : React.createElement(StyledLineBox, null))),
764
738
  collapse && (React.createElement(PdgIcon, { sx: { opacity: 0.6, ml: 1 }, color: error ? 'error' : warning ? 'warning' : undefined }, collapseIn ? 'KeyboardDoubleArrowUp' : 'KeyboardDoubleArrowDown')))));
765
- });var StyledWrapGrid$1 = styled(Grid)(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
766
- var templateObject_1$g;var FormBlock = React.forwardRef(function (_a, ref) {
739
+ });var StyledWrapGrid$1 = styled(Grid)(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
740
+ var templateObject_1$h;var FormBlock = React.forwardRef(function (_a, ref) {
767
741
  /********************************************************************************************************************
768
742
  * FormState
769
743
  * ******************************************************************************************************************/
@@ -819,16 +793,16 @@ var templateObject_1$g;var FormBlock = React.forwardRef(function (_a, ref) {
819
793
  * Render
820
794
  * ******************************************************************************************************************/
821
795
  return (React.createElement(FormContext.Provider, { value: __assign(__assign({}, otherFormState), { variant: variant, size: size, color: color, spacing: spacing, focused: focused, labelShrink: labelShrink, fullWidth: fullWidth }) },
822
- React.createElement(Grid, { item: true, ref: ref, xs: 12, className: classNames(className, 'FormBlock'), style: style, sx: sx },
796
+ React.createElement(Grid, { ref: ref, size: { xs: 12 }, className: classNames(className, 'FormBlock'), style: style, sx: sx },
823
797
  React.createElement(Grid, { container: true, spacing: spacing },
824
798
  (icon || label || line || collapse) && (React.createElement(FormDivider, { className: 'FormBlock-header', collapse: collapse, collapseIn: collapseIn, size: size, icon: icon, color: color, label: label, line: line, error: error, warning: warning, lineVerticalMargin: lineVerticalMargin, hidden: hidden, onCollapseChange: collapse ? function (newCollapseIn) { return setCollapseIn(newCollapseIn); } : undefined })),
825
- React.createElement(StyledWrapGrid$1, { item: true, xs: 12 },
799
+ React.createElement(StyledWrapGrid$1, { size: { xs: 12 } },
826
800
  React.createElement(Container, __assign({}, containerProps),
827
801
  React.createElement(Grid, { container: true, spacing: spacing },
828
- React.createElement(StyledWrapGrid$1, { item: true, xs: 12, className: 'FormBlock-body' },
802
+ React.createElement(StyledWrapGrid$1, { size: { xs: 12 }, className: 'FormBlock-body' },
829
803
  React.createElement(Grid, { className: 'FormBlock-content', container: true, spacing: spacing }, children)))))))));
830
- });var StyledWrapGrid = styled(Grid)(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
831
- var templateObject_1$f;var FormRow = React.forwardRef(function (_a, ref) {
804
+ });var StyledWrapGrid = styled(Grid)(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
805
+ var templateObject_1$g;var FormRow = React.forwardRef(function (_a, ref) {
832
806
  /********************************************************************************************************************
833
807
  * FormState
834
808
  * ******************************************************************************************************************/
@@ -896,16 +870,16 @@ var templateObject_1$f;var FormRow = React.forwardRef(function (_a, ref) {
896
870
  * Render
897
871
  * ******************************************************************************************************************/
898
872
  return (React.createElement(FormContextProvider, { value: __assign(__assign({}, otherFormState), { variant: variant, size: size, color: color, spacing: spacing, focused: focused, labelShrink: labelShrink, fullWidth: fullWidth, formColAutoXs: formColAutoXs, onAddFormCol: handleAddFormCol, onRemoveFormCol: handleRemoveFormCol }) },
899
- React.createElement(Grid, { item: true, ref: ref, xs: 12, className: classNames(className, 'FormRow'), style: style, sx: sx },
873
+ React.createElement(Grid, { ref: ref, size: { xs: 12 }, className: classNames(className, 'FormRow'), style: style, sx: sx },
900
874
  React.createElement(Grid, { container: true, spacing: spacing },
901
875
  (icon || label || line) && (React.createElement(FormDivider, { className: classNames(className, 'FormRow-header'), size: size, icon: icon, color: color, label: label, line: line, error: error, warning: warning, lineVerticalMargin: lineVerticalMargin, hidden: hidden })),
902
- React.createElement(StyledWrapGrid, { item: true, xs: 12, className: 'FormRow-body' },
876
+ React.createElement(StyledWrapGrid, { size: { xs: 12 }, className: 'FormRow-body' },
903
877
  React.createElement(Grid, { className: 'FormRow-content', container: true, spacing: spacing, direction: 'row', style: { flexWrap: 'nowrap' } }, children),
904
878
  helperText && (React.createElement(FormHelperText, { className: 'FormRow-helper-text', component: 'div', error: error }, helperText)))))));
905
- });var StyledFormLabelContainerDiv = styled('div')(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n position: relative;\n height: 20px;\n"], ["\n position: relative;\n height: 20px;\n"])));
879
+ });var StyledFormLabelContainerDiv = styled('div')(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n position: relative;\n height: 20px;\n"], ["\n position: relative;\n height: 20px;\n"])));
906
880
  var StyledFormLabel = styled(FormLabel$1)(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n position: absolute;\n left: 5px;\n top: 0;\n"], ["\n position: absolute;\n left: 5px;\n top: 0;\n"])));
907
881
  var StyledContentContainerBox = styled(Box)(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex-wrap: wrap;\n"])));
908
- var templateObject_1$e, templateObject_2$8, templateObject_3$4;var FormCol = React.forwardRef(function (_a, ref) {
882
+ var templateObject_1$f, templateObject_2$8, templateObject_3$4;var FormCol = React.forwardRef(function (_a, ref) {
909
883
  /********************************************************************************************************************
910
884
  * ID
911
885
  * ******************************************************************************************************************/
@@ -915,10 +889,6 @@ var templateObject_1$e, templateObject_2$8, templateObject_3$4;var FormCol = Rea
915
889
  //----------------------------------------------------------------------------------------------------------------
916
890
  xs = _a.xs, className = _a.className, children = _a.children, initStyle = _a.style, sx = _a.sx;
917
891
  var id = useId();
918
- /********************************************************************************************************************
919
- * Ref
920
- * ******************************************************************************************************************/
921
- var gridRef = useRef(null);
922
892
  /********************************************************************************************************************
923
893
  * FormState
924
894
  * ******************************************************************************************************************/
@@ -937,11 +907,8 @@ var templateObject_1$e, templateObject_2$8, templateObject_3$4;var FormCol = Rea
937
907
  /********************************************************************************************************************
938
908
  * ResizeDetector
939
909
  * ******************************************************************************************************************/
940
- var formColWidth = useResizeDetector({
941
- targetRef: gridRef,
942
- handleWidth: true,
943
- handleHeight: false,
944
- }).width;
910
+ var _c = useResizeDetector({ handleHeight: false }), gridRef = _c.ref, resizedFormColWidth = _c.width;
911
+ var formColWidth = ifUndefined(resizedFormColWidth, 0);
945
912
  /********************************************************************************************************************
946
913
  * LayoutEffect
947
914
  * ******************************************************************************************************************/
@@ -972,40 +939,28 @@ var templateObject_1$e, templateObject_2$8, templateObject_3$4;var FormCol = Rea
972
939
  * Render
973
940
  * ******************************************************************************************************************/
974
941
  return (React.createElement(FormContextProvider, { value: __assign(__assign({}, otherFormState), { variant: variant, size: size, color: color, spacing: spacing, focused: focused, labelShrink: labelShrink, fullWidth: fullWidth, formColGap: formColGap, formColXs: xs || formColAutoXs || 12, formColWidth: formColWidth, formColWithLabel: !!label, formColWithHelperText: !!helperText }) },
975
- React.createElement(Grid, { ref: gridRef, item: true, xs: xs || formColAutoXs || 12, className: classNames(className, 'FormCol', !!label && 'with-label', !!helperText && 'with-helper-text'), style: hidden ? __assign(__assign({}, initStyle), { display: 'none' }) : initStyle, sx: sx },
942
+ React.createElement(Grid, { ref: gridRef, size: { xs: xs || formColAutoXs || 12 }, className: classNames(className, 'FormCol', !!label && 'with-label', !!helperText && 'with-helper-text'), style: hidden ? __assign(__assign({}, initStyle), { display: 'none' }) : initStyle, sx: sx },
976
943
  React.createElement(Grid, { container: true, direction: 'column' },
977
- label && (React.createElement(Grid, { item: true, className: 'FormCol-header' },
944
+ label && (React.createElement(Grid, { className: 'FormCol-header' },
978
945
  React.createElement(StyledFormLabelContainerDiv, null,
979
946
  React.createElement(StyledFormLabel, { className: 'FormCol-FormLabel', size: size, icon: icon, focused: focused, color: color, error: error, warning: warning }, label)))),
980
- React.createElement(Grid, { item: true, xs: 2, className: 'FormCol-content' },
947
+ React.createElement(Grid, { size: { xs: 2, sm: 12 }, className: 'FormCol-content' },
981
948
  React.createElement(StyledContentContainerBox, { gap: formColGap }, children)),
982
- helperText && (React.createElement(Grid, { item: true, className: 'FormCol-helper-text' },
949
+ helperText && (React.createElement(Grid, { className: 'FormCol-helper-text' },
983
950
  React.createElement(FormHelperText, { component: 'div', error: error, style: { marginLeft: helperTextShift ? 14 : 5 } }, helperText)))))));
984
- });var StyledContainerDiv = styled('div')(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n flex: 1;\n position: relative;\n"], ["\n flex: 1;\n position: relative;\n"])));
951
+ });var StyledContainerDiv = styled('div')(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n flex: 1;\n position: relative;\n"], ["\n flex: 1;\n position: relative;\n"])));
985
952
  var StyledContentDiv = styled('div')(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n ::-webkit-scrollbar {\n width: 8px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: #e4e4e4;\n border-radius: 100px;\n }\n\n ::-webkit-scrollbar-thumb:hover {\n background-color: #cfcfcf;\n border-radius: 100px;\n }\n"], ["\n ::-webkit-scrollbar {\n width: 8px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: #e4e4e4;\n border-radius: 100px;\n }\n\n ::-webkit-scrollbar-thumb:hover {\n background-color: #cfcfcf;\n border-radius: 100px;\n }\n"])));
986
- var templateObject_1$d, templateObject_2$7;var FormBody = function (_a) {
987
- /********************************************************************************************************************
988
- * Ref
989
- * ******************************************************************************************************************/
990
- var children = _a.children, hidden = _a.hidden;
991
- var containerRef = useRef(null);
953
+ var templateObject_1$e, templateObject_2$7;var FormBody = function (_a) {
992
954
  /********************************************************************************************************************
993
955
  * State
994
956
  * ******************************************************************************************************************/
957
+ var children = _a.children, hidden = _a.hidden;
995
958
  var _b = useFormState(), spacing = _b.spacing, fullHeight = _b.fullHeight;
996
- var _c = useState(0), height = _c[0], setHeight = _c[1];
997
959
  /********************************************************************************************************************
998
960
  * ResizeDetector
999
961
  * ******************************************************************************************************************/
1000
- useResizeDetector({
1001
- targetRef: containerRef,
1002
- handleWidth: false,
1003
- handleHeight: true,
1004
- onResize: function () {
1005
- var _a, _b;
1006
- setHeight(((_b = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.height) || 0);
1007
- },
1008
- });
962
+ var _c = useResizeDetector({ handleWidth: false }), containerRef = _c.ref, resizedHeight = _c.height;
963
+ var height = ifUndefined(resizedHeight, 0);
1009
964
  /********************************************************************************************************************
1010
965
  * Style
1011
966
  * ******************************************************************************************************************/
@@ -1028,26 +983,24 @@ var templateObject_1$d, templateObject_2$7;var FormBody = function (_a) {
1028
983
  var children = _a.children, noLine = _a.noLine, hidden = _a.hidden;
1029
984
  var spacing = useFormState().spacing;
1030
985
  var style = useMemo(function () { return (hidden ? { display: 'none' } : undefined); }, [hidden]);
1031
- return (React.createElement(Grid, { item: true, xs: 12, className: 'FormFooter', style: style },
986
+ return (React.createElement(Grid, { size: { xs: 12 }, className: 'FormFooter', style: style },
1032
987
  React.createElement(Grid, { container: true, spacing: spacing, direction: 'column' },
1033
- !noLine && (React.createElement(Grid, { item: true, xs: 12, sx: { mt: spacing } },
988
+ !noLine && (React.createElement(Grid, { size: { xs: 12 }, sx: { mt: spacing } },
1034
989
  React.createElement(FormDivider, { line: true }))),
1035
990
  children)));
1036
- };var css_248z$l = ".FormTextField {\n min-width: 200px;\n}\n.FormTextField .clear-icon-button-wrap {\n visibility: hidden;\n}\n.FormTextField.variant-filled .clear-icon-button-wrap {\n margin-top: 9px;\n margin-bottom: -9px;\n}\n.FormTextField:hover .clear-icon-button-wrap.show,\n.FormTextField .MuiInputBase-root.Mui-focused .clear-icon-button-wrap.show {\n visibility: visible;\n}";
1037
- styleInject(css_248z$l);var FormTextField = React.forwardRef(function (_a, ref) {
991
+ };var FormTextField = React.forwardRef(function (_a, ref) {
1038
992
  /********************************************************************************************************************
1039
993
  * ID
1040
994
  * ******************************************************************************************************************/
1041
- var _b, _c;
1042
995
  var initVariant = _a.variant, initSize = _a.size, initColor = _a.color, initFocused = _a.focused, initLabelShrink = _a.labelShrink, initFullWidth = _a.fullWidth, initSubmitWhenReturnKey = _a.submitWhenReturnKey,
1043
996
  //----------------------------------------------------------------------------------------------------------------
1044
- name = _a.name, required = _a.required, initValue = _a.value, initData = _a.data, icon = _a.icon, labelIcon = _a.labelIcon, initLabel = _a.label, initError = _a.error, helperText = _a.helperText, exceptValue = _a.exceptValue, readOnly = _a.readOnly, tabIndex = _a.tabIndex, initDisabled = _a.disabled, placeholder = _a.placeholder, maxLength = _a.maxLength, clear = _a.clear, width = _a.width, initMuiInputProps = _a.InputProps, initMuiInputLabelProps = _a.InputLabelProps, initInputProps = _a.inputProps, initInputRef = _a.inputRef, select = _a.select, SelectProps = _a.SelectProps, multiline = _a.multiline, validPattern = _a.validPattern, invalidPattern = _a.invalidPattern, startAdornment = _a.startAdornment, endAdornment = _a.endAdornment, noFormValueItem = _a.noFormValueItem, initHidden = _a.hidden, disableReturnKey = _a.disableReturnKey,
997
+ name = _a.name, required = _a.required, initValue = _a.value, initData = _a.data, icon = _a.icon, labelIcon = _a.labelIcon, initLabel = _a.label, initError = _a.error, helperText = _a.helperText, exceptValue = _a.exceptValue, readOnly = _a.readOnly, tabIndex = _a.tabIndex, initDisabled = _a.disabled, placeholder = _a.placeholder, maxLength = _a.maxLength, clear = _a.clear, width = _a.width, initSlotProps = _a.slotProps, initInputRef = _a.inputRef, select = _a.select, multiline = _a.multiline, validPattern = _a.validPattern, invalidPattern = _a.invalidPattern, startAdornment = _a.startAdornment, endAdornment = _a.endAdornment, noFormValueItem = _a.noFormValueItem, initHidden = _a.hidden, disableReturnKey = _a.disableReturnKey,
1045
998
  //----------------------------------------------------------------------------------------------------------------
1046
999
  onChange = _a.onChange, onValue = _a.onValue, onValidate = _a.onValidate, onBlur = _a.onBlur, onKeyDown = _a.onKeyDown,
1047
1000
  //----------------------------------------------------------------------------------------------------------------
1048
1001
  className = _a.className, initStyle = _a.style,
1049
1002
  //----------------------------------------------------------------------------------------------------------------
1050
- props = __rest(_a, ["variant", "size", "color", "focused", "labelShrink", "fullWidth", "submitWhenReturnKey", "name", "required", "value", "data", "icon", "labelIcon", "label", "error", "helperText", "exceptValue", "readOnly", "tabIndex", "disabled", "placeholder", "maxLength", "clear", "width", "InputProps", "InputLabelProps", "inputProps", "inputRef", "select", "SelectProps", "multiline", "validPattern", "invalidPattern", "startAdornment", "endAdornment", "noFormValueItem", "hidden", "disableReturnKey", "onChange", "onValue", "onValidate", "onBlur", "onKeyDown", "className", "style"]);
1003
+ props = __rest(_a, ["variant", "size", "color", "focused", "labelShrink", "fullWidth", "submitWhenReturnKey", "name", "required", "value", "data", "icon", "labelIcon", "label", "error", "helperText", "exceptValue", "readOnly", "tabIndex", "disabled", "placeholder", "maxLength", "clear", "width", "slotProps", "inputRef", "select", "multiline", "validPattern", "invalidPattern", "startAdornment", "endAdornment", "noFormValueItem", "hidden", "disableReturnKey", "onChange", "onValue", "onValidate", "onBlur", "onKeyDown", "className", "style"]);
1051
1004
  var id = useId();
1052
1005
  /********************************************************************************************************************
1053
1006
  * Ref
@@ -1056,7 +1009,7 @@ styleInject(css_248z$l);var FormTextField = React.forwardRef(function (_a, ref)
1056
1009
  /********************************************************************************************************************
1057
1010
  * FormState
1058
1011
  * ******************************************************************************************************************/
1059
- var _d = useFormState(), formVariant = _d.variant, formSize = _d.size, formColor = _d.color, formFocused = _d.focused, formLabelShrink = _d.labelShrink, formFullWidth = _d.fullWidth, formDisabled = _d.disabled, formSubmitWhenReturnKey = _d.submitWhenReturnKey, formColWithHelperText = _d.formColWithHelperText, onAddValueItem = _d.onAddValueItem, onRemoveValueItem = _d.onRemoveValueItem, onValueChange = _d.onValueChange, onValueChangeByUser = _d.onValueChangeByUser, onRequestSubmit = _d.onRequestSubmit, onRequestSearchSubmit = _d.onRequestSearchSubmit;
1012
+ var _b = useFormState(), formVariant = _b.variant, formSize = _b.size, formColor = _b.color, formFocused = _b.focused, formLabelShrink = _b.labelShrink, formFullWidth = _b.fullWidth, formDisabled = _b.disabled, formSubmitWhenReturnKey = _b.submitWhenReturnKey, formColWithHelperText = _b.formColWithHelperText, onAddValueItem = _b.onAddValueItem, onRemoveValueItem = _b.onRemoveValueItem, onValueChange = _b.onValueChange, onValueChangeByUser = _b.onValueChangeByUser, onRequestSubmit = _b.onRequestSubmit, onRequestSearchSubmit = _b.onRequestSearchSubmit;
1060
1013
  /********************************************************************************************************************
1061
1014
  * Memo - FormState
1062
1015
  * ******************************************************************************************************************/
@@ -1070,11 +1023,11 @@ styleInject(css_248z$l);var FormTextField = React.forwardRef(function (_a, ref)
1070
1023
  /********************************************************************************************************************
1071
1024
  * State
1072
1025
  * ******************************************************************************************************************/
1073
- var _e = useAutoUpdateState(initError), error = _e[0], setError = _e[1];
1074
- var _f = useState(), errorHelperText = _f[0], setErrorHelperText = _f[1];
1075
- var _g = useAutoUpdateRefState(initData), dataRef = _g[0], setData = _g[2];
1076
- var _h = useAutoUpdateRefState(useMemo(function () { return (initDisabled == null ? formDisabled : initDisabled); }, [initDisabled, formDisabled])), disabledRef = _h[0], disabled = _h[1], setDisabled = _h[2];
1077
- var _j = useAutoUpdateRefState(initHidden), hiddenRef = _j[0], hidden = _j[1], setHidden = _j[2];
1026
+ var _c = useAutoUpdateState(initError), error = _c[0], setError = _c[1];
1027
+ var _d = useState(), errorHelperText = _d[0], setErrorHelperText = _d[1];
1028
+ var _e = useAutoUpdateRefState(initData), dataRef = _e[0], setData = _e[2];
1029
+ var _f = useAutoUpdateRefState(useMemo(function () { return (initDisabled == null ? formDisabled : initDisabled); }, [initDisabled, formDisabled])), disabledRef = _f[0], disabled = _f[1], setDisabled = _f[2];
1030
+ var _g = useAutoUpdateRefState(initHidden), hiddenRef = _g[0], hidden = _g[1], setHidden = _g[2];
1078
1031
  /********************************************************************************************************************
1079
1032
  * Function - setErrorErrorHelperText
1080
1033
  * ******************************************************************************************************************/
@@ -1118,7 +1071,7 @@ styleInject(css_248z$l);var FormTextField = React.forwardRef(function (_a, ref)
1118
1071
  var getFinalValue = useCallback(function (newValue) {
1119
1072
  return onValue ? onValue(newValue) : newValue;
1120
1073
  }, [onValue]);
1121
- var _k = useAutoUpdateRefState(initValue, getFinalValue), valueRef = _k[0], value = _k[1], setValue = _k[2];
1074
+ var _h = useAutoUpdateRefState(initValue, getFinalValue), valueRef = _h[0], value = _h[1], setValue = _h[2];
1122
1075
  useFirstSkipEffect(function () {
1123
1076
  if (error)
1124
1077
  validate(value);
@@ -1144,52 +1097,6 @@ styleInject(css_248z$l);var FormTextField = React.forwardRef(function (_a, ref)
1144
1097
  (_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.focus();
1145
1098
  }
1146
1099
  }, [initInputRef, inputRef]);
1147
- /********************************************************************************************************************
1148
- * Memo - muiInputProps
1149
- * ******************************************************************************************************************/
1150
- var muiInputProps = useMemo(function () {
1151
- var muiInputProps = __assign({}, initMuiInputProps);
1152
- if (startAdornment || icon || muiInputProps.startAdornment) {
1153
- muiInputProps.startAdornment = (React.createElement(React.Fragment, null,
1154
- icon && (React.createElement(InputAdornment, { position: 'start' },
1155
- React.createElement(PdgIcon, { size: 'small' }, icon))),
1156
- startAdornment && React.createElement(InputAdornment, { position: 'start' }, startAdornment),
1157
- muiInputProps.startAdornment));
1158
- }
1159
- if (endAdornment || muiInputProps.endAdornment || (clear && !readOnly && !disabled)) {
1160
- muiInputProps.endAdornment = (React.createElement(React.Fragment, null,
1161
- clear && !readOnly && !disabled && (React.createElement(InputAdornment, { className: classNames('clear-icon-button-wrap', showClear && 'show'), position: 'end' },
1162
- React.createElement(IconButton, { className: 'clear-icon-button', size: 'small', tabIndex: -1, onClick: function () {
1163
- var finalValue = setValue('');
1164
- focus();
1165
- if (!noFormValueItem) {
1166
- nextTick(function () {
1167
- onValueChangeByUser(name, finalValue);
1168
- onRequestSearchSubmit(name, finalValue);
1169
- });
1170
- }
1171
- } },
1172
- React.createElement(PdgIcon, { size: 'inherit' }, "ClearRounded")))),
1173
- muiInputProps.endAdornment,
1174
- endAdornment && React.createElement(InputAdornment, { position: 'end' }, endAdornment)));
1175
- }
1176
- return muiInputProps;
1177
- }, [
1178
- clear,
1179
- disabled,
1180
- endAdornment,
1181
- focus,
1182
- icon,
1183
- initMuiInputProps,
1184
- name,
1185
- noFormValueItem,
1186
- onRequestSearchSubmit,
1187
- onValueChangeByUser,
1188
- readOnly,
1189
- setValue,
1190
- showClear,
1191
- startAdornment,
1192
- ]);
1193
1100
  /********************************************************************************************************************
1194
1101
  * Commands
1195
1102
  * ******************************************************************************************************************/
@@ -1318,30 +1225,99 @@ styleInject(css_248z$l);var FormTextField = React.forwardRef(function (_a, ref)
1318
1225
  if (hidden) {
1319
1226
  style.display = 'none';
1320
1227
  }
1321
- // muiInputLabelProps
1322
- var muiInputLabelProps = labelShrink || placeholder
1323
- ? __assign(__assign({}, initMuiInputLabelProps), { shrink: true }) : initMuiInputLabelProps;
1324
- // inputProps
1325
- var inputProps = initInputProps;
1326
- if ((!((_b = initInputProps === null || initInputProps === void 0 ? void 0 : initInputProps.className) === null || _b === void 0 ? void 0 : _b.includes('FormTag-Input')) && readOnly != null) || maxLength != null) {
1327
- inputProps = __assign(__assign({}, initInputProps), { readOnly: readOnly, maxLength: maxLength });
1328
- if (readOnly) {
1329
- inputProps.tabIndex = -1;
1330
- inputProps.className = classNames(inputProps.className, 'Mui-disabled');
1228
+ // // inputProps
1229
+ // let inputProps: FormTextProps['inputProps'] = initInputProps;
1230
+ // if ((!initInputProps?.className?.includes('FormTag-Input') && readOnly != null) || maxLength != null) {
1231
+ // inputProps = {
1232
+ // ...initInputProps,
1233
+ // readOnly: readOnly,
1234
+ // maxLength: maxLength,
1235
+ // };
1236
+ //
1237
+ // if (readOnly) {
1238
+ // inputProps.tabIndex = -1;
1239
+ // inputProps.className = classNames(inputProps.className, 'Mui-disabled');
1240
+ // } else {
1241
+ // inputProps.tabIndex = tabIndex;
1242
+ // }
1243
+ // }
1244
+ /********************************************************************************************************************
1245
+ * Memo - slotProps
1246
+ * ******************************************************************************************************************/
1247
+ var inputSlotProps = useMemo(function () {
1248
+ var newProps = __assign({}, initSlotProps === null || initSlotProps === void 0 ? void 0 : initSlotProps.input);
1249
+ if (startAdornment || icon || newProps.startAdornment) {
1250
+ newProps.startAdornment = (React.createElement(React.Fragment, null,
1251
+ icon && (React.createElement(InputAdornment, { position: 'start' },
1252
+ React.createElement(PdgIcon, { size: 'small' }, icon))),
1253
+ startAdornment && React.createElement(InputAdornment, { position: 'start' }, startAdornment),
1254
+ newProps.startAdornment));
1331
1255
  }
1332
- else {
1333
- inputProps.tabIndex = tabIndex;
1256
+ if (endAdornment || newProps.endAdornment || (clear && !readOnly && !disabled)) {
1257
+ newProps.endAdornment = (React.createElement(React.Fragment, null,
1258
+ clear && !readOnly && !disabled && (React.createElement(InputAdornment, { className: classNames('clear-icon-button-wrap', showClear && 'show'), position: 'end' },
1259
+ React.createElement(IconButton, { className: 'clear-icon-button', size: 'small', tabIndex: -1, onClick: function () {
1260
+ var finalValue = setValue('');
1261
+ focus();
1262
+ if (!noFormValueItem) {
1263
+ nextTick(function () {
1264
+ onValueChangeByUser(name, finalValue);
1265
+ onRequestSearchSubmit(name, finalValue);
1266
+ });
1267
+ }
1268
+ } },
1269
+ React.createElement(PdgIcon, { size: 'inherit' }, "ClearRounded")))),
1270
+ newProps.endAdornment,
1271
+ endAdornment && React.createElement(InputAdornment, { position: 'end' }, endAdornment)));
1334
1272
  }
1335
- }
1273
+ return newProps;
1274
+ }, [
1275
+ clear,
1276
+ disabled,
1277
+ endAdornment,
1278
+ focus,
1279
+ icon,
1280
+ initSlotProps === null || initSlotProps === void 0 ? void 0 : initSlotProps.input,
1281
+ name,
1282
+ noFormValueItem,
1283
+ onRequestSearchSubmit,
1284
+ onValueChangeByUser,
1285
+ readOnly,
1286
+ setValue,
1287
+ showClear,
1288
+ startAdornment,
1289
+ ]);
1290
+ var slotProps = useMemo(function () {
1291
+ var _a;
1292
+ var newSlotProps = __assign(__assign({}, initSlotProps), { formHelperText: { component: 'div' } });
1293
+ // input
1294
+ newSlotProps.input = __assign(__assign({}, initSlotProps === null || initSlotProps === void 0 ? void 0 : initSlotProps.input), inputSlotProps);
1295
+ // inputLabel
1296
+ newSlotProps.inputLabel =
1297
+ labelShrink || placeholder
1298
+ ? __assign(__assign({}, initSlotProps === null || initSlotProps === void 0 ? void 0 : initSlotProps.inputLabel), { shrink: true }) : initSlotProps === null || initSlotProps === void 0 ? void 0 : initSlotProps.inputLabel;
1299
+ // htmlInput
1300
+ var initHtmlInputProps = initSlotProps === null || initSlotProps === void 0 ? void 0 : initSlotProps.htmlInput;
1301
+ if ((!((_a = initHtmlInputProps === null || initHtmlInputProps === void 0 ? void 0 : initHtmlInputProps.className) === null || _a === void 0 ? void 0 : _a.includes('FormTag-Input')) && readOnly != null) || maxLength != null) {
1302
+ newSlotProps.htmlInput = __assign(__assign({}, initHtmlInputProps), { readOnly: readOnly, maxLength: maxLength });
1303
+ if (readOnly) {
1304
+ newSlotProps.htmlInput.tabIndex = -1;
1305
+ newSlotProps.htmlInput.className = classNames(newSlotProps.htmlInput.className, 'Mui-disabled');
1306
+ }
1307
+ else {
1308
+ newSlotProps.htmlInput.tabIndex = tabIndex;
1309
+ }
1310
+ }
1311
+ return newSlotProps;
1312
+ }, [initSlotProps, inputSlotProps, labelShrink, maxLength, placeholder, readOnly, tabIndex]);
1336
1313
  /********************************************************************************************************************
1337
1314
  * Render
1338
1315
  * ******************************************************************************************************************/
1339
1316
  return (React.createElement(TextField, __assign({}, props, { variant: variant, size: size, color: color, focused: focused || undefined, name: name, label: labelIcon ? (React.createElement(React.Fragment, null,
1340
1317
  React.createElement(PdgIcon, { style: { verticalAlign: 'middle', marginRight: 4 } }, labelIcon),
1341
- React.createElement("span", { style: { verticalAlign: 'middle' } }, initLabel))) : (initLabel), placeholder: placeholder, className: classNames(className, 'FormValueItem', 'FormTextField', "variant-".concat(variant)), inputRef: initInputRef ? initInputRef : inputRef, value: value, required: required, fullWidth: !width && fullWidth, error: error, helperText: formColWithHelperText ? undefined : error ? errorHelperText : helperText, FormHelperTextProps: { component: 'div' }, disabled: disabled, InputProps: muiInputProps, InputLabelProps: muiInputLabelProps, inputProps: ((_c = initInputProps === null || initInputProps === void 0 ? void 0 : initInputProps.className) === null || _c === void 0 ? void 0 : _c.includes('FormTag-Input')) ? initInputProps : inputProps, style: style, select: select, SelectProps: SelectProps, multiline: multiline, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown })));
1318
+ React.createElement(Box, { component: 'span', style: { verticalAlign: 'middle' } }, initLabel))) : (initLabel), placeholder: placeholder, className: classNames(className, 'FormValueItem', 'FormTextField', "variant-".concat(variant)), inputRef: initInputRef ? initInputRef : inputRef, value: value, required: required, fullWidth: !width && fullWidth, error: error, helperText: formColWithHelperText ? undefined : error ? errorHelperText : helperText, slotProps: slotProps, disabled: disabled, style: style, select: select, multiline: multiline, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown })));
1342
1319
  });
1343
- FormTextField.displayName = 'FormTextField';var css_248z$k = ".FormHidden {\n display: none !important;\n}";
1344
- styleInject(css_248z$k);var FormHidden = React.forwardRef(function (_a, ref) {
1320
+ FormTextField.displayName = 'FormTextField';var FormHidden = React.forwardRef(function (_a, ref) {
1345
1321
  var className = _a.className, props = __rest(_a, ["className"]);
1346
1322
  return (React.createElement(FormTextField, __assign({ ref: ref, className: classNames(className, 'FormHidden'), type: 'hidden', variant: 'standard' }, props)));
1347
1323
  });
@@ -1349,12 +1325,69 @@ FormHidden.displayName = 'FormHidden';var FormText = React.forwardRef(function (
1349
1325
  var className = _a.className, _b = _a.clear, clear = _b === void 0 ? true : _b, _c = _a.value, value = _c === void 0 ? '' : _c, props = __rest(_a, ["className", "clear", "value"]);
1350
1326
  return (React.createElement(FormTextField, __assign({ ref: ref, className: classNames(className, 'FormText'), clear: clear, value: value, disableReturnKey: true }, props)));
1351
1327
  });
1352
- FormText.displayName = 'FormText';var css_248z$j = ".FormTag.FormTextField {\n min-width: 200px;\n}";
1353
- styleInject(css_248z$j);var FormTag = React.forwardRef(function (_a, ref) {
1328
+ FormText.displayName = 'FormText';var FormTagText = React.forwardRef(function (_a, ref) {
1329
+ /********************************************************************************************************************
1330
+ * Use
1331
+ * ******************************************************************************************************************/
1332
+ var onKeyDown = _a.onKeyDown, onBlur = _a.onBlur, onAppendTag = _a.onAppendTag, props = __rest(_a, ["onKeyDown", "onBlur", "onAppendTag"]);
1333
+ var forceUpdate = useForceUpdate();
1334
+ /********************************************************************************************************************
1335
+ * Ref
1336
+ * ******************************************************************************************************************/
1337
+ var valueRef = useRef('');
1338
+ /********************************************************************************************************************
1339
+ * Function
1340
+ * ******************************************************************************************************************/
1341
+ var appendTag = useCallback(function () {
1342
+ onAppendTag(valueRef.current);
1343
+ valueRef.current = ' ';
1344
+ forceUpdate();
1345
+ nextTick(function () {
1346
+ valueRef.current = '';
1347
+ forceUpdate();
1348
+ });
1349
+ }, [forceUpdate, onAppendTag]);
1350
+ /********************************************************************************************************************
1351
+ * Event Handler
1352
+ * ******************************************************************************************************************/
1353
+ var handleKeyDown = useCallback(function (e) {
1354
+ if ([' ', ',', 'Enter'].includes(e.key)) {
1355
+ e.preventDefault();
1356
+ e.stopPropagation();
1357
+ if (notEmpty(valueRef.current)) {
1358
+ appendTag();
1359
+ }
1360
+ }
1361
+ else {
1362
+ if (onKeyDown)
1363
+ onKeyDown(e);
1364
+ }
1365
+ }, [appendTag, onKeyDown]);
1366
+ var handleChange = useCallback(function (value) {
1367
+ valueRef.current = value.replace(/ /g, '').replace(/,/g, '');
1368
+ }, []);
1369
+ var handleBlur = useCallback(function (e) {
1370
+ if (notEmpty(valueRef.current)) {
1371
+ appendTag();
1372
+ }
1373
+ if (onBlur)
1374
+ onBlur(e);
1375
+ }, [onBlur, appendTag]);
1376
+ /********************************************************************************************************************
1377
+ * Render
1378
+ * ******************************************************************************************************************/
1379
+ return (React.createElement(StyledFormText, __assign({ ref: ref }, props, { value: valueRef.current, onChange: handleChange, onKeyDown: handleKeyDown, onBlur: handleBlur })));
1380
+ });
1381
+ /********************************************************************************************************************
1382
+ * Styled Components
1383
+ * ******************************************************************************************************************/
1384
+ var StyledFormText = styled(FormText)(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n .FormTag-Input {\n flex: 1;\n min-width: 50px;\n padding-left: 5px;\n }\n &.variant-outlined {\n .MuiInputBase-root {\n .FormTag-Input {\n padding-top: 7px;\n padding-bottom: 8px;\n }\n\n &.MuiInputBase-sizeSmall {\n .FormTag-Input {\n padding-top: 0;\n padding-bottom: 0;\n }\n }\n }\n }\n"], ["\n .FormTag-Input {\n flex: 1;\n min-width: 50px;\n padding-left: 5px;\n }\n &.variant-outlined {\n .MuiInputBase-root {\n .FormTag-Input {\n padding-top: 7px;\n padding-bottom: 8px;\n }\n\n &.MuiInputBase-sizeSmall {\n .FormTag-Input {\n padding-top: 0;\n padding-bottom: 0;\n }\n }\n }\n }\n"])));
1385
+ var templateObject_1$d;var _emptyValue = [];
1386
+ var FormTag = React.forwardRef(function (_a, ref) {
1354
1387
  /********************************************************************************************************************
1355
1388
  * FormState
1356
1389
  * ******************************************************************************************************************/
1357
- var className = _a.className, name = _a.name, _b = _a.value, initValue = _b === void 0 ? [] : _b, exceptValue = _a.exceptValue, _c = _a.clear, clear = _c === void 0 ? true : _c, required = _a.required, readOnly = _a.readOnly, maxLength = _a.maxLength, initDisabled = _a.disabled, initFullWidth = _a.fullWidth, initError = _a.error, helperText = _a.helperText, _d = _a.formValueSeparator, formValueSeparator = _d === void 0 ? ',' : _d, formValueSort = _a.formValueSort, limitTags = _a.limitTags, getLimitTagsText = _a.getLimitTagsText, onAppendTag = _a.onAppendTag, onRemoveTag = _a.onRemoveTag, onValidate = _a.onValidate, onKeyDown = _a.onKeyDown, onChange = _a.onChange, onValue = _a.onValue, onBlur = _a.onBlur, props = __rest(_a, ["className", "name", "value", "exceptValue", "clear", "required", "readOnly", "maxLength", "disabled", "fullWidth", "error", "helperText", "formValueSeparator", "formValueSort", "limitTags", "getLimitTagsText", "onAppendTag", "onRemoveTag", "onValidate", "onKeyDown", "onChange", "onValue", "onBlur"]);
1390
+ var className = _a.className, name = _a.name, _b = _a.value, initValue = _b === void 0 ? _emptyValue : _b, exceptValue = _a.exceptValue, _c = _a.clear, clear = _c === void 0 ? true : _c, required = _a.required, readOnly = _a.readOnly, maxLength = _a.maxLength, initDisabled = _a.disabled, initFullWidth = _a.fullWidth, initError = _a.error, helperText = _a.helperText, _d = _a.formValueSeparator, formValueSeparator = _d === void 0 ? ',' : _d, formValueSort = _a.formValueSort, limitTags = _a.limitTags, getLimitTagsText = _a.getLimitTagsText, slotProps = _a.slotProps, onAppendTag = _a.onAppendTag, onRemoveTag = _a.onRemoveTag, onValidate = _a.onValidate, onChange = _a.onChange, onValue = _a.onValue, props = __rest(_a, ["className", "name", "value", "exceptValue", "clear", "required", "readOnly", "maxLength", "disabled", "fullWidth", "error", "helperText", "formValueSeparator", "formValueSort", "limitTags", "getLimitTagsText", "slotProps", "onAppendTag", "onRemoveTag", "onValidate", "onChange", "onValue"]);
1358
1391
  var _e = useFormState(), formFullWidth = _e.fullWidth, formDisabled = _e.disabled, onAddValueItem = _e.onAddValueItem, onValueChange = _e.onValueChange, onValueChangeByUser = _e.onValueChangeByUser, onRequestSearchSubmit = _e.onRequestSearchSubmit, otherFormState = __rest(_e, ["fullWidth", "disabled", "onAddValueItem", "onValueChange", "onValueChangeByUser", "onRequestSearchSubmit"]);
1359
1392
  /********************************************************************************************************************
1360
1393
  * FormState - Variables
@@ -1363,9 +1396,8 @@ styleInject(css_248z$j);var FormTag = React.forwardRef(function (_a, ref) {
1363
1396
  /********************************************************************************************************************
1364
1397
  * State
1365
1398
  * ******************************************************************************************************************/
1366
- var _f = useState(''), inputValue = _f[0], setInputValue = _f[1];
1367
- var _g = useAutoUpdateState(initError), error = _g[0], setError = _g[1];
1368
- var _h = useState(), errorHelperText = _h[0], setErrorHelperText = _h[1];
1399
+ var _f = useAutoUpdateState(initError), error = _f[0], setError = _f[1];
1400
+ var _g = useState(), errorHelperText = _g[0], setErrorHelperText = _g[1];
1369
1401
  var disabled = useAutoUpdateState(initDisabled == null ? formDisabled : initDisabled)[0];
1370
1402
  /********************************************************************************************************************
1371
1403
  * Function - setErrorErrorHelperText
@@ -1404,7 +1436,7 @@ styleInject(css_248z$j);var FormTag = React.forwardRef(function (_a, ref) {
1404
1436
  }
1405
1437
  return onValue ? onValue(finalValue) : finalValue;
1406
1438
  }, [onValue]);
1407
- var _j = useAutoUpdateRefState(initValue, getFinalValue), valueRef = _j[0], value = _j[1], setValue = _j[2];
1439
+ var _h = useAutoUpdateRefState(initValue, getFinalValue), valueRef = _h[0], value = _h[1], setValue = _h[2];
1408
1440
  var valueSet = useMemo(function () { return new Set(value); }, [value]);
1409
1441
  useFirstSkipEffect(function () {
1410
1442
  if (error)
@@ -1443,16 +1475,12 @@ styleInject(css_248z$j);var FormTag = React.forwardRef(function (_a, ref) {
1443
1475
  * Function - appendTag, removeTag
1444
1476
  * ******************************************************************************************************************/
1445
1477
  var appendTag = useCallback(function (tag) {
1446
- if (valueSet.has(tag)) {
1447
- setInputValue('');
1448
- }
1449
- else {
1478
+ if (!valueSet.has(tag)) {
1450
1479
  if (onAppendTag && !onAppendTag(tag))
1451
1480
  return;
1452
1481
  valueSet.add(tag);
1453
1482
  var finalValue_1 = setValue(valueSet);
1454
1483
  nextTick(function () {
1455
- setInputValue('');
1456
1484
  onValueChangeByUser(name, finalValue_1);
1457
1485
  onRequestSearchSubmit(name, finalValue_1);
1458
1486
  });
@@ -1487,60 +1515,20 @@ styleInject(css_248z$j);var FormTag = React.forwardRef(function (_a, ref) {
1487
1515
  }
1488
1516
  }
1489
1517
  }, [ref, getCommands]);
1490
- var handleInputKeyDown = useCallback(function (e) {
1491
- if ([' ', ',', 'Enter'].includes(e.key)) {
1492
- e.preventDefault();
1493
- e.stopPropagation();
1494
- if (notEmpty(inputValue)) {
1495
- appendTag(inputValue);
1496
- }
1497
- }
1498
- else {
1499
- if (onKeyDown)
1500
- onKeyDown(e);
1501
- }
1502
- }, [inputValue, appendTag, onKeyDown]);
1503
- var handleInputChange = useCallback(function (value) {
1504
- setInputValue(value.replace(/ /g, '').replace(/,/g, ''));
1505
- setInputValue(value);
1506
- }, []);
1507
- var handleBlur = useCallback(function (e) {
1508
- if (notEmpty(inputValue)) {
1509
- appendTag(inputValue);
1510
- }
1511
- if (onBlur)
1512
- onBlur(e);
1513
- }, [appendTag, inputValue, onBlur]);
1514
- var handleRenderTags = useCallback(function (tags) {
1518
+ var handleRenderValue = useCallback(function (tags) {
1515
1519
  return tags.map(function (tag) { return (React.createElement(Chip, { className: 'MuiAutocomplete-tag', key: tag, label: tag, size: 'small', disabled: readOnly || disabled, onDelete: readOnly || disabled ? undefined : function () { return removeTag(tag); } })); });
1516
1520
  }, [disabled, readOnly, removeTag]);
1517
1521
  /********************************************************************************************************************
1518
1522
  * Render
1519
1523
  * ******************************************************************************************************************/
1520
1524
  var handleRenderInput = useCallback(function (params) {
1521
- var _a;
1522
- var renderProps = __assign({ clear: clear }, props);
1523
- renderProps.InputLabelProps = __assign(__assign({}, renderProps.InputLabelProps), { htmlFor: params.InputLabelProps.htmlFor, id: params.InputLabelProps.id });
1524
- renderProps.InputProps = __assign(__assign({}, renderProps.InputProps), { className: classNames((_a = renderProps.InputProps) === null || _a === void 0 ? void 0 : _a.className, params.InputProps.className), ref: params.InputProps.ref });
1525
- if (notEmpty(params.InputProps.startAdornment)) {
1526
- renderProps.InputProps.startAdornment = (React.createElement(React.Fragment, null,
1527
- renderProps.InputProps.startAdornment,
1528
- params.InputProps.startAdornment));
1529
- }
1530
- renderProps.inputProps = __assign(__assign({}, renderProps.inputProps), params.inputProps);
1531
- renderProps.inputProps.className = classNames(renderProps.inputProps.className, 'FormTag-Input');
1532
- renderProps.inputProps.readOnly = readOnly;
1533
- if (readOnly) {
1534
- renderProps.inputProps.tabIndex = -1;
1535
- }
1536
- renderProps.inputProps.maxLength = maxLength;
1537
- if (readOnly) {
1538
- renderProps.inputProps.className = classNames(renderProps.inputProps.className, 'Mui-disabled');
1539
- }
1540
- delete renderProps.inputProps.onChange;
1541
- delete renderProps.inputProps.value;
1542
- return (React.createElement(FormText, __assign({}, renderProps, { ref: handleRef, name: name, className: classNames(className, 'FormValueItem', 'FormTag'), error: error, disabled: disabled, fullWidth: fullWidth, required: required, value: inputValue, exceptValue: exceptValue, helperText: error ? errorHelperText : helperText, onKeyDown: handleInputKeyDown, onChange: handleInputChange, onBlur: handleBlur })));
1525
+ var htmlInputProps = __assign(__assign({}, params.inputProps), { className: classNames('FormTag-Input', readOnly && 'Mui-disabled'), readOnly: readOnly, tabIndex: readOnly ? -1 : undefined, maxLength: maxLength });
1526
+ delete htmlInputProps.onChange;
1527
+ delete htmlInputProps.value;
1528
+ var renderProps = __assign({ name: name, clear: clear, className: classNames(className, 'FormValueItem', 'FormTag'), error: error, disabled: disabled, fullWidth: fullWidth, required: required, exceptValue: exceptValue, slotProps: __assign(__assign({}, slotProps), { inputLabel: __assign(__assign({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.inputLabel), { htmlFor: params.InputLabelProps.htmlFor, id: params.InputLabelProps.id }), input: __assign(__assign({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.input), { className: params.InputProps.className, ref: params.InputProps.ref, startAdornment: params.InputProps.startAdornment }), htmlInput: __assign(__assign({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.htmlInput), htmlInputProps) }), helperText: error ? errorHelperText : helperText, onAppendTag: appendTag }, props);
1529
+ return React.createElement(FormTagText, __assign({ ref: handleRef }, renderProps));
1543
1530
  }, [
1531
+ appendTag,
1544
1532
  className,
1545
1533
  clear,
1546
1534
  disabled,
@@ -1548,20 +1536,17 @@ styleInject(css_248z$j);var FormTag = React.forwardRef(function (_a, ref) {
1548
1536
  errorHelperText,
1549
1537
  exceptValue,
1550
1538
  fullWidth,
1551
- handleBlur,
1552
- handleInputChange,
1553
- handleInputKeyDown,
1554
1539
  handleRef,
1555
1540
  helperText,
1556
- inputValue,
1557
1541
  maxLength,
1558
1542
  name,
1559
1543
  props,
1560
1544
  readOnly,
1561
1545
  required,
1546
+ slotProps,
1562
1547
  ]);
1563
1548
  return (React.createElement(FormContextProvider, { value: __assign(__assign({}, otherFormState), { fullWidth: formFullWidth, onAddValueItem: handleAddValueItem, onValueChange: function () { }, onValueChangeByUser: function () { }, onRequestSearchSubmit: function () { } }) },
1564
- React.createElement(Autocomplete, { options: [], multiple: true, freeSolo: true, value: value, readOnly: readOnly, disableClearable: true, limitTags: limitTags, getLimitTagsText: getLimitTagsText, disabled: disabled, renderTags: handleRenderTags, inputValue: inputValue, style: { display: fullWidth ? 'block' : 'inline-block', width: fullWidth ? '100%' : undefined }, renderInput: handleRenderInput })));
1549
+ React.createElement(Autocomplete, { options: [], multiple: true, freeSolo: true, value: value, readOnly: readOnly, disableClearable: true, limitTags: limitTags, getLimitTagsText: getLimitTagsText, disabled: disabled, renderValue: handleRenderValue, style: { display: fullWidth ? 'block' : 'inline-block', width: fullWidth ? '100%' : undefined }, renderInput: handleRenderInput })));
1565
1550
  });
1566
1551
  FormTag.displayName = 'FormTag';var FormEmail = React.forwardRef(function (_a, ref) {
1567
1552
  /********************************************************************************************************************
@@ -1577,34 +1562,27 @@ FormTag.displayName = 'FormTag';var FormEmail = React.forwardRef(function (_a, r
1577
1562
  * ******************************************************************************************************************/
1578
1563
  return (React.createElement(FormText, __assign({ ref: ref, className: classNames(className, 'FormEmail'), type: 'email', validPattern: validPattern, onValue: handleValue }, props)));
1579
1564
  });
1580
- FormEmail.displayName = 'FormEmail';var css_248z$i = ".FormPassword .eye-icon-button-wrap {\n visibility: hidden;\n}\n.FormPassword.variant-filled .eye-icon-button-wrap {\n margin-top: 9px;\n margin-bottom: -9px;\n}\n.FormPassword:hover .eye-icon-button-wrap.show,\n.FormPassword .MuiInputBase-root.Mui-focused .eye-icon-button-wrap.show {\n visibility: visible;\n}";
1581
- styleInject(css_248z$i);var StyledEyeInputAdornment = styled(InputAdornment)(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n visibility: hidden;\n"], ["\n visibility: hidden;\n"])));
1565
+ FormEmail.displayName = 'FormEmail';var StyledEyeInputAdornment = styled(InputAdornment)(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n visibility: hidden;\n"], ["\n visibility: hidden;\n"])));
1582
1566
  var FormPassword = React.forwardRef(function (_a, ref) {
1583
1567
  /********************************************************************************************************************
1584
1568
  * State
1585
1569
  * ******************************************************************************************************************/
1586
- var className = _a.className, initMuiInputProps = _a.InputProps, _b = _a.clear, clear = _b === void 0 ? false : _b, _c = _a.eye, eye = _c === void 0 ? true : _c, onChange = _a.onChange, props = __rest(_a, ["className", "InputProps", "clear", "eye", "onChange"]);
1570
+ var className = _a.className, initSlotProps = _a.slotProps, _b = _a.clear, clear = _b === void 0 ? false : _b, _c = _a.eye, eye = _c === void 0 ? true : _c, onChange = _a.onChange, props = __rest(_a, ["className", "slotProps", "clear", "eye", "onChange"]);
1587
1571
  var _d = useState('password'), type = _d[0], setType = _d[1];
1588
1572
  var _e = useState(notEmpty(props.value)), showEye = _e[0], setShowEye = _e[1];
1589
1573
  /********************************************************************************************************************
1590
1574
  * Memo
1591
1575
  * ******************************************************************************************************************/
1592
- var muiInputProps = useMemo(function () {
1593
- if (eye) {
1594
- var newProps = __assign({}, initMuiInputProps);
1595
- newProps.endAdornment = (React.createElement(React.Fragment, null,
1596
- React.createElement(StyledEyeInputAdornment, { position: 'end', className: classNames('eye-icon-button-wrap', showEye && 'show') },
1597
- React.createElement(IconButton, { size: 'small', tabIndex: -1, onClick: function () {
1598
- setType(type === 'password' ? 'text' : 'password');
1599
- } },
1600
- React.createElement(Icon, { fontSize: 'inherit' }, type === 'password' ? 'visibility' : 'visibility_off'))),
1601
- newProps.endAdornment));
1602
- return newProps;
1603
- }
1604
- else {
1605
- return initMuiInputProps;
1606
- }
1607
- }, [eye, initMuiInputProps, showEye, type]);
1576
+ var slotProps = useMemo(function () {
1577
+ var _a;
1578
+ return __assign(__assign({}, initSlotProps), { input: __assign(__assign({}, initSlotProps === null || initSlotProps === void 0 ? void 0 : initSlotProps.input), { endAdornment: (React.createElement(React.Fragment, null,
1579
+ eye && (React.createElement(StyledEyeInputAdornment, { position: 'end', className: classNames('eye-icon-button-wrap', showEye && 'show') },
1580
+ React.createElement(IconButton, { size: 'small', tabIndex: -1, onClick: function () {
1581
+ setType(type === 'password' ? 'text' : 'password');
1582
+ } },
1583
+ React.createElement(Icon, { fontSize: 'inherit' }, type === 'password' ? 'visibility' : 'visibility_off')))), (_a = initSlotProps === null || initSlotProps === void 0 ? void 0 : initSlotProps.input) === null || _a === void 0 ? void 0 :
1584
+ _a.endAdornment)) }) });
1585
+ }, [eye, initSlotProps, showEye, type]);
1608
1586
  /********************************************************************************************************************
1609
1587
  * Event Handler
1610
1588
  * ******************************************************************************************************************/
@@ -1615,7 +1593,7 @@ var FormPassword = React.forwardRef(function (_a, ref) {
1615
1593
  /********************************************************************************************************************
1616
1594
  * Render
1617
1595
  * ******************************************************************************************************************/
1618
- return (React.createElement(FormText, __assign({ ref: ref, className: classNames(className, 'FormPassword'), onChange: handleChange, type: type, InputProps: muiInputProps, clear: clear }, props)));
1596
+ return (React.createElement(FormText, __assign({ ref: ref, className: classNames(className, 'FormPassword'), onChange: handleChange, type: type, slotProps: slotProps, clear: clear }, props)));
1619
1597
  });
1620
1598
  FormPassword.displayName = 'FormPassword';
1621
1599
  var templateObject_1$c;var FormTel = React.forwardRef(function (_a, ref) {
@@ -1644,20 +1622,28 @@ FormMobile.displayName = 'FormMobile';var NumberFormatCustom = React.forwardRef(
1644
1622
  } })));
1645
1623
  });var FormNumber = React.forwardRef(function (_a, ref) {
1646
1624
  /********************************************************************************************************************
1647
- * State
1625
+ * Use
1648
1626
  * ******************************************************************************************************************/
1649
- var className = _a.className, allowNegative = _a.allowNegative, thousandSeparator = _a.thousandSeparator, allowDecimal = _a.allowDecimal, decimalScale = _a.decimalScale, prefix = _a.prefix, suffix = _a.suffix, readOnly = _a.readOnly, tabIndex = _a.tabIndex, labelShrink = _a.labelShrink, _b = _a.clear, clear = _b === void 0 ? true : _b, initMuiInputProps = _a.InputProps, initInputProps = _a.inputProps, initValue = _a.value, onChange = _a.onChange, onValue = _a.onValue, onValidate = _a.onValidate, props = __rest(_a, ["className", "allowNegative", "thousandSeparator", "allowDecimal", "decimalScale", "prefix", "suffix", "readOnly", "tabIndex", "labelShrink", "clear", "InputProps", "inputProps", "value", "onChange", "onValue", "onValidate"]);
1650
- var _c = useState(function () { return (empty(initValue) ? '' : "".concat(initValue)); }), strValue = _c[0], setStrValue = _c[1];
1627
+ var className = _a.className, allowNegative = _a.allowNegative, thousandSeparator = _a.thousandSeparator, allowDecimal = _a.allowDecimal, decimalScale = _a.decimalScale, prefix = _a.prefix, suffix = _a.suffix, readOnly = _a.readOnly, tabIndex = _a.tabIndex, labelShrink = _a.labelShrink, _b = _a.clear, clear = _b === void 0 ? true : _b, initSlotProps = _a.slotProps, initValue = _a.value, onChange = _a.onChange, onValue = _a.onValue, onValidate = _a.onValidate, props = __rest(_a, ["className", "allowNegative", "thousandSeparator", "allowDecimal", "decimalScale", "prefix", "suffix", "readOnly", "tabIndex", "labelShrink", "clear", "slotProps", "value", "onChange", "onValue", "onValidate"]);
1628
+ var forceUpdate = useForceUpdate(1);
1629
+ /********************************************************************************************************************
1630
+ * Ref
1631
+ * ******************************************************************************************************************/
1632
+ var strValueRef = React.useRef(undefined);
1651
1633
  /********************************************************************************************************************
1652
1634
  * Effect
1653
1635
  * ******************************************************************************************************************/
1654
1636
  useEffect(function () {
1655
- setStrValue(empty(initValue) ? '' : "".concat(initValue));
1637
+ strValueRef.current = empty(initValue) ? '' : "".concat(initValue);
1638
+ forceUpdate();
1639
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1656
1640
  }, [initValue]);
1657
1641
  /********************************************************************************************************************
1658
1642
  * Memo
1659
1643
  * ******************************************************************************************************************/
1660
- var muiInputProps = useMemo(function () {
1644
+ var slotProps = useMemo(function () {
1645
+ var _a;
1646
+ var newSlotProps = __assign({}, initSlotProps);
1661
1647
  var inputProps = {
1662
1648
  className: readOnly ? 'Mui-disabled' : undefined,
1663
1649
  allowNegative: !!allowNegative,
@@ -1675,27 +1661,54 @@ FormMobile.displayName = 'FormMobile';var NumberFormatCustom = React.forwardRef(
1675
1661
  else {
1676
1662
  inputProps.decimalScale = 0;
1677
1663
  }
1678
- return __assign(__assign({}, initMuiInputProps), { inputComponent: NumberFormatCustom, inputProps: __assign(__assign({}, initInputProps), inputProps) });
1664
+ newSlotProps.input = __assign(__assign({}, newSlotProps.input), { inputComponent: NumberFormatCustom, inputProps: __assign(__assign({}, (_a = newSlotProps.input) === null || _a === void 0 ? void 0 : _a.inputProps), inputProps) });
1665
+ return newSlotProps;
1679
1666
  }, [
1680
- readOnly,
1667
+ allowDecimal,
1681
1668
  allowNegative,
1682
- thousandSeparator,
1669
+ decimalScale,
1670
+ initSlotProps,
1683
1671
  prefix,
1672
+ readOnly,
1684
1673
  suffix,
1685
1674
  tabIndex,
1686
- allowDecimal,
1687
- initMuiInputProps,
1688
- initInputProps,
1689
- decimalScale,
1675
+ thousandSeparator,
1690
1676
  ]);
1691
1677
  /********************************************************************************************************************
1692
1678
  * Event Handler
1693
1679
  * ******************************************************************************************************************/
1694
1680
  var handleChange = useCallback(function (value) {
1695
- var newValue = empty(value) || value === '-' || value === '.' ? undefined : Number(value);
1696
- onChange && onChange(newValue);
1697
- setStrValue(value);
1698
- }, [onChange]);
1681
+ if (Number(value) > Number.MAX_SAFE_INTEGER) {
1682
+ var newValue = Number.MAX_SAFE_INTEGER;
1683
+ var newStrValue = "".concat(newValue);
1684
+ if (strValueRef.current === newStrValue) {
1685
+ strValueRef.current = "".concat(newValue, " ");
1686
+ }
1687
+ else {
1688
+ strValueRef.current = "".concat(newValue);
1689
+ }
1690
+ onChange && onChange(newValue);
1691
+ forceUpdate();
1692
+ }
1693
+ else if (Number(value) < Number.MIN_SAFE_INTEGER) {
1694
+ var newValue = Number.MIN_SAFE_INTEGER;
1695
+ var newStrValue = "".concat(newValue);
1696
+ if (strValueRef.current === newStrValue) {
1697
+ strValueRef.current = "".concat(newValue, " ");
1698
+ }
1699
+ else {
1700
+ strValueRef.current = "".concat(newValue);
1701
+ }
1702
+ onChange && onChange(newValue);
1703
+ forceUpdate();
1704
+ }
1705
+ else {
1706
+ var newValue = empty(value) || value === '-' || value === '.' ? undefined : Number(value);
1707
+ onChange && onChange(newValue);
1708
+ strValueRef.current = value;
1709
+ forceUpdate();
1710
+ }
1711
+ }, [forceUpdate, onChange]);
1699
1712
  var handleValue = useCallback(function (value) {
1700
1713
  var finalValue = empty(value) || value === '-' || value === '.' ? undefined : Number(value);
1701
1714
  if (onValue) {
@@ -1715,15 +1728,13 @@ FormMobile.displayName = 'FormMobile';var NumberFormatCustom = React.forwardRef(
1715
1728
  /********************************************************************************************************************
1716
1729
  * Render
1717
1730
  * ******************************************************************************************************************/
1718
- return (React.createElement(FormTextField, __assign({ ref: ref, className: classNames(className, 'FormNumber'), disableReturnKey: true, labelShrink: strValue === '' || strValue === undefined ? labelShrink : true, InputProps: muiInputProps, readOnly: readOnly, clear: clear, value: strValue, onChange: handleChange, onValue: handleValue, onValidate: handleValidate }, props)));
1731
+ return (React.createElement(FormTextField, __assign({ ref: ref, className: classNames(className, 'FormNumber'), disableReturnKey: true, labelShrink: strValueRef.current === '' || strValueRef.current === undefined ? labelShrink : true, slotProps: slotProps, readOnly: readOnly, clear: clear, value: strValueRef.current, onChange: handleChange, onValue: handleValue, onValidate: handleValidate }, props)));
1719
1732
  });
1720
- FormNumber.displayName = 'FormNumber';var css_248z$h = ".FormSearch input[type=search]::-webkit-search-decoration,\n.FormSearch input[type=search]::-webkit-search-cancel-button,\n.FormSearch input[type=search]::-webkit-search-results-button,\n.FormSearch input[type=search]::-webkit-search-results-decoration {\n -webkit-appearance: none;\n}";
1721
- styleInject(css_248z$h);var FormSearch = React.forwardRef(function (_a, ref) {
1733
+ FormNumber.displayName = 'FormNumber';var FormSearch = React.forwardRef(function (_a, ref) {
1722
1734
  var className = _a.className, props = __rest(_a, ["className"]);
1723
1735
  return React.createElement(FormText, __assign({ className: classNames(className, 'FormSearch'), ref: ref, type: 'search' }, props));
1724
1736
  });
1725
- FormSearch.displayName = 'FormSearch';var css_248z$g = ".FormTextarea .MuiInputBase-root .MuiInputBase-input {\n overflow-y: scroll;\n}\n.FormTextarea .MuiInputBase-root .MuiInputBase-input::-webkit-scrollbar {\n width: 8px;\n}\n.FormTextarea .MuiInputBase-root .MuiInputBase-input::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.1882352941);\n background-clip: padding-box;\n border-left: 4px transparent solid;\n}";
1726
- styleInject(css_248z$g);var FormTextarea = React.forwardRef(function (_a, ref) {
1737
+ FormSearch.displayName = 'FormSearch';var FormTextarea = React.forwardRef(function (_a, ref) {
1727
1738
  var className = _a.className, _b = _a.clear, clear = _b === void 0 ? false : _b, _c = _a.rows, rows = _c === void 0 ? 3 : _c, _d = _a.value, value = _d === void 0 ? '' : _d, props = __rest(_a, ["className", "clear", "rows", "value"]);
1728
1739
  return (React.createElement(FormTextField, __assign({ ref: ref, className: classNames(className, 'FormTextarea'), clear: clear, rows: rows, value: value }, props, { multiline: true })));
1729
1740
  });
@@ -2044,12 +2055,17 @@ function checkDateAvailable(date, availableDate, type, time) {
2044
2055
  }
2045
2056
  function AutoTypeForwardRef(render) {
2046
2057
  return React.forwardRef(render);
2047
- }var css_248z$f = ".FormSelect.is-selected-placeholder .MuiSelect-select {\n opacity: 0.38;\n}\n.FormSelect .MuiInputBase-root.MuiInputBase-adornedEnd {\n padding-right: 25px;\n}\n.FormSelect .MuiSelect-select.MuiSelect-multiple .selected-list:not(:empty) {\n margin-top: -3px;\n margin-bottom: -3px;\n}\n.FormSelect-Menu-Popover > .MuiPaper-root::-webkit-scrollbar {\n width: 12px;\n}\n.FormSelect-Menu-Popover > .MuiPaper-root::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.1882352941);\n background-clip: padding-box;\n border-left: 4px transparent solid;\n border-right: 4px transparent solid;\n}\n.FormSelect-Menu-Popover > .MuiPaper-root::-webkit-scrollbar-button:start:decrement, .FormSelect-Menu-Popover > .MuiPaper-root::-webkit-scrollbar-button:end:increment {\n display: block;\n height: 4px;\n background-color: transparent;\n}";
2048
- styleInject(css_248z$f);var FormSelect = ToForwardRefExoticComponent(AutoTypeForwardRef(function (_a, ref) {
2058
+ }var FormSelect = ToForwardRefExoticComponent(AutoTypeForwardRef(function (_a, ref) {
2049
2059
  /********************************************************************************************************************
2050
2060
  * type
2051
2061
  * ******************************************************************************************************************/
2052
- var className = _a.className, name = _a.name, initItems = _a.items, initFullWidth = _a.fullWidth, onLoadItems = _a.onLoadItems, readOnly = _a.readOnly, multiple = _a.multiple, checkbox = _a.checkbox, placeholder = _a.placeholder, initStartAdornment = _a.startAdornment, initValue = _a.value, initInputLabelProps = _a.InputLabelProps, initSelectProps = _a.SelectProps, _b = _a.formValueSeparator, formValueSeparator = _b === void 0 ? ',' : _b, formValueSort = _a.formValueSort, width = _a.width, _c = _a.minWidth, minWidth = _c === void 0 ? 120 : _c, initLoading = _a.loading, onChange = _a.onChange, onValue = _a.onValue, props = __rest(_a, ["className", "name", "items", "fullWidth", "onLoadItems", "readOnly", "multiple", "checkbox", "placeholder", "startAdornment", "value", "InputLabelProps", "SelectProps", "formValueSeparator", "formValueSort", "width", "minWidth", "loading", "onChange", "onValue"]);
2062
+ var className = _a.className, name = _a.name, initItems = _a.items, initFullWidth = _a.fullWidth, onLoadItems = _a.onLoadItems, readOnly = _a.readOnly, multiple = _a.multiple, checkbox = _a.checkbox, placeholder = _a.placeholder, initStartAdornment = _a.startAdornment, initValue = _a.value, initSlotProps = _a.slotProps,
2063
+ // InputLabelProps: initInputLabelProps,
2064
+ // SelectProps: initSelectProps,
2065
+ _b = _a.formValueSeparator,
2066
+ // InputLabelProps: initInputLabelProps,
2067
+ // SelectProps: initSelectProps,
2068
+ formValueSeparator = _b === void 0 ? ',' : _b, formValueSort = _a.formValueSort, width = _a.width, _c = _a.minWidth, minWidth = _c === void 0 ? 120 : _c, initLoading = _a.loading, onChange = _a.onChange, onValue = _a.onValue, props = __rest(_a, ["className", "name", "items", "fullWidth", "onLoadItems", "readOnly", "multiple", "checkbox", "placeholder", "startAdornment", "value", "slotProps", "formValueSeparator", "formValueSort", "width", "minWidth", "loading", "onChange", "onValue"]);
2053
2069
  /********************************************************************************************************************
2054
2070
  * FormState
2055
2071
  * ******************************************************************************************************************/
@@ -2114,17 +2130,6 @@ styleInject(css_248z$f);var FormSelect = ToForwardRefExoticComponent(AutoTypeFor
2114
2130
  return {};
2115
2131
  }
2116
2132
  }, [items]);
2117
- /********************************************************************************************************************
2118
- * inputLabelProps
2119
- * ******************************************************************************************************************/
2120
- var inputLabelProps = useMemo(function () {
2121
- if (hasEmptyValue || (!hasEmptyValue && placeholder)) {
2122
- return __assign(__assign({}, initInputLabelProps), { shrink: true });
2123
- }
2124
- else {
2125
- return initInputLabelProps;
2126
- }
2127
- }, [hasEmptyValue, initInputLabelProps, placeholder]);
2128
2133
  /********************************************************************************************************************
2129
2134
  * Function - getFinalValue
2130
2135
  * ******************************************************************************************************************/
@@ -2205,34 +2210,9 @@ styleInject(css_248z$f);var FormSelect = ToForwardRefExoticComponent(AutoTypeFor
2205
2210
  // eslint-disable-next-line react-hooks/exhaustive-deps
2206
2211
  }, []);
2207
2212
  /********************************************************************************************************************
2208
- * Memo
2213
+ * Variable
2209
2214
  * ******************************************************************************************************************/
2210
2215
  var isSelectedPlaceholder = notEmpty(items) && empty(value) && !!placeholder && !hasEmptyValue;
2211
- var selectProps = useMemo(function () {
2212
- var _a;
2213
- var finalSelectProps = __assign(__assign({}, initSelectProps), { displayEmpty: true, multiple: !!multiple, value: value });
2214
- if (multiple) {
2215
- finalSelectProps.renderValue = function (selected) {
2216
- if (isSelectedPlaceholder) {
2217
- return placeholder;
2218
- }
2219
- else {
2220
- return (React.createElement(Box, { className: 'selected-list', sx: { display: 'flex', flexWrap: 'wrap', gap: 0.5 } }, Array.isArray(selected) &&
2221
- selected.map(function (selectedValue) {
2222
- if (isSelectedPlaceholder) {
2223
- return React.createElement(Chip, { key: selectedValue || '$$$EmptyValuePlaceholder$$$', label: 'hahaha', size: 'small' });
2224
- }
2225
- else {
2226
- return React.createElement(Chip, { key: selectedValue, label: itemValueLabels["".concat(selectedValue)], size: 'small' });
2227
- }
2228
- })));
2229
- }
2230
- };
2231
- }
2232
- finalSelectProps.style = __assign(__assign({}, finalSelectProps.style), { minWidth: width || minWidth });
2233
- finalSelectProps.MenuProps = __assign(__assign({}, finalSelectProps.MenuProps), { className: classNames((_a = finalSelectProps.MenuProps) === null || _a === void 0 ? void 0 : _a.className, 'FormSelect-Menu-Popover') });
2234
- return finalSelectProps;
2235
- }, [initSelectProps, isSelectedPlaceholder, itemValueLabels, minWidth, multiple, placeholder, value, width]);
2236
2216
  /********************************************************************************************************************
2237
2217
  * Function - getExtraCommands
2238
2218
  * ******************************************************************************************************************/
@@ -2290,6 +2270,35 @@ styleInject(css_248z$f);var FormSelect = ToForwardRefExoticComponent(AutoTypeFor
2290
2270
  /********************************************************************************************************************
2291
2271
  * Render
2292
2272
  * ******************************************************************************************************************/
2273
+ var selectProps = useMemo(function () {
2274
+ var _a;
2275
+ var finalSelectProps = {
2276
+ displayEmpty: true,
2277
+ multiple: !!multiple,
2278
+ value: value,
2279
+ };
2280
+ if (multiple) {
2281
+ finalSelectProps.renderValue = function (selected) {
2282
+ if (isSelectedPlaceholder) {
2283
+ return placeholder;
2284
+ }
2285
+ else {
2286
+ return (React.createElement(Box, { className: 'selected-list', sx: { display: 'flex', flexWrap: 'wrap', gap: 0.5 } }, Array.isArray(selected) &&
2287
+ selected.map(function (selectedValue) {
2288
+ if (isSelectedPlaceholder) {
2289
+ return React.createElement(Chip, { key: selectedValue || '$$$EmptyValuePlaceholder$$$', label: 'hahaha', size: 'small' });
2290
+ }
2291
+ else {
2292
+ return React.createElement(Chip, { key: selectedValue, label: itemValueLabels["".concat(selectedValue)], size: 'small' });
2293
+ }
2294
+ })));
2295
+ }
2296
+ };
2297
+ }
2298
+ finalSelectProps.style = __assign(__assign({}, finalSelectProps.style), { minWidth: width || minWidth });
2299
+ finalSelectProps.MenuProps = __assign(__assign({}, finalSelectProps.MenuProps), { className: classNames((_a = finalSelectProps.MenuProps) === null || _a === void 0 ? void 0 : _a.className, 'FormSelect-Menu-Popover') });
2300
+ return finalSelectProps;
2301
+ }, [isSelectedPlaceholder, itemValueLabels, minWidth, multiple, placeholder, value, width]);
2293
2302
  var finalValue = useMemo(function () {
2294
2303
  var newFinalValue;
2295
2304
  if (notEmpty(items)) {
@@ -2318,8 +2327,18 @@ styleInject(css_248z$f);var FormSelect = ToForwardRefExoticComponent(AutoTypeFor
2318
2327
  }
2319
2328
  return newFinalValue;
2320
2329
  }, [emptyValue, items, multiple, selectProps, value]);
2330
+ var slotProps = useMemo(function () {
2331
+ var inputLabelAdditionalProps = {};
2332
+ if (hasEmptyValue || (!hasEmptyValue && placeholder)) {
2333
+ inputLabelAdditionalProps.shrink = true;
2334
+ }
2335
+ return {
2336
+ inputLabel: __assign(__assign({}, initSlotProps === null || initSlotProps === void 0 ? void 0 : initSlotProps.inputLabel), inputLabelAdditionalProps),
2337
+ select: __assign(__assign({}, initSlotProps === null || initSlotProps === void 0 ? void 0 : initSlotProps.select), selectProps),
2338
+ };
2339
+ }, [hasEmptyValue, initSlotProps === null || initSlotProps === void 0 ? void 0 : initSlotProps.inputLabel, initSlotProps === null || initSlotProps === void 0 ? void 0 : initSlotProps.select, placeholder, selectProps]);
2321
2340
  return (React.createElement(FormContextProvider, { value: __assign(__assign({}, otherFormState), { fullWidth: formFullWidth, onAddValueItem: handleAddValueItem, onValueChange: function () { } }) },
2322
- React.createElement(FormTextField, __assign({ select: true, ref: handleRef, name: name, className: classNames(className, 'FormSelect', isSelectedPlaceholder && 'is-selected-placeholder'), fullWidth: fullWidth }, props, { startAdornment: startAdornment, value: finalValue, clear: false, readOnly: readOnly || empty(items), InputLabelProps: inputLabelProps, SelectProps: selectProps, onChange: handleChange, onValue: handleValue }),
2341
+ React.createElement(FormTextField, __assign({ select: true, ref: handleRef, name: name, className: classNames(className, 'FormSelect', isSelectedPlaceholder && 'is-selected-placeholder'), fullWidth: fullWidth }, props, { startAdornment: startAdornment, value: finalValue, clear: false, readOnly: readOnly || empty(items), slotProps: slotProps, onChange: handleChange, onValue: handleValue }),
2323
2342
  isSelectedPlaceholder && (React.createElement(MenuItem, { key: '$$$EmptyValuePlaceholder$$$', value: '', disabled: true, sx: { display: 'none' } }, placeholder)),
2324
2343
  items && notEmpty(items) ? (items.map(function (_a) {
2325
2344
  var itemLabel = _a.label, itemValue = _a.value, disabled = _a.disabled;
@@ -2390,20 +2409,15 @@ FormCompanyNo.displayName = 'FormCompanyNo';var FormPersonalNo = React.forwardRe
2390
2409
  * ******************************************************************************************************************/
2391
2410
  return (React.createElement(FormText, __assign({ ref: ref, className: classNames(className, 'FormPersonalNo'), maxLength: 14, validPattern: validPattern, onValue: handleValue, onValidate: handleValidate }, props)));
2392
2411
  });
2393
- FormPersonalNo.displayName = 'FormPersonalNo';var css_248z$e = ".FormItemBase .FormItemBase-InputLabel {\n overflow: visible;\n padding-left: 5px;\n}\n.FormItemBase .FormItemBase-InputLabel.MuiInputLabel-sizeSmall {\n transform: translate(0, -1.5px) scale(0.7);\n}\n.FormItemBase.variant-standard .FormItemBase-Control-wrap {\n margin-top: 16px;\n}";
2394
- styleInject(css_248z$e);var FormItemBase = React.forwardRef(function (_a, ref) {
2412
+ FormPersonalNo.displayName = 'FormPersonalNo';var FormItemBase = React.forwardRef(function (_a, ref) {
2395
2413
  /********************************************************************************************************************
2396
- * Ref
2414
+ * FormState
2397
2415
  * ******************************************************************************************************************/
2398
2416
  var initVariant = _a.variant, initSize = _a.size, initColor = _a.color, initFullWidth = _a.fullWidth,
2399
2417
  //----------------------------------------------------------------------------------------------------------------
2400
2418
  control = _a.control, controlHeight = _a.controlHeight, controlSingleHeight = _a.controlSingleHeight, controlVerticalCenter = _a.controlVerticalCenter, controlContainerStyle = _a.controlContainerStyle, required = _a.required, labelIcon = _a.labelIcon, label = _a.label, focused = _a.focused, helperText = _a.helperText, helperTextProps = _a.helperTextProps, error = _a.error, hideLabel = _a.hideLabel, hidden = _a.hidden, autoSize = _a.autoSize,
2401
2419
  //----------------------------------------------------------------------------------------------------------------
2402
2420
  className = _a.className, style = _a.style, sx = _a.sx;
2403
- var inputRef = useRef(null);
2404
- /********************************************************************************************************************
2405
- * FormState
2406
- * ******************************************************************************************************************/
2407
2421
  var _b = useFormState(), formVariant = _b.variant, formSize = _b.size, formColor = _b.color, formFullWidth = _b.fullWidth, formColWithLabel = _b.formColWithLabel, formColWithHelperText = _b.formColWithHelperText;
2408
2422
  /********************************************************************************************************************
2409
2423
  * Memo - FormState
@@ -2415,16 +2429,8 @@ styleInject(css_248z$e);var FormItemBase = React.forwardRef(function (_a, ref) {
2415
2429
  /********************************************************************************************************************
2416
2430
  * State - inputHeight
2417
2431
  * ******************************************************************************************************************/
2418
- var _c = useState(0), inputHeight = _c[0], setInputHeight = _c[1];
2419
- useResizeDetector({
2420
- targetRef: inputRef,
2421
- handleWidth: false,
2422
- handleHeight: true,
2423
- onResize: function () {
2424
- var _a, _b;
2425
- setInputHeight(((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.height) || 0);
2426
- },
2427
- });
2432
+ var _c = useResizeDetector({ handleWidth: false }), inputRef = _c.ref, resizedInputHeight = _c.height;
2433
+ var inputHeight = ifUndefined(resizedInputHeight, 0);
2428
2434
  /********************************************************************************************************************
2429
2435
  * Memo
2430
2436
  * ******************************************************************************************************************/
@@ -2495,7 +2501,7 @@ styleInject(css_248z$e);var FormItemBase = React.forwardRef(function (_a, ref) {
2495
2501
  * ******************************************************************************************************************/
2496
2502
  return (React.createElement("div", { style: wrapStyle },
2497
2503
  React.createElement(FormControl, { ref: ref, variant: 'standard', className: classNames(className, 'FormItemBase', !!label && 'with-label', "variant-".concat(variant), controlVerticalCenter && 'control-vertical-center', !!error && 'error'), style: style, color: color, error: error, focused: focused, sx: sx },
2498
- !formColWithLabel && label && (React.createElement(InputLabel, { shrink: true, className: 'FormItemBase-InputLabel', size: size === 'medium' ? 'normal' : size, required: required }, labelIcon ? (React.createElement(React.Fragment, null,
2504
+ !formColWithLabel && label && (React.createElement(InputLabel, { shrink: true, className: 'FormItemBase-InputLabel', size: size, required: required }, labelIcon ? (React.createElement(React.Fragment, null,
2499
2505
  React.createElement(PdgIcon, { style: { verticalAlign: 'middle', marginRight: 3, marginTop: -4, marginBottom: -2 } }, labelIcon),
2500
2506
  React.createElement("span", { style: { verticalAlign: 'middle' } }, label))) : (label))),
2501
2507
  React.createElement("div", { className: 'FormItemBase-Control-wrap', style: __assign({ display: 'grid', marginTop: hideLabel ? 0 : undefined }, controlContainerStyle) }, autoSize ? (React.createElement(React.Fragment, null,
@@ -2548,15 +2554,10 @@ FormItemBase.displayName = 'FormItemBase';var FormCheckbox = React.forwardRef(fu
2548
2554
  * ******************************************************************************************************************/
2549
2555
  var inputRef = useRef(null);
2550
2556
  var actionRef = useRef(null);
2551
- var labelRef = useRef(null);
2552
2557
  /********************************************************************************************************************
2553
2558
  * ResizeDetector
2554
2559
  * ******************************************************************************************************************/
2555
- var _f = useResizeDetector({
2556
- targetRef: labelRef,
2557
- handleWidth: true,
2558
- handleHeight: true,
2559
- }), width = _f.width, height = _f.height;
2560
+ var _f = useResizeDetector(), labelRef = _f.ref, width = _f.width, height = _f.height;
2560
2561
  /********************************************************************************************************************
2561
2562
  * State
2562
2563
  * ******************************************************************************************************************/
@@ -3039,8 +3040,7 @@ var FormRadioGroup = ToForwardRefExoticComponent(AutoTypeForwardRef(function (_a
3039
3040
  }, value: value, disabled: disabled || readOnly || itemDisabled }));
3040
3041
  })))))) }));
3041
3042
  }));
3042
- FormRadioGroup.displayName = 'FormRadioGroup';var css_248z$d = ".FormToggleButtonGroup .ToggleButton {\n display: inline-flex;\n padding: 0 10px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n align-items: center;\n}\n.FormToggleButtonGroup .ToggleButton .__label__ {\n height: 0;\n line-height: 0 !important;\n overflow: visible !important;\n}\n.FormToggleButtonGroup.type-checkbox .ToggleButton, .FormToggleButtonGroup.type-radio .ToggleButton {\n padding-left: 3px;\n padding-right: 5px;\n border: 0 !important;\n margin-left: 0 !important;\n justify-content: flex-start;\n display: flex;\n background-color: transparent !important;\n}\n.FormToggleButtonGroup.type-checkbox .ToggleButton:not(:last-child), .FormToggleButtonGroup.type-radio .ToggleButton:not(:last-child) {\n margin-right: 5px;\n}\n.FormToggleButtonGroup.type-checkbox .ToggleButton .__checkbox-checked__,\n.FormToggleButtonGroup.type-checkbox .ToggleButton .__checkbox-unchecked__, .FormToggleButtonGroup.type-radio .ToggleButton .__checkbox-checked__,\n.FormToggleButtonGroup.type-radio .ToggleButton .__checkbox-unchecked__ {\n margin-right: 3px;\n}\n.FormToggleButtonGroup.type-checkbox .ToggleButton .__checkbox-checked__, .FormToggleButtonGroup.type-radio .ToggleButton .__checkbox-checked__ {\n display: none;\n}\n.FormToggleButtonGroup.type-checkbox .ToggleButton.Mui-selected .__checkbox-checked__, .FormToggleButtonGroup.type-radio .ToggleButton.Mui-selected .__checkbox-checked__ {\n display: block;\n}\n.FormToggleButtonGroup.type-checkbox .ToggleButton.Mui-selected .__checkbox-unchecked__, .FormToggleButtonGroup.type-radio .ToggleButton.Mui-selected .__checkbox-unchecked__ {\n display: none;\n}\n.FormToggleButtonGroup:not(.with-label).variant-outlined .FormItemBase-Control-wrap {\n margin-top: 15px;\n margin-bottom: -15px;\n}\n.FormToggleButtonGroup:not(.with-label).variant-outlined .FormItemBase-Control-wrap .ToggleButton {\n height: 37px;\n}\n.FormToggleButtonGroup:not(.with-label).variant-filled .FormItemBase-Control-wrap {\n margin-top: 15px;\n margin-bottom: -15px;\n}\n.FormToggleButtonGroup:not(.with-label).variant-filled .FormItemBase-Control-wrap .ToggleButton {\n height: 37px;\n}\n.FormToggleButtonGroup:not(.with-label).variant-standard .FormItemBase-Control-wrap {\n margin-top: 0px;\n margin-bottom: 0px;\n}\n.FormToggleButtonGroup:not(.with-label).variant-standard .FormItemBase-Control-wrap .ToggleButton {\n height: 28px;\n}\n.FormToggleButtonGroup:not(.with-label).size-small.variant-outlined .FormItemBase-Control-wrap {\n margin-top: 13px;\n margin-bottom: -13px;\n}\n.FormToggleButtonGroup:not(.with-label).size-small.variant-outlined .FormItemBase-Control-wrap .ToggleButton {\n height: 24px;\n}\n.FormToggleButtonGroup:not(.with-label).size-small.variant-filled .FormItemBase-Control-wrap {\n margin-top: 13px;\n margin-bottom: -13px;\n}\n.FormToggleButtonGroup:not(.with-label).size-small.variant-filled .FormItemBase-Control-wrap .ToggleButton {\n height: 31px;\n}\n.FormToggleButtonGroup:not(.with-label).size-small.variant-standard .FormItemBase-Control-wrap {\n margin-top: 0px;\n margin-bottom: 0px;\n}\n.FormToggleButtonGroup:not(.with-label).size-small.variant-standard .FormItemBase-Control-wrap .ToggleButton {\n height: 26px;\n}\n.FormToggleButtonGroup.with-label.variant-outlined .FormItemBase-Control-wrap {\n margin-top: 0;\n margin-bottom: 0;\n}\n.FormToggleButtonGroup.with-label.variant-outlined .FormItemBase-Control-wrap .ToggleButton {\n height: 37px;\n}\n.FormToggleButtonGroup.with-label.variant-filled .FormItemBase-Control-wrap {\n margin-top: 0;\n margin-bottom: 0;\n}\n.FormToggleButtonGroup.with-label.variant-filled .FormItemBase-Control-wrap .ToggleButton {\n height: 37px;\n}\n.FormToggleButtonGroup.with-label.variant-standard .FormItemBase-Control-wrap {\n margin-top: 0;\n margin-bottom: 0;\n}\n.FormToggleButtonGroup.with-label.variant-standard .FormItemBase-Control-wrap .ToggleButton {\n height: 28px;\n}\n.FormToggleButtonGroup.with-label.size-small.variant-outlined .FormItemBase-Control-wrap {\n margin-top: 0;\n margin-bottom: 0;\n}\n.FormToggleButtonGroup.with-label.size-small.variant-outlined .FormItemBase-Control-wrap .ToggleButton {\n height: 24px;\n}\n.FormToggleButtonGroup.with-label.size-small.variant-filled .FormItemBase-Control-wrap {\n margin-top: 0;\n margin-bottom: 0;\n}\n.FormToggleButtonGroup.with-label.size-small.variant-filled .FormItemBase-Control-wrap .ToggleButton {\n height: 31px;\n}\n.FormToggleButtonGroup.with-label.size-small.variant-standard .FormItemBase-Control-wrap {\n margin-top: 0;\n margin-bottom: 0;\n}\n.FormToggleButtonGroup.with-label.size-small.variant-standard .FormItemBase-Control-wrap .ToggleButton {\n height: 26px;\n}\n\n.Form .FormCol.with-label .FormToggleButtonGroup.variant-outlined .FormItemBase-Control-wrap {\n margin-top: 0;\n margin-bottom: 0;\n}\n.Form .FormCol.with-label .FormToggleButtonGroup.variant-outlined .FormItemBase-Control-wrap .ToggleButton {\n height: 37px;\n}\n.Form .FormCol.with-label .FormToggleButtonGroup.variant-filled .FormItemBase-Control-wrap {\n margin-top: 0;\n margin-bottom: 0;\n}\n.Form .FormCol.with-label .FormToggleButtonGroup.variant-filled .FormItemBase-Control-wrap .ToggleButton {\n height: 37px;\n}\n.Form .FormCol.with-label .FormToggleButtonGroup.variant-standard .FormItemBase-Control-wrap {\n margin-top: 0;\n margin-bottom: 0;\n}\n.Form .FormCol.with-label .FormToggleButtonGroup.variant-standard .FormItemBase-Control-wrap .ToggleButton {\n height: 28px;\n}\n.Form .FormCol.with-label .FormToggleButtonGroup.size-small.variant-outlined .FormItemBase-Control-wrap {\n margin-top: 0;\n margin-bottom: 0;\n}\n.Form .FormCol.with-label .FormToggleButtonGroup.size-small.variant-outlined .FormItemBase-Control-wrap .ToggleButton {\n height: 24px;\n}\n.Form .FormCol.with-label .FormToggleButtonGroup.size-small.variant-filled .FormItemBase-Control-wrap {\n margin-top: 0;\n margin-bottom: 0;\n}\n.Form .FormCol.with-label .FormToggleButtonGroup.size-small.variant-filled .FormItemBase-Control-wrap .ToggleButton {\n height: 31px;\n}\n.Form .FormCol.with-label .FormToggleButtonGroup.size-small.variant-standard .FormItemBase-Control-wrap {\n margin-top: 0;\n margin-bottom: 0;\n}\n.Form .FormCol.with-label .FormToggleButtonGroup.size-small.variant-standard .FormItemBase-Control-wrap .ToggleButton {\n height: 26px;\n}";
3043
- styleInject(css_248z$d);var FormToggleButtonGroup = ToForwardRefExoticComponent(AutoTypeForwardRef(function (_a, ref) {
3043
+ FormRadioGroup.displayName = 'FormRadioGroup';var FormToggleButtonGroup = ToForwardRefExoticComponent(AutoTypeForwardRef(function (_a, ref) {
3044
3044
  /********************************************************************************************************************
3045
3045
  * type
3046
3046
  * ******************************************************************************************************************/
@@ -3056,13 +3056,6 @@ styleInject(css_248z$d);var FormToggleButtonGroup = ToForwardRefExoticComponent(
3056
3056
  * ******************************************************************************************************************/
3057
3057
  var id = useId();
3058
3058
  var labelId = useId();
3059
- /********************************************************************************************************************
3060
- * Ref
3061
- * ******************************************************************************************************************/
3062
- var refForResizeWidthDetect = useRef(null);
3063
- var refForButtonResizeHeightDetect = useRef(null);
3064
- var refForButtonsResizeHeightDetect = useRef(null);
3065
- var refForLoadingResizeHeightDetect = useRef(null);
3066
3059
  /********************************************************************************************************************
3067
3060
  * FormState
3068
3061
  * ******************************************************************************************************************/
@@ -3085,55 +3078,25 @@ styleInject(css_248z$d);var FormToggleButtonGroup = ToForwardRefExoticComponent(
3085
3078
  /********************************************************************************************************************
3086
3079
  * State - width (ResizeDetector)
3087
3080
  * ******************************************************************************************************************/
3088
- var _f = useState(), width = _f[0], setWidth = _f[1];
3089
- useResizeDetector({
3090
- targetRef: refForResizeWidthDetect,
3091
- handleWidth: true,
3092
- onResize: function () {
3093
- var _a, _b;
3094
- setWidth((_b = (_a = refForResizeWidthDetect.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.width);
3095
- },
3096
- });
3081
+ var _f = useResizeDetector({ handleHeight: false }), refForResizeWidthDetect = _f.ref, width = _f.width;
3097
3082
  /********************************************************************************************************************
3098
3083
  * State - height (ResizeDetector)
3099
3084
  * ******************************************************************************************************************/
3100
- var _g = useState(), height = _g[0], setHeight = _g[1];
3101
- var _h = useState(), realHeight = _h[0], setRealHeight = _h[1];
3102
- useResizeDetector({
3103
- targetRef: refForButtonResizeHeightDetect,
3104
- handleHeight: true,
3105
- onResize: function () {
3106
- var _a, _b;
3107
- setHeight((_b = (_a = refForButtonResizeHeightDetect.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.height);
3108
- },
3109
- });
3110
- useResizeDetector({
3111
- targetRef: refForButtonsResizeHeightDetect,
3112
- handleHeight: true,
3113
- onResize: function () {
3114
- var _a, _b;
3115
- setRealHeight((_b = (_a = refForButtonsResizeHeightDetect.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.height);
3116
- },
3117
- });
3118
- useResizeDetector({
3119
- targetRef: refForLoadingResizeHeightDetect,
3120
- handleHeight: true,
3121
- onResize: function () {
3122
- var _a, _b;
3123
- setHeight((_b = (_a = refForLoadingResizeHeightDetect.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.height);
3124
- },
3125
- });
3085
+ var _g = useResizeDetector({ handleWidth: false }), refForButtonResizeHeightDetect = _g.ref, buttonHeight = _g.height;
3086
+ var _h = useResizeDetector({ handleWidth: false }), refForButtonsResizeHeightDetect = _h.ref, realHeight = _h.height;
3087
+ var _j = useResizeDetector({ handleWidth: false }), refForLoadingResizeHeightDetect = _j.ref, loadingHeight = _j.height;
3088
+ var height = ifUndefined(buttonHeight, loadingHeight);
3126
3089
  /********************************************************************************************************************
3127
3090
  * State
3128
3091
  * ******************************************************************************************************************/
3129
- var _j = useState(false), isOnGetItemLoading = _j[0], setIsOnGetItemLoading = _j[1];
3130
- var _k = useAutoUpdateState(initError), error = _k[0], setError = _k[1];
3131
- var _l = useState(), errorHelperText = _l[0], setErrorHelperText = _l[1];
3132
- var _m = useAutoUpdateRefState(initData), dataRef = _m[0], setData = _m[2];
3133
- var _o = useAutoUpdateRefState(useMemo(function () { return (initDisabled == null ? formDisabled : initDisabled); }, [initDisabled, formDisabled])), disabledRef = _o[0], disabled = _o[1], setDisabled = _o[2];
3134
- var _p = useAutoUpdateRefState(initHidden), hiddenRef = _p[0], hidden = _p[1], setHidden = _p[2];
3135
- var _q = useAutoUpdateRefState(initLoading), loadingRef = _q[0], loading = _q[1], setLoading = _q[2];
3136
- var _r = useAutoUpdateRefState(initItems), itemsRef = _r[0], items = _r[1], setItems = _r[2];
3092
+ var _k = useState(false), isOnGetItemLoading = _k[0], setIsOnGetItemLoading = _k[1];
3093
+ var _l = useAutoUpdateState(initError), error = _l[0], setError = _l[1];
3094
+ var _m = useState(), errorHelperText = _m[0], setErrorHelperText = _m[1];
3095
+ var _o = useAutoUpdateRefState(initData), dataRef = _o[0], setData = _o[2];
3096
+ var _p = useAutoUpdateRefState(useMemo(function () { return (initDisabled == null ? formDisabled : initDisabled); }, [initDisabled, formDisabled])), disabledRef = _p[0], disabled = _p[1], setDisabled = _p[2];
3097
+ var _q = useAutoUpdateRefState(initHidden), hiddenRef = _q[0], hidden = _q[1], setHidden = _q[2];
3098
+ var _r = useAutoUpdateRefState(initLoading), loadingRef = _r[0], loading = _r[1], setLoading = _r[2];
3099
+ var _s = useAutoUpdateRefState(initItems), itemsRef = _s[0], items = _s[1], setItems = _s[2];
3137
3100
  /********************************************************************************************************************
3138
3101
  * Memo
3139
3102
  * ******************************************************************************************************************/
@@ -3248,7 +3211,7 @@ styleInject(css_248z$d);var FormToggleButtonGroup = ToForwardRefExoticComponent(
3248
3211
  finalValue = onValue ? onValue(finalValue) : finalValue;
3249
3212
  return equal(value, finalValue) ? value : finalValue;
3250
3213
  }, [multiple, formValueSeparator, itemsValues, onValue]);
3251
- var _s = useAutoUpdateRefState(initValue, getFinalValue), valueRef = _s[0], value = _s[1], setValue = _s[2];
3214
+ var _t = useAutoUpdateRefState(initValue, getFinalValue), valueRef = _t[0], value = _t[1], setValue = _t[2];
3252
3215
  useFirstSkipEffect(function () {
3253
3216
  if (error)
3254
3217
  validate(value);
@@ -3450,7 +3413,11 @@ styleInject(css_248z$d);var FormToggleButtonGroup = ToForwardRefExoticComponent(
3450
3413
  return (items &&
3451
3414
  items.map(function (_a, idx) {
3452
3415
  var value = _a.value, label = _a.label, itemDisabled = _a.disabled, itemColor = _a.color;
3453
- return (React.createElement(ToggleButton, { ref: idx === 0 ? refForButtonResizeHeightDetect : undefined, key: idx, size: size, className: 'ToggleButton', value: value, color: itemColor || color, disabled: disabled || readOnly || itemDisabled, style: buttonStyle, onFocus: function () { return setFocused(initFocused || true); }, onBlur: function () { return setFocused(initFocused || false); } },
3416
+ return (React.createElement(ToggleButton, { ref: function (ref) {
3417
+ if (idx === 0) {
3418
+ refForButtonResizeHeightDetect.current = ref;
3419
+ }
3420
+ }, key: idx, size: size, className: 'ToggleButton', value: value, color: itemColor || color, disabled: disabled || readOnly || itemDisabled, style: buttonStyle, onFocus: function () { return setFocused(initFocused || true); }, onBlur: function () { return setFocused(initFocused || false); } },
3454
3421
  type === 'checkbox' ? (React.createElement(React.Fragment, null,
3455
3422
  React.createElement(Icon, { className: '__checkbox-unchecked__' }, "check_box_outline_blank"),
3456
3423
  React.createElement(Icon, { className: '__checkbox-checked__' }, "check_box"))) : (type === 'radio' && (React.createElement(React.Fragment, null,
@@ -3468,6 +3435,7 @@ styleInject(css_248z$d);var FormToggleButtonGroup = ToForwardRefExoticComponent(
3468
3435
  itemWidth,
3469
3436
  items,
3470
3437
  readOnly,
3438
+ refForButtonResizeHeightDetect,
3471
3439
  setFocused,
3472
3440
  size,
3473
3441
  theme.palette.error.main,
@@ -3475,7 +3443,7 @@ styleInject(css_248z$d);var FormToggleButtonGroup = ToForwardRefExoticComponent(
3475
3443
  ]);
3476
3444
  var controlHeight = height || 0;
3477
3445
  var isMultiline = controlHeight <= ifUndefined(realHeight, 0);
3478
- return (React.createElement(FormItemBase, __assign({}, formControlBaseProps, { className: classNames(className, 'FormValueItem', 'FormToggleButtonGroup', "variant-".concat(variant), "size-".concat(size), !!label && 'with-label', !!fullWidth && 'full-width', "type-".concat(type)), variant: variant, size: size, color: color, labelIcon: labelIcon, label: label, required: required, fullWidth: fullWidth, error: error, helperText: error ? errorHelperText : helperText, helperTextProps: { style: { marginLeft: 2 } }, style: style, sx: sx, hidden: hidden, autoSize: true, controlHeight: realHeight ? realHeight + (isMultiline ? 13 : 0) : controlHeight, controlVerticalCenter: isMultiline ? false : isOnGetItemLoading || loading, control: isOnGetItemLoading || loading ? (React.createElement("div", { style: { opacity: 0.54 }, ref: refForLoadingResizeHeightDetect },
3446
+ return (React.createElement(FormItemBase, __assign({}, formControlBaseProps, { className: classNames(className, 'FormValueItem', 'FormToggleButtonGroup', "variant-".concat(variant), "size-".concat(size), !!label && 'with-label', !!fullWidth && 'full-width', "type-".concat(type), (isOnGetItemLoading || loading) && 'loading'), variant: variant, size: size, color: color, labelIcon: labelIcon, label: label, required: required, fullWidth: fullWidth, error: error, helperText: error ? errorHelperText : helperText, helperTextProps: { style: { marginLeft: 2 } }, style: style, sx: sx, hidden: hidden, autoSize: true, controlHeight: realHeight ? realHeight + (isMultiline ? 13 : 0) : controlHeight, controlVerticalCenter: isMultiline ? false : isOnGetItemLoading || loading, control: isOnGetItemLoading || loading ? (React.createElement("div", { style: { opacity: 0.54 }, ref: refForLoadingResizeHeightDetect },
3479
3447
  React.createElement(CircularProgress, { size: 16, color: 'inherit' }))) : (React.createElement(React.Fragment, null,
3480
3448
  !fullWidth && !isOnGetItemLoading && !loading && items && (React.createElement("div", { ref: refForResizeWidthDetect, style: {
3481
3449
  display: 'grid',
@@ -3522,8 +3490,7 @@ FormToggleButtonGroup.displayName = 'FormToggleButtonGroup';var FormRating = Rea
3522
3490
  /********************************************************************************************************************
3523
3491
  * Ref
3524
3492
  * ******************************************************************************************************************/
3525
- var ratingRef = useRef(null);
3526
- var inputRef = useRef();
3493
+ var inputRef = useRef(undefined);
3527
3494
  /********************************************************************************************************************
3528
3495
  * State
3529
3496
  * ******************************************************************************************************************/
@@ -3535,11 +3502,7 @@ FormToggleButtonGroup.displayName = 'FormToggleButtonGroup';var FormRating = Rea
3535
3502
  /********************************************************************************************************************
3536
3503
  * State - width, height
3537
3504
  * ******************************************************************************************************************/
3538
- var _l = useResizeDetector({
3539
- targetRef: ratingRef,
3540
- handleWidth: true,
3541
- handleHeight: true,
3542
- }), width = _l.width, height = _l.height;
3505
+ var _l = useResizeDetector(), ratingRef = _l.ref, width = _l.width, height = _l.height;
3543
3506
  /********************************************************************************************************************
3544
3507
  * Function
3545
3508
  * ******************************************************************************************************************/
@@ -3683,8 +3646,7 @@ FormToggleButtonGroup.displayName = 'FormToggleButtonGroup';var FormRating = Rea
3683
3646
  * ******************************************************************************************************************/
3684
3647
  return (React.createElement(FormItemBase, { variant: variant, size: size, color: color, focused: focused, className: classNames(className, 'FormValueItem', 'FormRating'), labelIcon: labelIcon, label: label, error: error, fullWidth: false, required: required, helperText: error ? errorHelperText : helperText, helperTextProps: { style: { marginLeft: 5 } }, style: __assign({ width: width || 100 }, initStyle), sx: sx, hidden: hidden, autoSize: true, controlHeight: height || (size === 'small' ? 21 : 26), controlVerticalCenter: true, control: React.createElement(Rating, { ref: ratingRef, size: size === 'medium' ? 'large' : 'medium', name: name, precision: precision, highlightSelectedOnly: highlightSelectedOnly, value: value, disabled: disabled || readOnly, max: max, icon: React.createElement(PdgIcon, { color: color, size: 'inherit' }, icon ? icon : 'Star'), emptyIcon: React.createElement(PdgIcon, { size: 'inherit' }, emptyIcon ? emptyIcon : 'StarBorder'), onChange: handleChange, onFocus: function () { return setFocused(initFocused || true); }, onBlur: function () { return setFocused(initFocused || false); } }) }));
3685
3648
  });
3686
- FormRating.displayName = 'FormRating';var css_248z$c = ".FormTextEditor.initializing textarea {\n display: none;\n}\n.FormTextEditor.error .tox-tinymce {\n border-color: #d32f2f;\n}\n\n.tox-menu.tox-collection.tox-collection--list .tox-collection__group .tox-menu-nav__js.tox-collection__item {\n padding-right: 20px !important;\n}\n\n.tox-notifications-container {\n display: none;\n}";
3687
- styleInject(css_248z$c);var getFinalValue$8 = function (value) {
3649
+ FormRating.displayName = 'FormRating';var getFinalValue$8 = function (value) {
3688
3650
  return value || '';
3689
3651
  };var FormTextEditor = React.forwardRef(function (_a, ref) {
3690
3652
  /********************************************************************************************************************
@@ -3719,7 +3681,7 @@ styleInject(css_248z$c);var getFinalValue$8 = function (value) {
3719
3681
  /********************************************************************************************************************
3720
3682
  * Ref
3721
3683
  * ******************************************************************************************************************/
3722
- var editorRef = useRef();
3684
+ var editorRef = useRef(null);
3723
3685
  var keyDownTime = useRef(0);
3724
3686
  /********************************************************************************************************************
3725
3687
  * State
@@ -3741,8 +3703,8 @@ styleInject(css_248z$c);var getFinalValue$8 = function (value) {
3741
3703
  * Function - validate
3742
3704
  * ******************************************************************************************************************/
3743
3705
  var validate = useCallback(function (value) {
3744
- var _a;
3745
- if (required && empty((_a = editorRef.current) === null || _a === void 0 ? void 0 : _a.getContent())) {
3706
+ var _a, _b;
3707
+ if (required && empty((_b = (_a = editorRef.current) === null || _a === void 0 ? void 0 : _a.editor()) === null || _b === void 0 ? void 0 : _b.getContent())) {
3746
3708
  setErrorErrorHelperText(true, '필수 입력 항목입니다.');
3747
3709
  return false;
3748
3710
  }
@@ -3771,8 +3733,8 @@ styleInject(css_248z$c);var getFinalValue$8 = function (value) {
3771
3733
  * Function - focus
3772
3734
  * ******************************************************************************************************************/
3773
3735
  var focus = useCallback(function () {
3774
- var _a;
3775
- (_a = editorRef.current) === null || _a === void 0 ? void 0 : _a.focus();
3736
+ var _a, _b;
3737
+ (_b = (_a = editorRef.current) === null || _a === void 0 ? void 0 : _a.editor()) === null || _b === void 0 ? void 0 : _b.focus();
3776
3738
  }, [editorRef]);
3777
3739
  /********************************************************************************************************************
3778
3740
  * Commands
@@ -3874,7 +3836,7 @@ styleInject(css_248z$c);var getFinalValue$8 = function (value) {
3874
3836
  React.createElement(Editor, { apiKey: apiKey, value: value, disabled: readOnly || disabled, init: {
3875
3837
  height: height,
3876
3838
  menubar: menubar,
3877
- readonly: true,
3839
+ disabled: true,
3878
3840
  language: 'ko_KR',
3879
3841
  contextmenu: false,
3880
3842
  content_style: 'body {font-size: 0.875rem; font-weight: 400; line-height: 1.5; color: hsl(0,0%,20%);} p {padding:0; margin:0}',
@@ -4385,14 +4347,24 @@ FormTextEditor.displayName = 'FormTextEditor';var FormAutocomplete = ToForwardRe
4385
4347
  else if (reason === 'reset') {
4386
4348
  setInputValue(undefined);
4387
4349
  }
4388
- }, renderTags: function (value, getTagProps) {
4389
- return value.map(function (option, index) { return (React.createElement(Chip, __assign({ size: 'small', label: onRenderTag ? onRenderTag(option) : option.label }, getTagProps({ index: index })))); });
4390
- }, renderInput: function (params) { return (React.createElement(FormTextField, __assign({}, params, { ref: textFieldRef, name: name, variant: variant, size: size, color: color, labelIcon: labelIcon, label: label, labelShrink: labelShrink, required: required, focused: focused, error: error, readOnly: readOnly, helperText: error ? errorHelperText : helperText, placeholder: placeholder, noFormValueItem: true, InputProps: __assign(__assign({}, params.InputProps), { endAdornment: (React.createElement(React.Fragment, null,
4391
- loading || isOnGetItemLoading ? React.createElement(CircularProgress, { color: 'inherit', size: 20 }) : null,
4392
- params.InputProps.endAdornment)) }), inputProps: readOnly || disabled ? __assign(__assign({}, params.inputProps), { tabIndex: -1 }) : params.inputProps }))); } }));
4350
+ }, renderValue: function (value, getItemProps) {
4351
+ if (Array.isArray(value)) {
4352
+ return value.map(function (option, index) { return (React.createElement(Chip, __assign({ size: 'small', label: onRenderTag ? onRenderTag(option) : option.label }, getItemProps({ index: index })))); });
4353
+ }
4354
+ else {
4355
+ return (React.createElement(Chip, __assign({ size: 'small', label: onRenderTag ? onRenderTag(value) : value.label }, getItemProps({ index: 0 }))));
4356
+ }
4357
+ }, renderInput: function (params) {
4358
+ var slotProps = {
4359
+ input: __assign(__assign({}, params.InputProps), { endAdornment: (React.createElement(React.Fragment, null,
4360
+ loading || isOnGetItemLoading ? React.createElement(CircularProgress, { color: 'inherit', size: 20 }) : null,
4361
+ params.InputProps.endAdornment)) }),
4362
+ htmlInput: __assign(__assign({}, params.inputProps), { tabIndex: readOnly || disabled ? -1 : undefined }),
4363
+ };
4364
+ return (React.createElement(FormTextField, __assign({}, params, { ref: textFieldRef, name: name, variant: variant, size: size, color: color, labelIcon: labelIcon, label: label, labelShrink: labelShrink, required: required, focused: focused, error: error, readOnly: readOnly, helperText: error ? errorHelperText : helperText, slotProps: slotProps, placeholder: placeholder, noFormValueItem: true })));
4365
+ } }));
4393
4366
  }));
4394
- FormAutocomplete.displayName = 'FormAutocomplete';var css_248z$b = ".PrivateYearSelect {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background-color: white;\n}\n.PrivateYearSelect button {\n font-size: 14px;\n font-weight: 400;\n border-radius: 18px;\n}";
4395
- styleInject(css_248z$b);var PrivateToggleButton = React.forwardRef(function (_a, ref) {
4367
+ FormAutocomplete.displayName = 'FormAutocomplete';var PrivateToggleButton = React.forwardRef(function (_a, ref) {
4396
4368
  /********************************************************************************************************************
4397
4369
  * Use
4398
4370
  * ******************************************************************************************************************/
@@ -4477,11 +4449,10 @@ var PrivateYearSelect = function (_a) {
4477
4449
  var isActive = y === activeYear;
4478
4450
  var isSelected = y === selectYear;
4479
4451
  var disabled = (!!availableDate[0] && y < availableDate[0].year) || (!!availableDate[1] && y > availableDate[1].year);
4480
- return (React.createElement(Grid, { key: y, item: true, xs: 3 },
4452
+ return (React.createElement(Grid, { key: y, size: { xs: 3 } },
4481
4453
  React.createElement(PrivateToggleButton, { "data-id": y, className: "private-year-select-value-".concat(y), fullWidth: true, selected: isSelected, activated: isActive, outlined: isToday, disabled: disabled, onClick: handleClick }, y)));
4482
4454
  })))));
4483
- };var css_248z$a = ".PrivateMonthSelect {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background-color: white;\n}\n.PrivateMonthSelect button {\n font-size: 15px;\n font-weight: 400;\n border-radius: 18px;\n}";
4484
- styleInject(css_248z$a);var MONTHS$1 = new Array(12).fill(0);
4455
+ };var MONTHS$1 = new Array(12).fill(0);
4485
4456
  for (var i$5 = 0; i$5 < 12; i$5 += 1) {
4486
4457
  MONTHS$1[i$5] = i$5;
4487
4458
  }
@@ -4495,13 +4466,12 @@ var PrivateMonthSelect = function (_a) {
4495
4466
  var isSelected = selectYear === year && m === selectMonth;
4496
4467
  var ym = year * 100 + (m + 1);
4497
4468
  var disabled = (!!availableDate[0] && ym < availableDate[0].month) || (!!availableDate[1] && ym > availableDate[1].month);
4498
- return (React.createElement(Grid, { key: m, item: true, xs: 4 },
4469
+ return (React.createElement(Grid, { key: m, size: { xs: 4 } },
4499
4470
  React.createElement(PrivateToggleButton, { fullWidth: true, selected: isSelected, activated: isActive, outlined: isToday, disabled: disabled, onClick: function () { return onSelect(m); } },
4500
4471
  m + 1,
4501
4472
  "\uC6D4")));
4502
4473
  }))));
4503
- };var css_248z$9 = ".PrivateTimeSelect {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n}\n.PrivateTimeSelect button {\n border-radius: 0;\n}";
4504
- styleInject(css_248z$9);var DEFAULT_MINUTES$3 = new Array(60).fill(0);
4474
+ };var DEFAULT_MINUTES$3 = new Array(60).fill(0);
4505
4475
  for (var i$4 = 0; i$4 < DEFAULT_MINUTES$3.length; i$4 += 1) {
4506
4476
  DEFAULT_MINUTES$3[i$4] = i$4;
4507
4477
  }
@@ -4512,7 +4482,7 @@ var PrivateTimeSelect = React.forwardRef(function (_a, ref) {
4512
4482
  var list = _a.list, listInterval = _a.listInterval, unit = _a.unit, value = _a.value, _b = _a.cols, cols = _b === void 0 ? 1 : _b, disableList = _a.disableList, initOnSelect = _a.onSelect;
4513
4483
  var containerRef = useRef(null);
4514
4484
  var simpleBarRef = useRef(null);
4515
- var scrollTimerRef = useRef();
4485
+ var scrollTimerRef = useRef(undefined);
4516
4486
  var onSelectRef = useAutoUpdateLayoutRef(initOnSelect);
4517
4487
  /********************************************************************************************************************
4518
4488
  * Function - scrollToValue
@@ -4616,7 +4586,7 @@ var PrivateTimeSelect = React.forwardRef(function (_a, ref) {
4616
4586
  .map(function (v) {
4617
4587
  var isSelected = v === value;
4618
4588
  var disabled = !!disableList && disableList.includes(v);
4619
- return (React.createElement(Grid, { item: true, key: v, xs: 12 / (cols || 1) },
4589
+ return (React.createElement(Grid, { key: v, size: { xs: 12 / (cols || 1) } },
4620
4590
  React.createElement(PrivateToggleButton, { "data-id": v, className: "private-time-select-value-".concat(v), fullWidth: true, disabled: disabled, selected: isSelected, onClick: handleClick },
4621
4591
  v,
4622
4592
  unit)));
@@ -4678,30 +4648,29 @@ var PrivateTimeSection = function (_a) {
4678
4648
  /********************************************************************************************************************
4679
4649
  * Render
4680
4650
  * ******************************************************************************************************************/
4681
- return (React.createElement(Grid, { item: true, className: 'time' },
4651
+ return (React.createElement(Grid, { className: 'time' },
4682
4652
  React.createElement(Grid, { container: true, direction: 'column', className: 'time-container' },
4683
- React.createElement(Grid, { item: true, className: 'time-title' },
4653
+ React.createElement(Grid, { className: 'time-title' },
4684
4654
  time === 'hour' && (value ? value.format('HH시') : '00시'),
4685
4655
  time === 'minute' && (value ? value.format('HH시 mm분') : '00시 00분'),
4686
4656
  time === 'second' && (value ? value.format('HH시 mm분 ss초') : '00시 00분 00초')),
4687
- React.createElement(Grid, { item: true, className: 'time-select-wrap' },
4657
+ React.createElement(Grid, { className: 'time-select-wrap' },
4688
4658
  React.createElement(Grid, { container: true, style: { height: '100%' } },
4689
- React.createElement(Grid, { item: true, style: { position: 'relative', width: width } },
4659
+ React.createElement(Grid, { style: { position: 'relative', width: width } },
4690
4660
  React.createElement(PrivateTimeSelect, { ref: hourSelectRef, value: value && value.hour(), unit: '\uC2DC', list: hours, disableList: disableHours, cols: cols, onSelect: function (newValue) {
4691
4661
  onChange('hour', value ? value.set('hour', newValue) : dayjs().startOf('date').set('hour', newValue));
4692
4662
  } })),
4693
- (time === 'minute' || time === 'second') && (React.createElement(Grid, { item: true, style: { position: 'relative', width: width } },
4663
+ (time === 'minute' || time === 'second') && (React.createElement(Grid, { style: { position: 'relative', width: width } },
4694
4664
  React.createElement(PrivateTimeSelect, { ref: minuteSelectRef, value: value && value.minute(), unit: '\uBD84', list: minutes, disableList: disableMinutes, cols: cols, listInterval: minuteInterval, onSelect: function (newValue) {
4695
4665
  onChange('minute', value ? value.set('minute', newValue) : dayjs().startOf('date').set('minute', newValue));
4696
4666
  } }))),
4697
- time === 'second' && (React.createElement(Grid, { item: true, style: { position: 'relative', width: width } },
4667
+ time === 'second' && (React.createElement(Grid, { style: { position: 'relative', width: width } },
4698
4668
  React.createElement(PrivateTimeSelect, { ref: secondSelectRef, value: value && value.second(), unit: '\uCD08', list: seconds, disableList: disableSeconds, cols: cols, listInterval: secondInterval, onSelect: function (newValue) {
4699
4669
  onChange('second', value ? value.set('second', newValue) : dayjs().startOf('date').set('second', newValue));
4700
4670
  } }))))),
4701
- onClose && (React.createElement(Grid, { item: true, className: 'action-buttons' },
4671
+ onClose && (React.createElement(Grid, { className: 'action-buttons' },
4702
4672
  React.createElement(Button, { variant: 'text', onClick: onClose }, "\uB2EB\uAE30"))))));
4703
- };var css_248z$8 = ".PrivateStaticDatePicker.time {\n height: 400px;\n}\n.PrivateStaticDatePicker .MuiPickersCalendarHeader-root {\n display: none;\n}\n.PrivateStaticDatePicker .month-title-container {\n display: flex;\n align-items: center;\n margin-left: 5px;\n}\n.PrivateStaticDatePicker .month-title-container .month-title-wrap {\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n.PrivateStaticDatePicker .month-title-container .month-title-wrap .month-title button {\n font-size: 15px;\n padding-left: 8px;\n padding-right: 0;\n min-width: 0;\n}\n.PrivateStaticDatePicker .month-title-container .month-title-wrap .month-title button:not(.active) {\n color: unset;\n}\n.PrivateStaticDatePicker .action-buttons {\n border-top: 1px solid #efefef;\n padding: 10px;\n text-align: right;\n}\n.PrivateStaticDatePicker .action-buttons button {\n min-width: 0;\n color: inherit;\n}\n.PrivateStaticDatePicker .action-buttons button:not(:first-of-type) {\n margin-left: 5px;\n}\n.PrivateStaticDatePicker .action-buttons button.disabled {\n color: rgba(0, 0, 0, 0.5);\n}\n.PrivateStaticDatePicker .time {\n border-left: 2px solid #bfbfbf;\n}\n.PrivateStaticDatePicker .time .time-container {\n height: 100%;\n}\n.PrivateStaticDatePicker .time .time-container .time-title {\n text-align: center;\n padding: 22px 0;\n font-size: 15px;\n}\n.PrivateStaticDatePicker .time .time-container .time-select-wrap {\n flex: 1;\n border-top: 1px solid #efefef;\n}\n.PrivateStaticDatePicker.time .time .time-container .time-select-wrap > div > div:not(:first-of-type) {\n border-left: 1px solid #efefef;\n}";
4704
- styleInject(css_248z$8);var DEFAULT_HOURS$1 = new Array(24).fill(0);
4673
+ };var DEFAULT_HOURS$1 = new Array(24).fill(0);
4705
4674
  for (var i$2 = 0; i$2 < DEFAULT_HOURS$1.length; i$2 += 1) {
4706
4675
  DEFAULT_HOURS$1[i$2] = i$2;
4707
4676
  }
@@ -4717,7 +4686,7 @@ var PrivateStaticDatePicker = React.forwardRef(function (_a, ref) {
4717
4686
  /********************************************************************************************************************
4718
4687
  * Ref
4719
4688
  * ******************************************************************************************************************/
4720
- var value = _a.value, initAvailableDate = _a.availableDate, defaultCalendarMonth = _a.defaultCalendarMonth, type = _a.type, time = _a.time, _b = _a.hours, hours = _b === void 0 ? DEFAULT_HOURS$1 : _b, _c = _a.minutes, minutes = _c === void 0 ? DEFAULT_MINUTES$1 : _c, _d = _a.seconds, seconds = _d === void 0 ? DEFAULT_SECONDS$1 : _d, minuteInterval = _a.minuteInterval, secondInterval = _a.secondInterval, minDate = _a.minDate, maxDate = _a.maxDate, disablePast = _a.disablePast, disableFuture = _a.disableFuture, onChange = _a.onChange, onMonthChange = _a.onMonthChange, onClose = _a.onClose, props = __rest(_a, ["value", "availableDate", "defaultCalendarMonth", "type", "time", "hours", "minutes", "seconds", "minuteInterval", "secondInterval", "minDate", "maxDate", "disablePast", "disableFuture", "onChange", "onMonthChange", "onClose"]);
4689
+ var value = _a.value, initAvailableDate = _a.availableDate, type = _a.type, time = _a.time, _b = _a.hours, hours = _b === void 0 ? DEFAULT_HOURS$1 : _b, _c = _a.minutes, minutes = _c === void 0 ? DEFAULT_MINUTES$1 : _c, _d = _a.seconds, seconds = _d === void 0 ? DEFAULT_SECONDS$1 : _d, minuteInterval = _a.minuteInterval, secondInterval = _a.secondInterval, minDate = _a.minDate, maxDate = _a.maxDate, disablePast = _a.disablePast, disableFuture = _a.disableFuture, onChange = _a.onChange, onMonthChange = _a.onMonthChange, onClose = _a.onClose, props = __rest(_a, ["value", "availableDate", "type", "time", "hours", "minutes", "seconds", "minuteInterval", "secondInterval", "minDate", "maxDate", "disablePast", "disableFuture", "onChange", "onMonthChange", "onClose"]);
4721
4690
  var hourSelectRef = useRef(null);
4722
4691
  var minuteSelectRef = useRef(null);
4723
4692
  var secondSelectRef = useRef(null);
@@ -4727,8 +4696,6 @@ var PrivateStaticDatePicker = React.forwardRef(function (_a, ref) {
4727
4696
  var _e = useState(function () {
4728
4697
  if (value)
4729
4698
  return value;
4730
- else if (defaultCalendarMonth)
4731
- return defaultCalendarMonth;
4732
4699
  else
4733
4700
  return dayjs();
4734
4701
  }), month = _e[0], setMonth = _e[1];
@@ -4752,8 +4719,8 @@ var PrivateStaticDatePicker = React.forwardRef(function (_a, ref) {
4752
4719
  /********************************************************************************************************************
4753
4720
  * Arrow
4754
4721
  * ******************************************************************************************************************/
4755
- var leftArrowOnClickRef = useRef();
4756
- var rightArrowOnClickRef = useRef();
4722
+ var leftArrowOnClickRef = useRef(undefined);
4723
+ var rightArrowOnClickRef = useRef(undefined);
4757
4724
  var LeftArrowButton = useMemo(function () {
4758
4725
  return function (props) {
4759
4726
  leftArrowOnClickRef.current = props.onClick;
@@ -4844,11 +4811,11 @@ var PrivateStaticDatePicker = React.forwardRef(function (_a, ref) {
4844
4811
  * Render
4845
4812
  * ******************************************************************************************************************/
4846
4813
  return (React.createElement(Grid, { container: true, className: classNames('PrivateStaticDatePicker', type) },
4847
- type !== 'time' && (React.createElement(Grid, { item: true },
4814
+ type !== 'time' && (React.createElement(Grid, null,
4848
4815
  React.createElement(Grid, { container: true, direction: 'column' },
4849
- React.createElement(Grid, { item: true, sx: { p: 2, width: '100%' } },
4816
+ React.createElement(Grid, { sx: { p: 2, width: '100%' } },
4850
4817
  React.createElement(Grid, { container: true, className: 'month-change-arrow-wrap' },
4851
- React.createElement(Grid, { item: true, flex: 1, className: 'month-title-container' },
4818
+ React.createElement(Grid, { flex: 1, className: 'month-title-container' },
4852
4819
  React.createElement("div", { className: 'month-title-wrap' },
4853
4820
  React.createElement("div", { className: 'month-title' },
4854
4821
  React.createElement(Button, { variant: 'text', className: yearSelectOpen ? 'active' : undefined, onClick: function () {
@@ -4874,12 +4841,12 @@ var PrivateStaticDatePicker = React.forwardRef(function (_a, ref) {
4874
4841
  } },
4875
4842
  month.format('M월'),
4876
4843
  React.createElement(Icon, null, monthSelectOpen ? 'arrow_drop_up' : 'arrow_drop_down'))))),
4877
- !yearSelectOpen && !monthSelectOpen && (React.createElement(Grid, { item: true, style: { textAlign: 'right' } },
4844
+ !yearSelectOpen && !monthSelectOpen && (React.createElement(Grid, { style: { textAlign: 'right' } },
4878
4845
  React.createElement(IconButton, { onClick: previousMonth, sx: { mr: 1 } },
4879
4846
  React.createElement(Icon, null, "keyboard_arrow_left")),
4880
4847
  React.createElement(IconButton, { onClick: nextMonth },
4881
4848
  React.createElement(Icon, null, "keyboard_arrow_right")))))),
4882
- React.createElement(Grid, { item: true, style: { position: 'relative' } },
4849
+ React.createElement(Grid, { style: { position: 'relative' } },
4883
4850
  React.createElement(StaticDatePicker, __assign({}, props, { value: activeMonthValue, referenceDate: month, slots: {
4884
4851
  previousIconButton: LeftArrowButton,
4885
4852
  nextIconButton: RightArrowButton,
@@ -4898,7 +4865,7 @@ var PrivateStaticDatePicker = React.forwardRef(function (_a, ref) {
4898
4865
  } })),
4899
4866
  yearSelectOpen && (React.createElement(PrivateYearSelect, { selectYear: value == null ? null : value.year(), activeYear: month.year(), availableDate: availableDate, onSelect: handleYearSelect })),
4900
4867
  monthSelectOpen && (React.createElement(PrivateMonthSelect, { year: month.year(), selectYear: value == null ? null : value.year(), selectMonth: value == null ? null : value.month(), activeMonth: month.month(), availableDate: availableDate, onSelect: handleMonthSelect }))),
4901
- React.createElement(Grid, { item: true, className: 'action-buttons' },
4868
+ React.createElement(Grid, { className: 'action-buttons' },
4902
4869
  getActionButton(dayjs()
4903
4870
  .startOf('d')
4904
4871
  .subtract(1, 'month')
@@ -4942,8 +4909,7 @@ var PrivateStaticDatePicker = React.forwardRef(function (_a, ref) {
4942
4909
  boxShadow: theme.shadows[8],
4943
4910
  },
4944
4911
  _b);
4945
- });var css_248z$7 = ".PrivateDatePicker .input-text-field.align-left .MuiInputBase-input {\n text-align: left;\n}\n.PrivateDatePicker .input-text-field.align-center .MuiInputBase-input {\n text-align: center;\n}\n.PrivateDatePicker .input-text-field.align-right .MuiInputBase-input {\n text-align: right;\n}";
4946
- styleInject(css_248z$7);var PrivateDatePicker = React.forwardRef(function (_a, ref) {
4912
+ });var PrivateDatePicker = React.forwardRef(function (_a, ref) {
4947
4913
  /********************************************************************************************************************
4948
4914
  * ID
4949
4915
  * ******************************************************************************************************************/
@@ -4957,9 +4923,9 @@ styleInject(css_248z$7);var PrivateDatePicker = React.forwardRef(function (_a, r
4957
4923
  * Ref
4958
4924
  * ******************************************************************************************************************/
4959
4925
  var privateStaticDatePickerRef = useRef(null);
4960
- var textFieldInputRef = useRef();
4961
- var closeTimeoutRef = useRef();
4962
- var mouseDownTimeRef = useRef();
4926
+ var textFieldInputRef = useRef(undefined);
4927
+ var closeTimeoutRef = useRef(undefined);
4928
+ var mouseDownTimeRef = useRef(undefined);
4963
4929
  var datePickerErrorRef = useRef(null);
4964
4930
  var openValueRef = useRef(null);
4965
4931
  var onValidateRef = useAutoUpdateLayoutRef(initOnValidate);
@@ -5337,9 +5303,7 @@ styleInject(css_248z$7);var PrivateDatePicker = React.forwardRef(function (_a, r
5337
5303
  React.createElement("div", { style: { display: fullWidth ? 'block' : 'inline-block' } },
5338
5304
  React.createElement(DesktopDatePicker, __assign({ value: inputValue, label: labelIcon ? React.createElement(PdgIconText, { icon: labelIcon }, initLabel) : initLabel, open: false, format: format ? format : getDateTimeFormat(type, time), disabled: disabled, readOnly: readOnly, minDate: minDate, maxDate: maxDate, disablePast: disablePast, disableFuture: disableFuture, onClose: function () { return setOpen(false); }, onError: function (reason) { return (datePickerErrorRef.current = reason); }, onChange: function (newValue) { return handleChange('date', newValue); }, slotProps: slotProps, showDaysOutsideCurrentMonth: showDaysOutsideCurrentMonth }, otherProps)))),
5339
5305
  !formColWithHelperText && (helperText || (error && errorHelperText)) && (React.createElement(FormHelperText, { error: error, style: { marginLeft: variant === 'standard' ? 0 : 14 } }, error ? errorHelperText : helperText))))));
5340
- });var css_248z$6 = ".PrivateDateTimePicker .input-text-field.align-left .MuiInputBase-input {\n text-align: left;\n}\n.PrivateDateTimePicker .input-text-field.align-center .MuiInputBase-input {\n text-align: center;\n}\n.PrivateDateTimePicker .input-text-field.align-right .MuiInputBase-input {\n text-align: right;\n}";
5341
- styleInject(css_248z$6);var css_248z$5 = ".PrivateStaticDateTimePicker.time {\n height: 400px;\n}\n.PrivateStaticDateTimePicker .MuiPickersCalendarHeader-root {\n display: none;\n}\n.PrivateStaticDateTimePicker .month-title-container {\n display: flex;\n align-items: center;\n margin-left: 5px;\n}\n.PrivateStaticDateTimePicker .month-title-container .month-title-wrap {\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n.PrivateStaticDateTimePicker .month-title-container .month-title-wrap .month-title button {\n font-size: 15px;\n padding-left: 8px;\n padding-right: 0;\n min-width: 0;\n}\n.PrivateStaticDateTimePicker .month-title-container .month-title-wrap .month-title button:not(.active) {\n color: unset;\n}\n.PrivateStaticDateTimePicker .action-buttons {\n border-top: 1px solid #efefef;\n padding: 10px;\n text-align: right;\n}\n.PrivateStaticDateTimePicker .action-buttons button {\n min-width: 0;\n color: inherit;\n}\n.PrivateStaticDateTimePicker .action-buttons button:not(:first-of-type) {\n margin-left: 5px;\n}\n.PrivateStaticDateTimePicker .action-buttons button.disabled {\n color: rgba(0, 0, 0, 0.5);\n}\n.PrivateStaticDateTimePicker .time {\n border-left: 2px solid #bfbfbf;\n}\n.PrivateStaticDateTimePicker .time .time-container {\n height: 100%;\n}\n.PrivateStaticDateTimePicker .time .time-container .time-title {\n text-align: center;\n padding: 22px 0;\n font-size: 15px;\n}\n.PrivateStaticDateTimePicker .time .time-container .time-select-wrap {\n flex: 1;\n border-top: 1px solid #efefef;\n}\n.PrivateStaticDateTimePicker.time .time .time-container .time-select-wrap > div > div:not(:first-of-type) {\n border-left: 1px solid #efefef;\n}";
5342
- styleInject(css_248z$5);var DEFAULT_HOURS = new Array(24).fill(0);
5306
+ });var DEFAULT_HOURS = new Array(24).fill(0);
5343
5307
  for (var i$1 = 0; i$1 < DEFAULT_HOURS.length; i$1 += 1) {
5344
5308
  DEFAULT_HOURS[i$1] = i$1;
5345
5309
  }
@@ -5355,7 +5319,7 @@ var PrivateStaticDateTimePicker = React.forwardRef(function (_a, ref) {
5355
5319
  /********************************************************************************************************************
5356
5320
  * Ref
5357
5321
  * ******************************************************************************************************************/
5358
- var value = _a.value, initAvailableDate = _a.availableDate, defaultCalendarMonth = _a.defaultCalendarMonth, type = _a.type, time = _a.time, _b = _a.hours, hours = _b === void 0 ? DEFAULT_HOURS : _b, _c = _a.minutes, minutes = _c === void 0 ? DEFAULT_MINUTES : _c, _d = _a.seconds, seconds = _d === void 0 ? DEFAULT_SECONDS : _d, minuteInterval = _a.minuteInterval, secondInterval = _a.secondInterval, minDate = _a.minDate, maxDate = _a.maxDate, disablePast = _a.disablePast, disableFuture = _a.disableFuture, onChange = _a.onChange, onMonthChange = _a.onMonthChange, onClose = _a.onClose, props = __rest(_a, ["value", "availableDate", "defaultCalendarMonth", "type", "time", "hours", "minutes", "seconds", "minuteInterval", "secondInterval", "minDate", "maxDate", "disablePast", "disableFuture", "onChange", "onMonthChange", "onClose"]);
5322
+ var value = _a.value, initAvailableDate = _a.availableDate, type = _a.type, time = _a.time, _b = _a.hours, hours = _b === void 0 ? DEFAULT_HOURS : _b, _c = _a.minutes, minutes = _c === void 0 ? DEFAULT_MINUTES : _c, _d = _a.seconds, seconds = _d === void 0 ? DEFAULT_SECONDS : _d, minuteInterval = _a.minuteInterval, secondInterval = _a.secondInterval, minDate = _a.minDate, maxDate = _a.maxDate, disablePast = _a.disablePast, disableFuture = _a.disableFuture, onChange = _a.onChange, onMonthChange = _a.onMonthChange, onClose = _a.onClose, props = __rest(_a, ["value", "availableDate", "type", "time", "hours", "minutes", "seconds", "minuteInterval", "secondInterval", "minDate", "maxDate", "disablePast", "disableFuture", "onChange", "onMonthChange", "onClose"]);
5359
5323
  var hourSelectRef = useRef(null);
5360
5324
  var minuteSelectRef = useRef(null);
5361
5325
  var secondSelectRef = useRef(null);
@@ -5365,8 +5329,6 @@ var PrivateStaticDateTimePicker = React.forwardRef(function (_a, ref) {
5365
5329
  var _e = useState(function () {
5366
5330
  if (value)
5367
5331
  return value;
5368
- else if (defaultCalendarMonth)
5369
- return defaultCalendarMonth;
5370
5332
  else
5371
5333
  return dayjs();
5372
5334
  }), month = _e[0], setMonth = _e[1];
@@ -5388,8 +5350,8 @@ var PrivateStaticDateTimePicker = React.forwardRef(function (_a, ref) {
5388
5350
  }
5389
5351
  }, [yearSelectOpen]);
5390
5352
  //--------------------------------------------------------------------------------------------------------------------
5391
- var leftArrowOnClickRef = useRef();
5392
- var rightArrowOnClickRef = useRef();
5353
+ var leftArrowOnClickRef = useRef(undefined);
5354
+ var rightArrowOnClickRef = useRef(undefined);
5393
5355
  var LeftArrowButton = useState(function () {
5394
5356
  var ArrowButton = function (props) {
5395
5357
  leftArrowOnClickRef.current = props.onClick;
@@ -5493,11 +5455,11 @@ var PrivateStaticDateTimePicker = React.forwardRef(function (_a, ref) {
5493
5455
  * Render
5494
5456
  * ******************************************************************************************************************/
5495
5457
  return (React.createElement(Grid, { container: true, className: classNames('PrivateStaticDateTimePicker', type) },
5496
- type !== 'time' && (React.createElement(Grid, { item: true },
5458
+ type !== 'time' && (React.createElement(Grid, null,
5497
5459
  React.createElement(Grid, { container: true, direction: 'column' },
5498
- React.createElement(Grid, { item: true, sx: { p: 2, width: '100%' } },
5460
+ React.createElement(Grid, { sx: { p: 2, width: '100%' } },
5499
5461
  React.createElement(Grid, { container: true, className: 'month-change-arrow-wrap' },
5500
- React.createElement(Grid, { item: true, flex: 1, className: 'month-title-container' },
5462
+ React.createElement(Grid, { flex: 1, className: 'month-title-container' },
5501
5463
  React.createElement("div", { className: 'month-title-wrap' },
5502
5464
  React.createElement("div", { className: 'month-title' },
5503
5465
  React.createElement(Button, { variant: 'text', className: yearSelectOpen ? 'active' : undefined, onClick: function () {
@@ -5523,12 +5485,12 @@ var PrivateStaticDateTimePicker = React.forwardRef(function (_a, ref) {
5523
5485
  } },
5524
5486
  month.format('M월'),
5525
5487
  React.createElement(Icon, null, monthSelectOpen ? 'arrow_drop_up' : 'arrow_drop_down'))))),
5526
- !yearSelectOpen && !monthSelectOpen && (React.createElement(Grid, { item: true, style: { textAlign: 'right' } },
5488
+ !yearSelectOpen && !monthSelectOpen && (React.createElement(Grid, { style: { textAlign: 'right' } },
5527
5489
  React.createElement(IconButton, { onClick: previousMonth, sx: { mr: 1 } },
5528
5490
  React.createElement(Icon, null, "keyboard_arrow_left")),
5529
5491
  React.createElement(IconButton, { onClick: nextMonth },
5530
5492
  React.createElement(Icon, null, "keyboard_arrow_right")))))),
5531
- React.createElement(Grid, { item: true, style: { position: 'relative' } },
5493
+ React.createElement(Grid, { style: { position: 'relative' } },
5532
5494
  React.createElement(StaticDateTimePicker, __assign({}, props, { value: activeMonthValue, referenceDate: month, slots: {
5533
5495
  previousIconButton: LeftArrowButton,
5534
5496
  nextIconButton: RightArrowButton,
@@ -5547,7 +5509,7 @@ var PrivateStaticDateTimePicker = React.forwardRef(function (_a, ref) {
5547
5509
  } })),
5548
5510
  yearSelectOpen && (React.createElement(PrivateYearSelect, { selectYear: value == null ? null : value.year(), activeYear: month.year(), availableDate: availableDate, onSelect: handleYearSelect })),
5549
5511
  monthSelectOpen && (React.createElement(PrivateMonthSelect, { year: month.year(), selectYear: value == null ? null : value.year(), selectMonth: value == null ? null : value.month(), activeMonth: month.month(), availableDate: availableDate, onSelect: handleMonthSelect }))),
5550
- React.createElement(Grid, { item: true, className: 'action-buttons' },
5512
+ React.createElement(Grid, { className: 'action-buttons' },
5551
5513
  getActionButton(dayjs()
5552
5514
  .startOf('d')
5553
5515
  .subtract(1, 'month')
@@ -5588,9 +5550,9 @@ var PrivateStaticDateTimePicker = React.forwardRef(function (_a, ref) {
5588
5550
  * Ref
5589
5551
  * ******************************************************************************************************************/
5590
5552
  var privateStaticDateTimePickerRef = useRef(null);
5591
- var textFieldInputRef = useRef();
5592
- var closeTimeoutRef = useRef();
5593
- var mouseDownTimeRef = useRef();
5553
+ var textFieldInputRef = useRef(undefined);
5554
+ var closeTimeoutRef = useRef(undefined);
5555
+ var mouseDownTimeRef = useRef(undefined);
5594
5556
  var datePickerErrorRef = useRef(null);
5595
5557
  var openValueRef = useRef(null);
5596
5558
  var onValidateRef = useAutoUpdateLayoutRef(initOnValidate);
@@ -6006,8 +5968,7 @@ var PrivateStaticDateTimePicker = React.forwardRef(function (_a, ref) {
6006
5968
  React.createElement(DialogContent, null, content),
6007
5969
  React.createElement(DialogActions, null,
6008
5970
  React.createElement(Button, { variant: 'text', onClick: handleClose, autoFocus: true }, "\uD655\uC778"))));
6009
- };var css_248z$4 = ".PrivateInputDatePicker.align-left .MuiInputBase-input {\n text-align: left;\n}\n.PrivateInputDatePicker.align-center .MuiInputBase-input {\n text-align: center;\n}\n.PrivateInputDatePicker.align-right .MuiInputBase-input {\n text-align: right;\n}";
6010
- styleInject(css_248z$4);var PrivateInputDatePicker = React.forwardRef(function (_a, ref) {
5971
+ };var PrivateInputDatePicker = React.forwardRef(function (_a, ref) {
6011
5972
  /********************************************************************************************************************
6012
5973
  * ID
6013
5974
  * ******************************************************************************************************************/
@@ -6100,7 +6061,7 @@ styleInject(css_248z$4);var PrivateInputDatePicker = React.forwardRef(function (
6100
6061
  var StyledButton$2 = styled(Button)(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n font-size: 12px;\n background-color: transparent;\n color: unset;\n outline: 0;\n font-weight: 400;\n line-height: 1.75;\n border-radius: 18px;\n cursor: pointer;\n width: 100%;\n border: 1px solid transparent;\n\n &:focus {\n background-color: rgba(0, 0, 0, 0.12);\n }\n &.default {\n background-color: #efefef;\n }\n &.selected,\n &.selected-temp {\n background-color: rgba(66, 165, 245, 0.6);\n }\n &.selected-start,\n &.selected-end {\n color: #fff;\n background-color: #1976d2;\n }\n &.disabled {\n opacity: 0.8;\n border: 1px solid transparent;\n }\n &:hover:not(.disabled):not(.selected-start):not(.selected-end) {\n color: inherit;\n border: 1px solid transparent;\n background-color: rgba(66, 165, 245, 0.3);\n }\n"], ["\n font-size: 12px;\n background-color: transparent;\n color: unset;\n outline: 0;\n font-weight: 400;\n line-height: 1.75;\n border-radius: 18px;\n cursor: pointer;\n width: 100%;\n border: 1px solid transparent;\n\n &:focus {\n background-color: rgba(0, 0, 0, 0.12);\n }\n &.default {\n background-color: #efefef;\n }\n &.selected,\n &.selected-temp {\n background-color: rgba(66, 165, 245, 0.6);\n }\n &.selected-start,\n &.selected-end {\n color: #fff;\n background-color: #1976d2;\n }\n &.disabled {\n opacity: 0.8;\n border: 1px solid transparent;\n }\n &:hover:not(.disabled):not(.selected-start):not(.selected-end) {\n color: inherit;\n border: 1px solid transparent;\n background-color: rgba(66, 165, 245, 0.3);\n }\n"])));
6101
6062
  var templateObject_1$b, templateObject_2$6;var PrivateYearRangePickerYear = React.forwardRef(function (_a, ref) {
6102
6063
  var year = _a.year, disabled = _a.disabled, isDefault = _a.isDefault, selected = _a.selected, selectedStart = _a.selectedStart, selectedEnd = _a.selectedEnd, selectedTemp = _a.selectedTemp, onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave;
6103
- return (React.createElement(StyledContainer$6, { className: 'PrivateYearRangePickerYear', ref: ref, item: true, xs: 4 },
6064
+ return (React.createElement(StyledContainer$6, { className: 'PrivateYearRangePickerYear', ref: ref, size: { xs: 4 } },
6104
6065
  React.createElement(StyledButton$2, { className: classNames(isDefault && 'default', selected && 'selected', selectedStart && 'selected-start', selectedEnd && 'selected-end', selectedTemp && 'selected-temp', disabled && 'disabled'), disabled: disabled, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave }, year)));
6105
6066
  });var StyledContainer$5 = styled(Grid)(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n width: 240px;\n height: inherit;\n max-height: 240px;\n overflow-y: auto;\n padding: 4px;\n"], ["\n width: 240px;\n height: inherit;\n max-height: 240px;\n overflow-y: auto;\n padding: 4px;\n"])));
6106
6067
  var templateObject_1$a;var _lastCloseTime$1 = 0;
@@ -6112,7 +6073,7 @@ var PrivateYearRangePickerYearList = function (_a) {
6112
6073
  var yearsContainerRef = useRef(null);
6113
6074
  var startButtonRef = useRef(null);
6114
6075
  var endButtonRef = useRef(null);
6115
- var mouseOverTimer = useRef();
6076
+ var mouseOverTimer = useRef(undefined);
6116
6077
  /********************************************************************************************************************
6117
6078
  * State
6118
6079
  * ******************************************************************************************************************/
@@ -6373,7 +6334,7 @@ var PrivateYearRangePicker = function (_a) {
6373
6334
  var StyledButton$1 = styled(Button)(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n font-size: 12px;\n background-color: transparent;\n color: unset;\n outline: 0;\n font-weight: 400;\n line-height: 1.75;\n border-radius: 18px;\n cursor: pointer;\n width: 100%;\n border: 1px solid transparent;\n\n &:focus {\n background-color: rgba(0, 0, 0, 0.12);\n }\n &.default {\n background-color: #efefef;\n }\n &.selected,\n &.selected-temp {\n background-color: rgba(66, 165, 245, 0.6);\n }\n &.selected-start,\n &.selected-end {\n color: #fff;\n background-color: rgba(25, 118, 210, 1);\n\n &.range:not(.active) {\n background-color: rgba(25, 118, 210, 0.8);\n }\n }\n &.active {\n color: #fff;\n background-color: rgba(25, 118, 210, 1);\n box-shadow: inset 1px 1px 1px 1px #05569f;\n }\n &.disabled {\n opacity: 0.8;\n border: 1px solid transparent;\n }\n &:hover:not(.disabled):not(.selected-start):not(.selected-end) {\n color: inherit;\n border: 1px solid transparent;\n background-color: rgba(66, 165, 245, 0.3);\n }\n"], ["\n font-size: 12px;\n background-color: transparent;\n color: unset;\n outline: 0;\n font-weight: 400;\n line-height: 1.75;\n border-radius: 18px;\n cursor: pointer;\n width: 100%;\n border: 1px solid transparent;\n\n &:focus {\n background-color: rgba(0, 0, 0, 0.12);\n }\n &.default {\n background-color: #efefef;\n }\n &.selected,\n &.selected-temp {\n background-color: rgba(66, 165, 245, 0.6);\n }\n &.selected-start,\n &.selected-end {\n color: #fff;\n background-color: rgba(25, 118, 210, 1);\n\n &.range:not(.active) {\n background-color: rgba(25, 118, 210, 0.8);\n }\n }\n &.active {\n color: #fff;\n background-color: rgba(25, 118, 210, 1);\n box-shadow: inset 1px 1px 1px 1px #05569f;\n }\n &.disabled {\n opacity: 0.8;\n border: 1px solid transparent;\n }\n &:hover:not(.disabled):not(.selected-start):not(.selected-end) {\n color: inherit;\n border: 1px solid transparent;\n background-color: rgba(66, 165, 245, 0.3);\n }\n"])));
6374
6335
  var templateObject_1$8, templateObject_2$4;var PrivateYearPickerYear = React.forwardRef(function (_a, ref) {
6375
6336
  var year = _a.year, disabled = _a.disabled, active = _a.active, range = _a.range, isDefault = _a.isDefault, selected = _a.selected, selectedStart = _a.selectedStart, selectedEnd = _a.selectedEnd, selectedTemp = _a.selectedTemp, onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave;
6376
- return (React.createElement(StyledContainer$4, { className: 'PrivateYearPickerYear', ref: ref, item: true, xs: 4 },
6337
+ return (React.createElement(StyledContainer$4, { className: 'PrivateYearPickerYear', ref: ref, size: { xs: 4 } },
6377
6338
  React.createElement(StyledButton$1, { className: classNames(range && 'range', isDefault && 'default', selected && 'selected', selectedStart && 'selected-start', selectedEnd && 'selected-end', selectedTemp && 'selected-temp', active && 'active', disabled && 'disabled'), disabled: disabled, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave }, year)));
6378
6339
  });var StyledContainer$3 = styled(Grid)(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n width: 240px;\n height: inherit;\n max-height: 240px;\n overflow-y: auto;\n padding: 4px;\n"], ["\n width: 240px;\n height: inherit;\n max-height: 240px;\n overflow-y: auto;\n padding: 4px;\n"])));
6379
6340
  var templateObject_1$7;var _lastCloseTime = 0;
@@ -6386,7 +6347,7 @@ var PrivateYearPickerYearList = function (_a) {
6386
6347
  var defaultButtonRef = useRef(null);
6387
6348
  var startButtonRef = useRef(null);
6388
6349
  var endButtonRef = useRef(null);
6389
- var mouseOverTimer = useRef();
6350
+ var mouseOverTimer = useRef(undefined);
6390
6351
  /********************************************************************************************************************
6391
6352
  * State
6392
6353
  * ******************************************************************************************************************/
@@ -6651,7 +6612,7 @@ var templateObject_1$5, templateObject_2$2;var PrivateMonthPickerMonth = React.f
6651
6612
  /********************************************************************************************************************
6652
6613
  * Render
6653
6614
  * ******************************************************************************************************************/
6654
- return (React.createElement(StyledContainer$2, { className: 'PrivateMonthPickerMonth', ref: ref, item: true, xs: 4 },
6615
+ return (React.createElement(StyledContainer$2, { className: 'PrivateMonthPickerMonth', ref: ref, size: { xs: 4 } },
6655
6616
  React.createElement(StyledButton, { className: classNames(range && 'range', isDefault && 'default', active && 'active', selected && 'selected', selectedStart && 'selected-start', selectedEnd && 'selected-end', selectedTemp && 'selected-temp', disabled && 'disabled'), disabled: disabled, onClick: handleClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave },
6656
6617
  month,
6657
6618
  "\uC6D4")));
@@ -7021,10 +6982,10 @@ var PrivateMonthRangePicker = function (_a) {
7021
6982
  * ******************************************************************************************************************/
7022
6983
  return (React.createElement("div", null,
7023
6984
  React.createElement(Grid, { container: true, className: 'PrivateMonthRangePicker' },
7024
- React.createElement(Grid, { item: true },
6985
+ React.createElement(Grid, null,
7025
6986
  React.createElement(PrivateMonthPicker, { value: value[0], selectToValue: value[1], minValue: minValue, maxValue: maxValue, disablePast: disablePast, disableFuture: disableFuture, onChange: handleStartMonthChange })),
7026
6987
  React.createElement(StyledDiv, null, "~"),
7027
- React.createElement(Grid, { item: true },
6988
+ React.createElement(Grid, null,
7028
6989
  React.createElement(PrivateMonthPicker, { value: value[1], selectFromValue: value[0], minValue: minValue, maxValue: maxValue, disablePast: disablePast, disableFuture: disableFuture, onChange: handleEndMonthChange }))),
7029
6990
  actionButtons));
7030
6991
  };
@@ -7089,8 +7050,7 @@ FormDateTimePicker.displayName = 'FormDateTimePicker';var FormTimePicker = React
7089
7050
  return (React.createElement(FormContextProvider, { value: __assign(__assign({}, otherFormState), { onAddValueItem: handleAddValueItem }) },
7090
7051
  React.createElement(PrivateDateTimePicker, __assign({ className: classNames(className, 'FormTimePicker') }, props, { ref: ref, type: 'time' }))));
7091
7052
  });
7092
- FormTimePicker.displayName = 'FormTimePicker';var css_248z$3 = ".FormDateRangePickerTooltipPicker .MuiPickersCalendarHeader-root {\n display: none;\n}\n.FormDateRangePickerTooltipPicker .MuiDayPicker-header > span {\n margin: 0;\n}\n.FormDateRangePickerTooltipPicker .MuiPickerStaticWrapper-content {\n min-width: 292px;\n}\n.FormDateRangePickerTooltipPicker .MuiPickerStaticWrapper-content .MuiCalendarOrClockPicker-root > div {\n width: 292px;\n}\n.FormDateRangePickerTooltipPicker .MuiPickerStaticWrapper-content .MuiCalendarOrClockPicker-root > div .MuiCalendarPicker-root {\n width: 292px;\n}\n.FormDateRangePickerTooltipPicker .selected-bg {\n display: none;\n position: absolute;\n}\n.FormDateRangePickerTooltipPicker .selected-bg.sel {\n display: block;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(66, 165, 245, 0.6);\n}\n.FormDateRangePickerTooltipPicker .selected-bg.sel.ui-start, .FormDateRangePickerTooltipPicker .selected-bg.sel.s-start {\n border-top-left-radius: 50%;\n border-bottom-left-radius: 50%;\n}\n.FormDateRangePickerTooltipPicker .selected-bg.sel.ui-end, .FormDateRangePickerTooltipPicker .selected-bg.sel.s-end {\n border-top-right-radius: 50%;\n border-bottom-right-radius: 50%;\n}\n.FormDateRangePickerTooltipPicker .selected-bg.sel ~ .MuiPickersDay-root {\n border: 0;\n}\n.FormDateRangePickerTooltipPicker .selected-bg.sel ~ .MuiPickersDay-root:not(:hover):not(:active):not(.Mui-selected) {\n background-color: transparent;\n}\n.FormDateRangePickerTooltipPicker .focused-bg {\n display: none;\n position: absolute;\n}\n.FormDateRangePickerTooltipPicker .focused-bg.focused {\n display: block;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n border: 2px solid #efefef;\n border-left: 0;\n border-right: 0;\n}\n.FormDateRangePickerTooltipPicker .focused-bg.focused.ui-start, .FormDateRangePickerTooltipPicker .focused-bg.focused.f-start {\n border-left: 2px solid #efefef;\n border-top-left-radius: 50%;\n border-bottom-left-radius: 50%;\n}\n.FormDateRangePickerTooltipPicker .focused-bg.focused.ui-end, .FormDateRangePickerTooltipPicker .focused-bg.focused.f-end {\n border-right: 2px solid #efefef;\n border-top-right-radius: 50%;\n border-bottom-right-radius: 50%;\n}\n.FormDateRangePickerTooltipPicker .focused-bg.focused ~ .MuiPickersDay-root:not(:hover):not(:active):not(.Mui-selected) {\n background-color: transparent;\n}";
7093
- styleInject(css_248z$3);var FormDateRangePickerTooltipPicker = React.forwardRef(function (_a, ref) {
7053
+ FormTimePicker.displayName = 'FormTimePicker';var FormDateRangePickerTooltipPicker = React.forwardRef(function (_a, ref) {
7094
7054
  /********************************************************************************************************************
7095
7055
  * State
7096
7056
  * ******************************************************************************************************************/
@@ -7107,8 +7067,8 @@ styleInject(css_248z$3);var FormDateRangePickerTooltipPicker = React.forwardRef(
7107
7067
  setActiveMonthValue(null);
7108
7068
  }, [selectType]);
7109
7069
  //--------------------------------------------------------------------------------------------------------------------
7110
- var leftArrowOnClickRef = useRef();
7111
- var rightArrowOnClickRef = useRef();
7070
+ var leftArrowOnClickRef = useRef(undefined);
7071
+ var rightArrowOnClickRef = useRef(undefined);
7112
7072
  var LeftArrowButton = useState(function () {
7113
7073
  var ArrowButton = function (props) {
7114
7074
  leftArrowOnClickRef.current = props.onClick;
@@ -7281,8 +7241,7 @@ styleInject(css_248z$3);var FormDateRangePickerTooltipPicker = React.forwardRef(
7281
7241
  onMonthChange(month);
7282
7242
  setActiveMonthValue(null);
7283
7243
  } }));
7284
- });var css_248z$2 = ".FormDateRangePickerTooltipPickerContainer {\n display: inline-block;\n position: relative;\n}\n.FormDateRangePickerTooltipPickerContainer .month-change-arrow-wrap {\n position: absolute;\n top: 15px;\n left: 0;\n right: 0;\n}\n.FormDateRangePickerTooltipPickerContainer .month-change-arrow-wrap > div:first-of-type {\n padding-left: 20px;\n}\n.FormDateRangePickerTooltipPickerContainer .month-change-arrow-wrap > div:last-child {\n padding-right: 20px;\n text-align: right;\n}\n.FormDateRangePickerTooltipPickerContainer .month-title {\n text-align: center;\n padding-top: 13px;\n padding-bottom: 10px;\n}\n.FormDateRangePickerTooltipPickerContainer .month-title button {\n font-size: 15px;\n padding-left: 8px;\n padding-right: 0;\n min-width: 0;\n}\n.FormDateRangePickerTooltipPickerContainer .month-title button:not(.active) {\n color: unset;\n}\n.FormDateRangePickerTooltipPickerContainer .date-picker-wrap {\n position: relative;\n}\n.FormDateRangePickerTooltipPickerContainer .date-picker-wrap .year-select,\n.FormDateRangePickerTooltipPickerContainer .date-picker-wrap .month-select {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-top: 1px solid #efefef;\n padding-top: 15px;\n background-color: white;\n}\n.FormDateRangePickerTooltipPickerContainer .date-picker-wrap .year-select button.today:not(.selected),\n.FormDateRangePickerTooltipPickerContainer .date-picker-wrap .month-select button.today:not(.selected) {\n border: 1px solid rgba(0, 0, 0, 0.1);\n}\n.FormDateRangePickerTooltipPickerContainer .date-picker-wrap .year-select button.active:not(.selected),\n.FormDateRangePickerTooltipPickerContainer .date-picker-wrap .month-select button.active:not(.selected) {\n background-color: #f5f5f5;\n}\n.FormDateRangePickerTooltipPickerContainer .date-picker-wrap .year-select button.active:not(.selected):hover,\n.FormDateRangePickerTooltipPickerContainer .date-picker-wrap .month-select button.active:not(.selected):hover {\n background-color: rgb(229, 229, 229);\n}\n.FormDateRangePickerTooltipPickerContainer .date-picker-wrap .year-select {\n overflow-y: scroll;\n}\n.FormDateRangePickerTooltipPickerContainer .date-picker-wrap .year-select button {\n font-size: 14px;\n font-weight: 400;\n border-radius: 18px;\n}\n.FormDateRangePickerTooltipPickerContainer .date-picker-wrap .month-select button {\n font-size: 15px;\n font-weight: 400;\n border-radius: 18px;\n}\n.FormDateRangePickerTooltipPickerContainer .action-buttons button {\n min-width: 0;\n color: unset;\n}\n.FormDateRangePickerTooltipPickerContainer .action-buttons button:not(:first-of-type) {\n margin-left: 5px;\n}\n.FormDateRangePickerTooltipPickerContainer .action-buttons button.disabled {\n color: rgba(0, 0, 0, 0.5);\n}";
7285
- styleInject(css_248z$2);var YEARS = new Array(200).fill(0);
7244
+ });var YEARS = new Array(200).fill(0);
7286
7245
  for (var i = 0; i < 200; i += 1) {
7287
7246
  YEARS[i] = 1900 + i;
7288
7247
  }
@@ -7497,26 +7456,26 @@ var FormDateRangePickerTooltipPickerContainer = React.forwardRef(function (_a, r
7497
7456
  }, [onGetActionButtons, getActionButton]);
7498
7457
  return (React.createElement("div", { className: 'FormDateRangePickerTooltipPickerContainer' },
7499
7458
  React.createElement(Grid, { container: true, direction: 'column' },
7500
- !yearSelectOpen && !monthSelectOpen && (React.createElement(Grid, { item: true },
7459
+ !yearSelectOpen && !monthSelectOpen && (React.createElement(Grid, null,
7501
7460
  React.createElement(Grid, { container: true, className: 'month-change-arrow-wrap' },
7502
- React.createElement(Grid, { item: true, xs: 6 },
7461
+ React.createElement(Grid, { size: { xs: 6 } },
7503
7462
  React.createElement(IconButton, { onClick: previousMonth },
7504
7463
  React.createElement(Icon, null, "keyboard_arrow_left"))),
7505
- React.createElement(Grid, { item: true, xs: 6 },
7464
+ React.createElement(Grid, { size: { xs: 6 } },
7506
7465
  React.createElement(IconButton, { onClick: nextMonth },
7507
7466
  React.createElement(Icon, null, "keyboard_arrow_right")))))),
7508
- React.createElement(Grid, { item: true, onMouseLeave: function () { return setFocusedDate(undefined); } },
7467
+ React.createElement(Grid, { onMouseLeave: function () { return setFocusedDate(undefined); } },
7509
7468
  React.createElement("div", { style: { display: 'flex' } },
7510
7469
  React.createElement("div", { style: { flex: 1 } }, getMonthTitle(0)),
7511
7470
  React.createElement("div", { style: { flex: 1, borderLeft: '1px solid #efefef' } }, getMonthTitle(1)),
7512
7471
  Number(calendarCount) >= 3 && (React.createElement("div", { style: { flex: 1, borderLeft: '1px solid #efefef' } }, getMonthTitle(2)))),
7513
7472
  React.createElement("div", { className: 'date-picker-wrap' },
7514
7473
  React.createElement(Grid, { container: true, flexWrap: 'nowrap' },
7515
- React.createElement(Grid, { item: true },
7474
+ React.createElement(Grid, null,
7516
7475
  React.createElement(FormDateRangePickerTooltipPicker, __assign({}, customDatePickerProps, { ref: datePicker1Ref, focusedDate: focusedDate, month: months[0], onMouseEnterPickersDay: setFocusedDate, onMonthChange: handleFirstDatePickerMonthChange }))),
7517
- React.createElement(Grid, { item: true, style: { borderLeft: '1px solid #efefef' } },
7476
+ React.createElement(Grid, { style: { borderLeft: '1px solid #efefef' } },
7518
7477
  React.createElement(FormDateRangePickerTooltipPicker, __assign({}, customDatePickerProps, { ref: datePicker2Ref, focusedDate: focusedDate, month: months[1], onMouseEnterPickersDay: setFocusedDate }))),
7519
- Number(calendarCount) >= 3 && (React.createElement(Grid, { item: true, style: { borderLeft: '1px solid #efefef' } },
7478
+ Number(calendarCount) >= 3 && (React.createElement(Grid, { style: { borderLeft: '1px solid #efefef' } },
7520
7479
  React.createElement(FormDateRangePickerTooltipPicker, __assign({}, customDatePickerProps, { ref: datePicker3Ref, focusedDate: focusedDate, month: months[2], onMouseEnterPickersDay: setFocusedDate }))))),
7521
7480
  yearSelectOpen && (React.createElement("div", { ref: yearSelectRef, className: 'year-select' },
7522
7481
  React.createElement(Grid, { container: true, style: { padding: '5px 10px' }, spacing: 1 }, YEARS.map(function (y) {
@@ -7526,7 +7485,7 @@ var FormDateRangePickerTooltipPickerContainer = React.forwardRef(function (_a, r
7526
7485
  var isActive = y === months[yearMonthSelectIndex].year();
7527
7486
  var isSelected = y === ((_a = value[yearMonthSelectIndex]) === null || _a === void 0 ? void 0 : _a.year());
7528
7487
  var disabled = !isDateAvailable(dayjs(y.toString(), 'YYYY'), availableDate, 'year');
7529
- return (React.createElement(Grid, { key: y, item: true, xs: 2 },
7488
+ return (React.createElement(Grid, { key: y, size: { xs: 2 } },
7530
7489
  React.createElement(Button, { variant: 'text', fullWidth: true, disabled: disabled, className: classNames(isSelected && 'selected', isActive && 'active', isToday && 'today'), ref: isActive ? activeYearBtnRef : undefined, sx: {
7531
7490
  backgroundColor: isSelected ? theme.palette.primary.main : undefined,
7532
7491
  color: isSelected ? 'white' : 'unset',
@@ -7547,7 +7506,7 @@ var FormDateRangePickerTooltipPickerContainer = React.forwardRef(function (_a, r
7547
7506
  m === ((_b = value[yearMonthSelectIndex]) === null || _b === void 0 ? void 0 : _b.month());
7548
7507
  var ym = months[yearMonthSelectIndex].year() * 100 + (m + 1);
7549
7508
  var disabled = !isDateAvailable(dayjs(ym.toString(), 'YYYYMM'), availableDate, 'month');
7550
- return (React.createElement(Grid, { key: m, item: true, xs: 4 },
7509
+ return (React.createElement(Grid, { key: m, size: { xs: 4 } },
7551
7510
  React.createElement(Button, { variant: 'text', fullWidth: true, disabled: disabled, className: classNames(isSelected && 'selected', isActive && 'active', isToday && 'today'), ref: isActive ? activeYearBtnRef : undefined, sx: {
7552
7511
  backgroundColor: isSelected ? theme.palette.primary.main : undefined,
7553
7512
  color: isSelected ? 'white' : 'unset',
@@ -7560,7 +7519,7 @@ var FormDateRangePickerTooltipPickerContainer = React.forwardRef(function (_a, r
7560
7519
  m + 1,
7561
7520
  "\uC6D4")));
7562
7521
  })))))),
7563
- React.createElement(Grid, { className: 'action-buttons', item: true, style: { borderTop: '1px solid #efefef', padding: 10, textAlign: 'right' } }, actionButtons))));
7522
+ React.createElement(Grid, { className: 'action-buttons', style: { borderTop: '1px solid #efefef', padding: 10, textAlign: 'right' } }, actionButtons))));
7564
7523
  });var DEFAULT_VALUE$2 = [null, null];
7565
7524
  var getFinalValue$6 = function (value) {
7566
7525
  return value || DEFAULT_VALUE$2;
@@ -7592,13 +7551,13 @@ var FormDateRangePicker = React.forwardRef(function (_a, ref) {
7592
7551
  * Ref
7593
7552
  * ******************************************************************************************************************/
7594
7553
  var containerRef = useRef(null);
7595
- var startDateTextFieldRef = useRef();
7596
- var endDateTextFieldRef = useRef();
7597
- var closeTimeoutRef = useRef();
7598
- var mouseDownTimeRef = useRef();
7554
+ var startDateTextFieldRef = useRef(undefined);
7555
+ var endDateTextFieldRef = useRef(undefined);
7556
+ var closeTimeoutRef = useRef(undefined);
7557
+ var mouseDownTimeRef = useRef(undefined);
7599
7558
  var startInputDatePickerErrorRef = useRef(null);
7600
7559
  var endInputDatePickerErrorRef = useRef(null);
7601
- var openValueRef = useRef();
7560
+ var openValueRef = useRef(undefined);
7602
7561
  /********************************************************************************************************************
7603
7562
  * State
7604
7563
  * ******************************************************************************************************************/
@@ -8087,10 +8046,10 @@ var FormDateRangePicker = React.forwardRef(function (_a, ref) {
8087
8046
  }, title: React.createElement("div", { style: { display: 'flex' } },
8088
8047
  React.createElement(FormDateRangePickerTooltipPickerContainer, { ref: containerRef, calendarCount: calendarCount, selectType: selectType, value: value, months: months, disablePast: disablePast, disableFuture: disableFuture, minDate: minDate, maxDate: maxDate, onGetActionButtons: onGetActionButtons, onChange: handleChange, onValueChange: handleValueChange, onMonthsChange: setMonths })) },
8089
8048
  React.createElement(Grid, { container: true, alignItems: 'center' },
8090
- React.createElement(Grid, { item: true, flex: 1 },
8049
+ React.createElement(Grid, { flex: 1 },
8091
8050
  React.createElement(PrivateInputDatePicker, __assign({}, inputDatePickerProps, { style: inputStyle, value: value[0], label: fromLabel, labelIcon: fromLabelIcon, error: error || fromError, focused: focused || (open && selectType === 'start'), required: required || requiredStart, readOnly: readOnly || readOnlyStart, readOnlyInput: readOnlyInput, icon: startIcon || icon, startAdornment: startStartAdornment || startAdornment, endAdornment: startEndAdornment || endAdornment, inputRef: startDateTextFieldRef, onChange: function (newValue) { return handleInputDatePickerChange('start', newValue); }, onFocus: function () { return handleInputDatePickerFocus('start'); }, onError: function (reason) { return (startInputDatePickerErrorRef.current = reason); } }))),
8092
- React.createElement(Grid, { item: true, sx: { px: 1 } }, "~"),
8093
- React.createElement(Grid, { item: true, flex: 1 },
8051
+ React.createElement(Grid, { sx: { px: 1 } }, "~"),
8052
+ React.createElement(Grid, { flex: 1 },
8094
8053
  React.createElement(PrivateInputDatePicker, __assign({}, inputDatePickerProps, { style: inputStyle, value: value[1], label: toLabel, labelIcon: toLabelIcon, error: error || toError, focused: focused || (open && selectType === 'end'), required: required || requiredEnd, readOnly: readOnly || readOnlyEnd, readOnlyInput: readOnlyInput, icon: endIcon || icon, startAdornment: endStartAdornment || startAdornment, endAdornment: endEndAdornment || endAdornment, inputRef: endDateTextFieldRef, onChange: function (newValue) { return handleInputDatePickerChange('end', newValue); }, onFocus: function () { return handleInputDatePickerFocus('end'); }, onError: function (reason) { return (endInputDatePickerErrorRef.current = reason); } }))))),
8095
8054
  !formColWithHelperText &&
8096
8055
  (helperText ||
@@ -8103,7 +8062,7 @@ FormDateRangePicker.displayName = 'FormDateRangePicker';var LinkDialog = functio
8103
8062
  * Ref
8104
8063
  * ******************************************************************************************************************/
8105
8064
  var open = _a.open, onConfirm = _a.onConfirm, onCancel = _a.onCancel, onClose = _a.onClose;
8106
- var inputRef = useRef();
8065
+ var inputRef = useRef(null);
8107
8066
  /********************************************************************************************************************
8108
8067
  * State
8109
8068
  * ******************************************************************************************************************/
@@ -8156,8 +8115,7 @@ FormDateRangePicker.displayName = 'FormDateRangePicker';var LinkDialog = functio
8156
8115
  React.createElement(DialogActions, null,
8157
8116
  React.createElement(Button, { variant: 'text', onClick: handleCancel }, "\uCDE8\uC18C"),
8158
8117
  React.createElement(Button, { variant: 'text', onClick: handleSubmit }, "\uD655\uC778"))));
8159
- };var css_248z$1 = ".FormFile .control-wrap {\n display: inline-flex;\n}\n.FormFile .control-wrap .file-name-wrap .file-name {\n min-width: 350px;\n}\n.FormFile .control-wrap .file-name-wrap .file-name .MuiInputBase-root {\n padding-right: 7px;\n}\n.FormFile .control-wrap .input-file {\n display: none;\n}\n.FormFile .control-wrap .input-file-wrap {\n display: flex;\n}\n.FormFile .control-wrap .input-file-wrap .input-file-btn:not(.hidden-label) .PdgIcon {\n margin-left: -3px;\n}\n.FormFile.full-width .control-wrap {\n display: flex;\n}\n.FormFile.full-width .control-wrap .file-name-wrap {\n flex: 1;\n}\n.FormFile.variant-standard .file-name-wrap .file-name .MuiInputBase-root {\n padding-right: 0;\n}\n.FormFile:not(.hide-file-name).variant-outlined .form-file-btn label, .FormFile:not(.hide-file-name).variant-filled .form-file-btn label {\n padding-top: 10px;\n padding-bottom: 10px;\n}\n.FormFile:not(.hide-file-name).variant-standard .form-file-btn label {\n padding-top: 5px;\n padding-bottom: 5px;\n}\n.FormFile:not(.hide-file-name).size-small .form-file-btn label {\n padding-top: 5px;\n padding-bottom: 5px;\n}\n\n.FormFile.hide-file-name:not(.with-label).variant-outlined .form-file-btn {\n height: 52px;\n}\n.FormFile.hide-file-name:not(.with-label).variant-filled .form-file-btn {\n height: 52px;\n}\n.FormFile.hide-file-name:not(.with-label).variant-standard .form-file-btn {\n height: 28px;\n}\n.FormFile.hide-file-name:not(.with-label).size-small.variant-outlined .form-file-btn {\n height: 37px;\n}\n.FormFile.hide-file-name:not(.with-label).size-small.variant-filled .form-file-btn {\n height: 44px;\n}\n.FormFile.hide-file-name:not(.with-label).size-small.variant-standard .form-file-btn {\n height: 26px;\n}\n.FormFile.hide-file-name.with-label.variant-outlined .form-file-btn {\n height: 37px;\n}\n.FormFile.hide-file-name.with-label.variant-filled .form-file-btn {\n height: 37px;\n}\n.FormFile.hide-file-name.with-label.variant-standard .form-file-btn {\n height: 28px;\n}\n.FormFile.hide-file-name.with-label.size-small.variant-outlined .form-file-btn {\n height: 24px;\n}\n.FormFile.hide-file-name.with-label.size-small.variant-filled .form-file-btn {\n height: 31px;\n}\n.FormFile.hide-file-name.with-label.size-small.variant-standard .form-file-btn {\n height: 26px;\n}\n\n.Form .FormCol.with-label .FormFile.hide-file-name.variant-outlined .form-file-btn {\n height: 37px;\n}\n.Form .FormCol.with-label .FormFile.hide-file-name.variant-filled .form-file-btn {\n height: 37px;\n}\n.Form .FormCol.with-label .FormFile.hide-file-name.variant-standard .form-file-btn {\n height: 28px;\n}\n.Form .FormCol.with-label .FormFile.hide-file-name.size-small.variant-outlined .form-file-btn {\n height: 24px;\n}\n.Form .FormCol.with-label .FormFile.hide-file-name.size-small.variant-filled .form-file-btn {\n height: 31px;\n}\n.Form .FormCol.with-label .FormFile.hide-file-name.size-small.variant-standard .form-file-btn {\n height: 26px;\n}";
8160
- styleInject(css_248z$1);var StyledPdgButton = styled(PdgButton)(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n min-width: 0;\n\n &.input-file-btn {\n padding: 0 !important;\n position: relative;\n\n .PdgFlexRowBox {\n height: 100%;\n .PdgText {\n height: 100%;\n\n label {\n cursor: pointer;\n display: flex;\n flex: 1;\n width: 100%;\n height: 100%;\n justify-content: center;\n align-items: center;\n padding: 0 10px;\n\n .PdgIcon {\n margin-right: 0.2em;\n }\n }\n }\n }\n }\n\n &.hidden-label.input-file-btn .PdgFlexRowBox .PdgText label .PdgIcon {\n margin-left: 0;\n margin-right: 0;\n }\n\n &.MuiButton-outlined {\n &:first-of-type:not(:last-of-type) {\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n &:last-of-type:not(:first-of-type) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n &:not(:first-of-type):not(:last-of-type) {\n border-right: 0;\n border-radius: 0;\n }\n }\n"], ["\n min-width: 0;\n\n &.input-file-btn {\n padding: 0 !important;\n position: relative;\n\n .PdgFlexRowBox {\n height: 100%;\n .PdgText {\n height: 100%;\n\n label {\n cursor: pointer;\n display: flex;\n flex: 1;\n width: 100%;\n height: 100%;\n justify-content: center;\n align-items: center;\n padding: 0 10px;\n\n .PdgIcon {\n margin-right: 0.2em;\n }\n }\n }\n }\n }\n\n &.hidden-label.input-file-btn .PdgFlexRowBox .PdgText label .PdgIcon {\n margin-left: 0;\n margin-right: 0;\n }\n\n &.MuiButton-outlined {\n &:first-of-type:not(:last-of-type) {\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n &:last-of-type:not(:first-of-type) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n &:not(:first-of-type):not(:last-of-type) {\n border-right: 0;\n border-radius: 0;\n }\n }\n"])));
8118
+ };var StyledPdgButton = styled(PdgButton)(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n min-width: 0;\n\n &.input-file-btn {\n padding: 0 !important;\n position: relative;\n\n .PdgFlexRowBox {\n height: 100%;\n .PdgText {\n height: 100%;\n\n label {\n cursor: pointer;\n display: flex;\n flex: 1;\n width: 100%;\n height: 100%;\n justify-content: center;\n align-items: center;\n padding: 0 10px;\n\n .PdgIcon {\n margin-right: 0.2em;\n }\n }\n }\n }\n }\n\n &.hidden-label.input-file-btn .PdgFlexRowBox .PdgText label .PdgIcon {\n margin-left: 0;\n margin-right: 0;\n }\n\n &.MuiButton-outlined {\n &:first-of-type:not(:last-of-type) {\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n &:last-of-type:not(:first-of-type) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n &:not(:first-of-type):not(:last-of-type) {\n border-right: 0;\n border-radius: 0;\n }\n }\n"], ["\n min-width: 0;\n\n &.input-file-btn {\n padding: 0 !important;\n position: relative;\n\n .PdgFlexRowBox {\n height: 100%;\n .PdgText {\n height: 100%;\n\n label {\n cursor: pointer;\n display: flex;\n flex: 1;\n width: 100%;\n height: 100%;\n justify-content: center;\n align-items: center;\n padding: 0 10px;\n\n .PdgIcon {\n margin-right: 0.2em;\n }\n }\n }\n }\n }\n\n &.hidden-label.input-file-btn .PdgFlexRowBox .PdgText label .PdgIcon {\n margin-left: 0;\n margin-right: 0;\n }\n\n &.MuiButton-outlined {\n &:first-of-type:not(:last-of-type) {\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n &:last-of-type:not(:first-of-type) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n &:not(:first-of-type):not(:last-of-type) {\n border-right: 0;\n border-radius: 0;\n }\n }\n"])));
8161
8119
  var templateObject_1$1;var getFinalValue$5 = function (value) { return value || ''; };var FILE_VALUE = '';
8162
8120
  var FormFile = React.forwardRef(function (_a, ref) {
8163
8121
  /********************************************************************************************************************
@@ -8187,7 +8145,6 @@ var FormFile = React.forwardRef(function (_a, ref) {
8187
8145
  /********************************************************************************************************************
8188
8146
  * Ref
8189
8147
  * ******************************************************************************************************************/
8190
- var innerRef = useRef(null);
8191
8148
  var textFieldRef = useRef(null);
8192
8149
  var fileUploadBtnRef = useRef(null);
8193
8150
  var linkBtnRef = useRef(null);
@@ -8204,11 +8161,7 @@ var FormFile = React.forwardRef(function (_a, ref) {
8204
8161
  /********************************************************************************************************************
8205
8162
  * State - width, height
8206
8163
  * ******************************************************************************************************************/
8207
- var height = useResizeDetector({
8208
- targetRef: innerRef,
8209
- handleWidth: false,
8210
- handleHeight: true,
8211
- }).height;
8164
+ var _l = useResizeDetector({ handleWidth: false }), innerRef = _l.ref, height = _l.height;
8212
8165
  /********************************************************************************************************************
8213
8166
  * Function - setErrorErrorHelperText
8214
8167
  * ******************************************************************************************************************/
@@ -8244,7 +8197,7 @@ var FormFile = React.forwardRef(function (_a, ref) {
8244
8197
  /********************************************************************************************************************
8245
8198
  * State - value
8246
8199
  * ******************************************************************************************************************/
8247
- var _l = useAutoUpdateRefState(initValue, getFinalValue$5), valueRef = _l[0], value = _l[1], setValue = _l[2];
8200
+ var _m = useAutoUpdateRefState(initValue, getFinalValue$5), valueRef = _m[0], value = _m[1], setValue = _m[2];
8248
8201
  useFirstSkipEffect(function () {
8249
8202
  if (error)
8250
8203
  validate(value);
@@ -8426,17 +8379,21 @@ var FormFile = React.forwardRef(function (_a, ref) {
8426
8379
  !hideUrl && (React.createElement("div", { className: 'file-name-wrap' },
8427
8380
  React.createElement(TextField, { ref: innerRef, inputRef: textFieldRef, className: 'file-name', variant: variant, label: labelIcon ? (React.createElement(React.Fragment, null,
8428
8381
  React.createElement(PdgIcon, { style: { verticalAlign: 'middle', marginRight: 4 } }, labelIcon),
8429
- React.createElement("span", { style: { verticalAlign: 'middle' } }, initLabel))) : (initLabel), size: size, required: required, value: value || '', focused: focused, disabled: disabled, fullWidth: true, error: error, InputLabelProps: labelShrink ? { shrink: labelShrink } : undefined, inputProps: { readOnly: true }, InputProps: {
8430
- endAdornment: (React.createElement(InputAdornment, { position: 'end' },
8431
- React.createElement("div", { className: 'input-file-wrap' },
8432
- !hideUpload && (React.createElement(React.Fragment, null,
8433
- React.createElement(StyledPdgButton, { variant: 'text', tabIndex: uploadTabIndex == null ? -1 : uploadTabIndex, className: classNames('input-file-btn form-file-btn', !!hideUploadLabel && 'hidden-label'), color: error ? 'error' : color, size: size, disabled: readOnly || disabled, ref: fileUploadBtnRef },
8434
- React.createElement("label", { htmlFor: id },
8435
- React.createElement(PdgIcon, { size: size }, "upload"),
8436
- !hideUploadLabel && (uploadLabel || '파일 업로드'))),
8437
- React.createElement("input", { type: 'file', accept: accept, id: id, value: FILE_VALUE, className: 'input-file', onChange: handleFileChange }))),
8438
- !hideLink && (React.createElement(StyledPdgButton, { variant: 'text', tabIndex: linkTabIndex == null ? -1 : linkTabIndex, className: classNames('link-btn form-file-btn', !!hideLinkLabel && 'hidden-label'), color: error ? 'error' : color, startIcon: 'link', size: size, disabled: readOnly || disabled, ref: linkBtnRef, onClick: handleLinkClick }, !hideLinkLabel && (linkLabel || '링크'))),
8439
- !hideRemove && notEmpty(value) && (React.createElement(StyledPdgButton, { variant: 'text', tabIndex: removeTabIndex == null ? -1 : removeTabIndex, className: classNames('remove-btn form-file-btn', !!hideRemoveLabel && 'hidden-label'), color: error ? 'error' : color, startIcon: 'close', size: size, disabled: readOnly || disabled, onClick: handleRemoveClick }, !hideRemoveLabel && (removeLabel || '삭제')))))),
8382
+ React.createElement("span", { style: { verticalAlign: 'middle' } }, initLabel))) : (initLabel), size: size, required: required, value: value || '', focused: focused, disabled: disabled, fullWidth: true, error: error, slotProps: {
8383
+ inputLabel: labelShrink ? { shrink: labelShrink } : undefined,
8384
+ htmlInput: { readOnly: true },
8385
+ input: {
8386
+ endAdornment: (React.createElement(InputAdornment, { position: 'end' },
8387
+ React.createElement("div", { className: 'input-file-wrap' },
8388
+ !hideUpload && (React.createElement(React.Fragment, null,
8389
+ React.createElement(StyledPdgButton, { variant: 'text', tabIndex: uploadTabIndex == null ? -1 : uploadTabIndex, className: classNames('input-file-btn form-file-btn', !!hideUploadLabel && 'hidden-label'), color: error ? 'error' : color, size: size, disabled: readOnly || disabled, ref: fileUploadBtnRef },
8390
+ React.createElement("label", { htmlFor: id },
8391
+ React.createElement(PdgIcon, { size: size }, "upload"),
8392
+ !hideUploadLabel && (uploadLabel || '파일 업로드'))),
8393
+ React.createElement("input", { type: 'file', accept: accept, id: id, value: FILE_VALUE, className: 'input-file', onChange: handleFileChange }))),
8394
+ !hideLink && (React.createElement(StyledPdgButton, { variant: 'text', tabIndex: linkTabIndex == null ? -1 : linkTabIndex, className: classNames('link-btn form-file-btn', !!hideLinkLabel && 'hidden-label'), color: error ? 'error' : color, startIcon: 'link', size: size, disabled: readOnly || disabled, ref: linkBtnRef, onClick: handleLinkClick }, !hideLinkLabel && (linkLabel || '링크'))),
8395
+ !hideRemove && notEmpty(value) && (React.createElement(StyledPdgButton, { variant: 'text', tabIndex: removeTabIndex == null ? -1 : removeTabIndex, className: classNames('remove-btn form-file-btn', !!hideRemoveLabel && 'hidden-label'), color: error ? 'error' : color, startIcon: 'close', size: size, disabled: readOnly || disabled, onClick: handleRemoveClick }, !hideRemoveLabel && (removeLabel || '삭제')))))),
8396
+ },
8440
8397
  }, placeholder: '\uD30C\uC77C\uC744 \uC120\uD0DD\uD558\uC138\uC694' }))),
8441
8398
  !!hideUrl && (React.createElement("div", { className: 'input-file-wrap' },
8442
8399
  !hideUpload && (React.createElement(React.Fragment, null,
@@ -8450,8 +8407,7 @@ var FormFile = React.forwardRef(function (_a, ref) {
8450
8407
  React.createElement(PrivateAlertDialog, __assign({}, alertDialogProps, { onClose: function () { return setAlertDialogProps({ open: false }); } })),
8451
8408
  React.createElement(LinkDialog, { open: isOpenLinkDialog, onConfirm: handleLinkDialogConfirm, onClose: function () { return setIsOpenLinkDialog(false); } })) }));
8452
8409
  });
8453
- FormFile.displayName = 'FormFile';var css_248z = ".FormImageFile .preview-img {\n max-width: 100%;\n}\n.FormImageFile:not(.hide-file-name):not(.variant-standard) .preview-img {\n padding-right: 14px;\n}";
8454
- styleInject(css_248z);var getFinalValue$4 = function (value) { return value || ''; };var FormImageFile = React.forwardRef(function (_a, ref) {
8410
+ FormFile.displayName = 'FormFile';var getFinalValue$4 = function (value) { return value || ''; };var FormImageFile = React.forwardRef(function (_a, ref) {
8455
8411
  var className = _a.className, imageSize = _a.imageSize, preview = _a.preview, previewMaxHeight = _a.previewMaxHeight, _b = _a.accept, accept = _b === void 0 ? '.jpg,.jpeg,.png' : _b, initValue = _a.value, onChange = _a.onChange, onFile = _a.onFile, onLink = _a.onLink, props = __rest(_a, ["className", "imageSize", "preview", "previewMaxHeight", "accept", "value", "onChange", "onFile", "onLink"]);
8456
8412
  var _c = useState({
8457
8413
  open: false,
@@ -8632,11 +8588,11 @@ var FormMonthPicker = React.forwardRef(function (_a, ref) {
8632
8588
  * Ref
8633
8589
  * ******************************************************************************************************************/
8634
8590
  var ratingRef = useRef(null);
8635
- var inputRef = useRef();
8636
- var closeTimeoutRef = useRef();
8637
- var mouseDownTimeRef = useRef();
8591
+ var inputRef = useRef(undefined);
8592
+ var closeTimeoutRef = useRef(undefined);
8593
+ var mouseDownTimeRef = useRef(undefined);
8638
8594
  var inputDatePickerErrorRef = useRef(null);
8639
- var openValueRef = useRef();
8595
+ var openValueRef = useRef(undefined);
8640
8596
  /********************************************************************************************************************
8641
8597
  * State
8642
8598
  * ******************************************************************************************************************/
@@ -8978,11 +8934,11 @@ var FormMonthRangePicker = React.forwardRef(function (_a, ref) {
8978
8934
  /********************************************************************************************************************
8979
8935
  * Ref
8980
8936
  * ******************************************************************************************************************/
8981
- var startInputRef = useRef();
8982
- var endInputRef = useRef();
8937
+ var startInputRef = useRef(undefined);
8938
+ var endInputRef = useRef(undefined);
8983
8939
  var startInputDatePickerErrorRef = useRef(null);
8984
8940
  var endInputDatePickerErrorRef = useRef(null);
8985
- var openValueRef = useRef();
8941
+ var openValueRef = useRef(undefined);
8986
8942
  /********************************************************************************************************************
8987
8943
  * State
8988
8944
  * ******************************************************************************************************************/
@@ -9366,10 +9322,10 @@ var FormMonthRangePicker = React.forwardRef(function (_a, ref) {
9366
9322
  }, title: React.createElement("div", { style: { display: 'flex' } },
9367
9323
  React.createElement(PrivateMonthRangePicker, { minValue: minValue, maxValue: maxValue, disablePast: disablePast, disableFuture: disableFuture, value: value, onChange: handleContainerChange })) },
9368
9324
  React.createElement(Grid, { container: true, alignItems: 'center' },
9369
- React.createElement(Grid, { item: true, flex: 1 },
9325
+ React.createElement(Grid, { flex: 1 },
9370
9326
  React.createElement(PrivateInputDatePicker, __assign({}, inputDatePickerProps, { style: inputStyle, sx: sx, value: valueDate[0], label: fromLabel, labelIcon: fromLabelIcon, error: error || fromError, focused: focused || open, required: required, readOnly: readOnly, readOnlyInput: readOnlyInput, icon: icon, startAdornment: startAdornment, endAdornment: endAdornment, inputRef: startInputRef, onChange: function (v) { return handleInputDatePickerChange('start', v); }, onFocus: function () { return handleInputDatePickerFocus('start'); }, onError: function (reason) { return (startInputDatePickerErrorRef.current = reason); }, shouldDisableYear: handleInputDatePickerShouldDisableYear }))),
9371
- React.createElement(Grid, { item: true, sx: { px: 1 } }, "~"),
9372
- React.createElement(Grid, { item: true, flex: 1 },
9327
+ React.createElement(Grid, { sx: { px: 1 } }, "~"),
9328
+ React.createElement(Grid, { flex: 1 },
9373
9329
  React.createElement(PrivateInputDatePicker, __assign({}, inputDatePickerProps, { style: inputStyle, sx: sx, value: valueDate[1], label: toLabel, labelIcon: toLabelIcon, error: error || toError, focused: focused || open, required: required, readOnly: readOnly, readOnlyInput: readOnlyInput, icon: icon, startAdornment: startAdornment, endAdornment: endAdornment, inputRef: endInputRef, onChange: function (v) { return handleInputDatePickerChange('end', v); }, onFocus: function () { return handleInputDatePickerFocus('end'); }, onError: function (reason) { return (endInputDatePickerErrorRef.current = reason); }, shouldDisableYear: handleInputDatePickerShouldDisableYear }))))),
9374
9330
  !formColWithHelperText &&
9375
9331
  (helperText ||
@@ -9413,11 +9369,11 @@ var FormYearPicker = React.forwardRef(function (_a, ref) {
9413
9369
  * Ref
9414
9370
  * ******************************************************************************************************************/
9415
9371
  var ratingRef = useRef(null);
9416
- var inputRef = useRef();
9417
- var closeTimeoutRef = useRef();
9418
- var mouseDownTimeRef = useRef();
9372
+ var inputRef = useRef(undefined);
9373
+ var closeTimeoutRef = useRef(undefined);
9374
+ var mouseDownTimeRef = useRef(undefined);
9419
9375
  var inputDatePickerErrorRef = useRef(null);
9420
- var openValueRef = useRef();
9376
+ var openValueRef = useRef(undefined);
9421
9377
  /********************************************************************************************************************
9422
9378
  * State
9423
9379
  * ******************************************************************************************************************/
@@ -9692,11 +9648,11 @@ var getFinalValue = function (value) {
9692
9648
  /********************************************************************************************************************
9693
9649
  * Ref
9694
9650
  * ******************************************************************************************************************/
9695
- var startInputRef = useRef();
9696
- var endInputRef = useRef();
9651
+ var startInputRef = useRef(undefined);
9652
+ var endInputRef = useRef(undefined);
9697
9653
  var startInputDatePickerErrorRef = useRef(null);
9698
9654
  var endInputDatePickerErrorRef = useRef(null);
9699
- var openValueRef = useRef();
9655
+ var openValueRef = useRef(undefined);
9700
9656
  /********************************************************************************************************************
9701
9657
  * State
9702
9658
  * ******************************************************************************************************************/
@@ -10007,10 +9963,10 @@ var getFinalValue = function (value) {
10007
9963
  }, title: React.createElement("div", { style: { display: 'flex' } },
10008
9964
  React.createElement(PrivateYearRangePicker, { selectType: selectType, minYear: minYear, maxYear: maxYear, disablePast: disablePast, disableFuture: disableFuture, value: value, onChange: handleContainerChange })) },
10009
9965
  React.createElement(Grid, { container: true, alignItems: 'center' },
10010
- React.createElement(Grid, { item: true, flex: 1 },
9966
+ React.createElement(Grid, { flex: 1 },
10011
9967
  React.createElement(PrivateInputDatePicker, __assign({}, privateInputDatePickerProps, { inputRef: startInputRef, value: valueDate[0], label: fromLabel, labelIcon: fromLabelIcon, error: error || fromError, focused: focused || (open && selectType === 'start'), onChange: function (v) { return handleInputDatePickerChange('start', v); }, onFocus: function () { return handleInputDatePickerFocus('start'); }, onError: function (reason) { return (startInputDatePickerErrorRef.current = reason); }, shouldDisableYear: handleInputDatePickerShouldDisableYear }))),
10012
- React.createElement(Grid, { item: true, sx: { px: 1 } }, "~"),
10013
- React.createElement(Grid, { item: true, flex: 1 },
9968
+ React.createElement(Grid, { sx: { px: 1 } }, "~"),
9969
+ React.createElement(Grid, { flex: 1 },
10014
9970
  React.createElement(PrivateInputDatePicker, __assign({}, privateInputDatePickerProps, { inputRef: endInputRef, value: valueDate[1], label: toLabel, labelIcon: toLabelIcon, error: error || toError, focused: focused || (open && selectType === 'end'), onChange: function (v) { return handleInputDatePickerChange('end', v); }, onFocus: function () { return handleInputDatePickerFocus('end'); }, onError: function (reason) { return (endInputDatePickerErrorRef.current = reason); }, shouldDisableYear: handleInputDatePickerShouldDisableYear }))))),
10015
9971
  !formColWithHelperText &&
10016
9972
  (helperText ||
@@ -10049,7 +10005,7 @@ FormYearRangePicker.displayName = 'FormYearRangePicker';var FormSwitch = React.f
10049
10005
  /********************************************************************************************************************
10050
10006
  * Ref
10051
10007
  * ******************************************************************************************************************/
10052
- var inputRef = useRef();
10008
+ var inputRef = useRef(undefined);
10053
10009
  /********************************************************************************************************************
10054
10010
  * State
10055
10011
  * ******************************************************************************************************************/
@@ -10203,7 +10159,7 @@ FormSwitch.displayName = 'FormSwitch';var SearchGroupRow = function (_a) {
10203
10159
  _b = _a.color,
10204
10160
  //----------------------------------------------------------------------------------------------------------------
10205
10161
  color = _b === void 0 ? 'primary' : _b, spacing = _a.spacing, focused = _a.focused, labelShrink = _a.labelShrink, autoSubmit = _a.autoSubmit, otherProps = __rest(_a, ["children", "className", "style", "sx", "color", "spacing", "focused", "labelShrink", "autoSubmit"]);
10206
- var formRef = useRef();
10162
+ var formRef = useRef(undefined);
10207
10163
  /********************************************************************************************************************
10208
10164
  * Effect
10209
10165
  * ******************************************************************************************************************/
@@ -10296,7 +10252,7 @@ var templateObject_1;var isReactFragment = function (child) {
10296
10252
  try {
10297
10253
  return child.type.toString() === React.Fragment.toString();
10298
10254
  }
10299
- catch (e) {
10255
+ catch (_a) {
10300
10256
  return false;
10301
10257
  }
10302
10258
  };
@@ -10310,27 +10266,27 @@ var removeReactFragment = function (el) {
10310
10266
  return removeReactFragment(child);
10311
10267
  }
10312
10268
  else {
10313
- return React.createElement(Grid, { item: true }, child);
10269
+ return React.createElement(Grid, null, child);
10314
10270
  }
10315
10271
  });
10316
10272
  }
10317
10273
  else {
10318
- return (React.createElement(StyledItem, { item: true, style: { display: el.type === FormHidden ? 'none' : undefined } }, el));
10274
+ return React.createElement(StyledItem, { style: { display: el.type === FormHidden ? 'none' : undefined } }, el);
10319
10275
  }
10320
10276
  }
10321
10277
  else {
10322
- return (React.createElement(StyledItem, { item: true, style: { display: el.type === FormHidden ? 'none' : undefined } }, el));
10278
+ return React.createElement(StyledItem, { style: { display: el.type === FormHidden ? 'none' : undefined } }, el);
10323
10279
  }
10324
10280
  }
10325
10281
  else {
10326
- return (React.createElement(StyledItem, { item: true, style: { display: el.type === FormHidden ? 'none' : undefined } }, el));
10282
+ return React.createElement(StyledItem, { style: { display: el.type === FormHidden ? 'none' : undefined } }, el);
10327
10283
  }
10328
10284
  };
10329
10285
  var SearchGroup = function (_a) {
10330
10286
  var children = _a.children, className = _a.className, style = _a.style, sx = _a.sx,
10331
10287
  //--------------------------------------------------------------------------------------------------------------------
10332
10288
  max = _a.max, align = _a.align, hidden = _a.hidden, _b = _a.spacing, spacing = _b === void 0 ? 1 : _b;
10333
- return (React.createElement(Grid, { item: true, className: classNames(className, 'SearchGroup'), style: { flex: max ? 1 : undefined, display: hidden ? 'none' : undefined } },
10289
+ return (React.createElement(Grid, { className: classNames(className, 'SearchGroup'), style: { flex: max ? 1 : undefined, display: hidden ? 'none' : undefined } },
10334
10290
  React.createElement(Grid, { container: true, wrap: 'wrap', spacing: spacing, justifyContent: align === undefined || align === 'left' ? 'start' : align === 'center' ? 'center' : 'end', alignItems: 'start', style: style, sx: sx }, React.Children.map(children, function (child) {
10335
10291
  if (React.isValidElement(child)) {
10336
10292
  return removeReactFragment(child);
@@ -10350,7 +10306,7 @@ var SearchButton$1 = React.memo(SearchButton);var SearchMenuButton = function (_
10350
10306
  /********************************************************************************************************************
10351
10307
  * ID
10352
10308
  * ******************************************************************************************************************/
10353
- var children = _a.children, className = _a.className, initSx = _a.sx, menuList = _a.menuList, placement = _a.placement, props = __rest(_a, ["children", "className", "sx", "menuList", "placement"]);
10309
+ var children = _a.children, className = _a.className, initSx = _a.sx, menuList = _a.menuList; _a.placement; var props = __rest(_a, ["children", "className", "sx", "menuList", "placement"]);
10354
10310
  var buttonId = useId();
10355
10311
  var menuId = useId();
10356
10312
  /********************************************************************************************************************
@@ -10373,56 +10329,10 @@ var SearchButton$1 = React.memo(SearchButton);var SearchMenuButton = function (_
10373
10329
  * Memo
10374
10330
  * ******************************************************************************************************************/
10375
10331
  var open = !!anchorEl;
10376
- var anchorOrigin = placement || 'bottom' === 'bottom'
10377
- ? { vertical: 'bottom', horizontal: 'center' }
10378
- : placement === 'bottom-left'
10379
- ? { vertical: 'bottom', horizontal: 'left' }
10380
- : placement === 'bottom-right'
10381
- ? { vertical: 'bottom', horizontal: 'right' }
10382
- : placement === 'top'
10383
- ? { vertical: 'top', horizontal: 'center' }
10384
- : placement === 'top-left'
10385
- ? { vertical: 'top', horizontal: 'left' }
10386
- : placement === 'top-right'
10387
- ? { vertical: 'top', horizontal: 'right' }
10388
- : placement === 'left'
10389
- ? { vertical: 'center', horizontal: 'left' }
10390
- : placement === 'left-top'
10391
- ? { vertical: 'top', horizontal: 'left' }
10392
- : placement === 'left-bottom'
10393
- ? { vertical: 'bottom', horizontal: 'left' }
10394
- : placement === 'right'
10395
- ? { vertical: 'center', horizontal: 'right' }
10396
- : placement === 'right-top'
10397
- ? { vertical: 'top', horizontal: 'right' }
10398
- : placement === 'right-bottom'
10399
- ? { vertical: 'bottom', horizontal: 'right' }
10400
- : { vertical: 'bottom', horizontal: 'center' };
10401
- var transformOrigin = placement || 'bottom' === 'bottom'
10402
- ? { vertical: 'top', horizontal: 'center' }
10403
- : placement === 'bottom-left'
10404
- ? { vertical: 'top', horizontal: 'left' }
10405
- : placement === 'bottom-right'
10406
- ? { vertical: 'top', horizontal: 'right' }
10407
- : placement === 'top'
10408
- ? { vertical: 'bottom', horizontal: 'center' }
10409
- : placement === 'top-left'
10410
- ? { vertical: 'bottom', horizontal: 'left' }
10411
- : placement === 'top-right'
10412
- ? { vertical: 'bottom', horizontal: 'right' }
10413
- : placement === 'left'
10414
- ? { vertical: 'center', horizontal: 'right' }
10415
- : placement === 'left-top'
10416
- ? { vertical: 'top', horizontal: 'right' }
10417
- : placement === 'left-bottom'
10418
- ? { vertical: 'bottom', horizontal: 'right' }
10419
- : placement === 'right'
10420
- ? { vertical: 'center', horizontal: 'left' }
10421
- : placement === 'right-top'
10422
- ? { vertical: 'top', horizontal: 'left' }
10423
- : placement === 'right-bottom'
10424
- ? { vertical: 'bottom', horizontal: 'left' }
10425
- : { vertical: 'top', horizontal: 'center' };
10332
+ var anchorOrigin = { vertical: 'bottom', horizontal: 'center' }
10333
+ ;
10334
+ var transformOrigin = { vertical: 'top', horizontal: 'center' }
10335
+ ;
10426
10336
  /********************************************************************************************************************
10427
10337
  * Render
10428
10338
  * ******************************************************************************************************************/