@owp/core 2.5.34 → 2.5.35
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/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js +68 -62
- package/dist/components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js.map +1 -1
- package/dist/components/OwpDialog/OwpAlertDialog.js +19 -18
- package/dist/components/OwpDialog/OwpAlertDialog.js.map +1 -1
- package/dist/components/OwpDialog/OwpDialog.js +34 -31
- package/dist/components/OwpDialog/OwpDialog.js.map +1 -1
- package/dist/components/OwpDialog/internal/useDialogOpenFocusCleanup.js +18 -0
- package/dist/components/OwpDialog/internal/useDialogOpenFocusCleanup.js.map +1 -0
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js +25 -15
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
- package/dist/components/OwpLayout/OwpLayout.js.map +1 -1
- package/dist/components/OwpNumberField/OwpNumberField.js +45 -24
- package/dist/components/OwpNumberField/OwpNumberField.js.map +1 -1
- package/dist/components/OwpScrollbars/OwpScrollbars.js +79 -52
- package/dist/components/OwpScrollbars/OwpScrollbars.js.map +1 -1
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +157 -157
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
- package/dist/components/OwpTable/OwpDataTable.js +377 -342
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpTable.js +20 -19
- package/dist/components/OwpTable/OwpTable.js.map +1 -1
- package/dist/components/OwpTable/internal/OwpTableBase.js +81 -78
- package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -1
- package/dist/components/OwpTable/internal/treeGridTableStyle.js +88 -31
- package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +304 -262
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +282 -277
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/configs/layoutConfig.js +0 -6
- package/dist/configs/layoutConfig.js.map +1 -1
- package/dist/constants/treeGrid.js +59 -46
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +18 -18
- package/dist/constants.js.map +1 -1
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +15 -15
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -1
- package/dist/hooks/internal/useNavbar.js +4 -4
- package/dist/hooks/useConfirm.js +1 -1
- package/dist/hooks/useConfirm.js.map +1 -1
- package/dist/hooks/useOwpDialogs.js +19 -0
- package/dist/hooks/useOwpDialogs.js.map +1 -0
- package/dist/hooks.js +34 -32
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +69 -71
- package/dist/index.js.map +1 -1
- package/dist/layout/Layout.js +23 -27
- package/dist/layout/Layout.js.map +1 -1
- package/dist/layout/components/layouts/FooterLayout.js.map +1 -1
- package/dist/layout/components/menus/PasswordChangeMenu.js +25 -25
- package/dist/layout/components/menus/PasswordChangeMenu.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js.map +1 -1
- package/dist/layout/components/toggles/NavigationShortcutsToggle.js +1 -1
- package/dist/layout/components/toggles/NavigationShortcutsToggle.js.map +1 -1
- package/dist/layout/components/toggles/ThemePreviewToggle.js +14 -14
- package/dist/layout/components/toggles/ThemePreviewToggle.js.map +1 -1
- package/dist/node_modules/.pnpm/inko@1.1.1/node_modules/inko/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.d.ts +5 -3
- package/dist/types/components/OwpDialog/OwpAlertDialog.d.ts +1 -1
- package/dist/types/components/OwpDialog/internal/useDialogOpenFocusCleanup.d.ts +5 -0
- package/dist/types/components/OwpErrorBoundary/OwpErrorBoundary.d.ts +8 -14
- package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +18 -4
- package/dist/types/components/OwpScrollbars/OwpScrollbars.d.ts +28 -14
- package/dist/types/components/OwpTable/internal/OwpTableBase.d.ts +3 -1
- package/dist/types/components/OwpTable/internal/treeGridTableStyle.d.ts +61 -2
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +2 -1
- package/dist/types/configs/layoutConfig.d.ts +0 -6
- package/dist/types/constants/index.d.ts +0 -1
- package/dist/types/constants/treeGrid.d.ts +9 -0
- package/dist/types/features/themePreview/dialogs/ThemePreviewDialog.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useOwpDialogs.d.ts +5 -0
- package/dist/types/hooks/useOwpSettings.d.ts +0 -6
- package/dist/types/index.d.ts +0 -1
- package/dist/types/store/atoms/owpSettingsAtoms.d.ts +0 -6
- package/dist/types/types/OwpDialogTypes.d.ts +1 -0
- package/dist/types/types/OwpRouteTypes.d.ts +25 -0
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/internal/blurActiveElement.d.ts +4 -0
- package/dist/utils/internal/blurActiveElement.js +12 -0
- package/dist/utils/internal/blurActiveElement.js.map +1 -0
- package/dist/utils/{navigationUtils.js → internal/navigationUtils.js} +3 -3
- package/dist/utils/internal/navigationUtils.js.map +1 -0
- package/dist/utils.js +23 -25
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/OwpEventEmitter/OwpEventEmitter.js +0 -51
- package/dist/components/OwpEventEmitter/OwpEventEmitter.js.map +0 -1
- package/dist/layout/components/layouts/LeftSideLayout.js +0 -13
- package/dist/layout/components/layouts/LeftSideLayout.js.map +0 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/array/some.js +0 -66
- package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/array/some.js.map +0 -1
- package/dist/node_modules/.pnpm/perfect-scrollbar@1.5.6/node_modules/perfect-scrollbar/css/perfect-scrollbar.css +0 -1
- package/dist/types/components/OwpEventEmitter/OwpEventEmitter.d.ts +0 -27
- package/dist/types/components/OwpEventEmitter/index.d.ts +0 -1
- package/dist/types/layout/components/layouts/LeftSideLayout.d.ts +0 -6
- package/dist/types/utils/common/OwpUtils.d.ts +0 -119
- package/dist/types/utils/common/index.d.ts +0 -1
- package/dist/utils/common/OwpUtils.js +0 -196
- package/dist/utils/common/OwpUtils.js.map +0 -1
- package/dist/utils/navigationUtils.js.map +0 -1
- /package/dist/types/utils/{navigationUtils.d.ts → internal/navigationUtils.d.ts} +0 -0
package/dist/hooks.js
CHANGED
|
@@ -1,48 +1,50 @@
|
|
|
1
1
|
import { useFilteredCommonCodeList as r, useGetCommonCodeList as o, useSetCommonCodeList as s } from "./hooks/useCommonCodeList.js";
|
|
2
|
-
import { useConfirm as
|
|
2
|
+
import { useConfirm as m } from "./hooks/useConfirm.js";
|
|
3
3
|
import { useGetLogoSrc as i, useSetLogoSrc as a } from "./hooks/useLogoSrc.js";
|
|
4
|
-
import { useMinimumVisibleState as
|
|
4
|
+
import { useMinimumVisibleState as f } from "./hooks/useMinimumVisibleState.js";
|
|
5
5
|
import { useGetCurrentUser as C, useSetCurrentUser as x } from "./hooks/useCurrentUser.js";
|
|
6
|
-
import { useGetCurrentUserId as
|
|
7
|
-
import { useEnsureCurrentUserSeq as
|
|
6
|
+
import { useGetCurrentUserId as G, useSetCurrentUserId as d } from "./hooks/useCurrentUserId.js";
|
|
7
|
+
import { useEnsureCurrentUserSeq as L, useGetCurrentUserSeq as T, useSetCurrentUserSeq as E } from "./hooks/useCurrentUserSeq.js";
|
|
8
8
|
import { useFormDataUploadMutation as c } from "./hooks/useFormDataUploadMutation.js";
|
|
9
9
|
import { useInitApp as b } from "./hooks/useInitApp.js";
|
|
10
|
-
import { useGetNavigationList as
|
|
11
|
-
import { useChangeOwpTheme as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
10
|
+
import { useGetNavigationList as w, useSetNavigationList as D } from "./hooks/useNavigation.js";
|
|
11
|
+
import { useChangeOwpTheme as q, useGetCurrentLayoutConfig as F, useGetCurrentSettings as I, useGetCustomScrollbarsEnabled as M, useGetDefaultSettings as N, useGetFooterTheme as k, useGetMainTheme as P, useGetNavbarTheme as y, useGetOwpSettings as A, useGetToolbarTheme as R, useResetSettings as V, useSetDefaultSettings as j, useSetSettings as z } from "./hooks/useOwpSettings.js";
|
|
12
|
+
import { useOwpDialogs as H } from "./hooks/useOwpDialogs.js";
|
|
13
|
+
import { useOwpTranslation as K } from "./hooks/useOwpTranslation.js";
|
|
14
|
+
import { useGetPageLockLoading as W, usePageLockLoading as X } from "./hooks/usePageLockLoading.js";
|
|
15
|
+
import { getEnv as Z, setEnv as _, useStorage as $ } from "./hooks/useStorage.js";
|
|
16
|
+
import { useTreeGridCommonCodeEnums as te } from "./hooks/useTreeGridCommonCodeEnums.js";
|
|
17
|
+
import { useTreeGridEnums as oe } from "./hooks/useTreeGridEnums.js";
|
|
18
|
+
import { useTreeGridExcelExport as ue } from "./hooks/useTreeGridExcelExport.js";
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
Z as getEnv,
|
|
21
|
+
_ as setEnv,
|
|
22
|
+
q as useChangeOwpTheme,
|
|
23
|
+
m as useConfirm,
|
|
24
|
+
L as useEnsureCurrentUserSeq,
|
|
24
25
|
r as useFilteredCommonCodeList,
|
|
25
26
|
c as useFormDataUploadMutation,
|
|
26
27
|
o as useGetCommonCodeList,
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
F as useGetCurrentLayoutConfig,
|
|
29
|
+
I as useGetCurrentSettings,
|
|
29
30
|
C as useGetCurrentUser,
|
|
30
|
-
|
|
31
|
+
G as useGetCurrentUserId,
|
|
31
32
|
T as useGetCurrentUserSeq,
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
M as useGetCustomScrollbarsEnabled,
|
|
34
|
+
N as useGetDefaultSettings,
|
|
34
35
|
k as useGetFooterTheme,
|
|
35
36
|
i as useGetLogoSrc,
|
|
36
37
|
P as useGetMainTheme,
|
|
37
38
|
y as useGetNavbarTheme,
|
|
38
|
-
|
|
39
|
+
w as useGetNavigationList,
|
|
39
40
|
A as useGetOwpSettings,
|
|
40
|
-
|
|
41
|
+
W as useGetPageLockLoading,
|
|
41
42
|
R as useGetToolbarTheme,
|
|
42
43
|
b as useInitApp,
|
|
43
|
-
|
|
44
|
-
H as
|
|
45
|
-
|
|
44
|
+
f as useMinimumVisibleState,
|
|
45
|
+
H as useOwpDialogs,
|
|
46
|
+
K as useOwpTranslation,
|
|
47
|
+
X as usePageLockLoading,
|
|
46
48
|
V as useResetSettings,
|
|
47
49
|
s as useSetCommonCodeList,
|
|
48
50
|
x as useSetCurrentUser,
|
|
@@ -50,11 +52,11 @@ export {
|
|
|
50
52
|
E as useSetCurrentUserSeq,
|
|
51
53
|
j as useSetDefaultSettings,
|
|
52
54
|
a as useSetLogoSrc,
|
|
53
|
-
|
|
55
|
+
D as useSetNavigationList,
|
|
54
56
|
z as useSetSettings,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
$ as useStorage,
|
|
58
|
+
te as useTreeGridCommonCodeEnums,
|
|
59
|
+
oe as useTreeGridEnums,
|
|
60
|
+
ue as useTreeGridExcelExport
|
|
59
61
|
};
|
|
60
62
|
//# sourceMappingURL=hooks.js.map
|
package/dist/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -7,8 +7,8 @@ import { OwpExportDataToExcelButton as P } from "./components/OwpExportExcelButt
|
|
|
7
7
|
import { OwpFilePickerButton as D } from "./components/OwpFilePickerButton/OwpFilePickerButton.js";
|
|
8
8
|
import { OwpMoreActionsButton as k } from "./components/OwpMoreActionsButton/OwpMoreActionsButton.js";
|
|
9
9
|
import { OwpDatePicker as B } from "./components/OwpPicker/OwpDatePicker.js";
|
|
10
|
-
import { OwpDateRangePicker as
|
|
11
|
-
import { OwpTimePicker as
|
|
10
|
+
import { OwpDateRangePicker as F } from "./components/OwpPicker/OwpDateRangePicker.js";
|
|
11
|
+
import { OwpTimePicker as E } from "./components/OwpPicker/OwpTimePicker.js";
|
|
12
12
|
import { OwpWeekDatePicker as v } from "./components/OwpPicker/OwpWeekDatePicker.js";
|
|
13
13
|
import { OwpYearRangePicker as Q } from "./components/OwpPicker/OwpYearRangePicker.js";
|
|
14
14
|
import { OwpDataTable as H } from "./components/OwpTable/OwpDataTable.js";
|
|
@@ -19,93 +19,91 @@ import { OwpTreeGridToolbar as z } from "./components/OwpTreeGrid/OwpTreeGridToo
|
|
|
19
19
|
import { OwpZoomImageSlider as K } from "./components/OwpZoomImageSlider/OwpZoomImageSlider.js";
|
|
20
20
|
import { default as V } from "./components/OwpPageBreadcrumb/OwpPageBreadcrumb.js";
|
|
21
21
|
import { OwpErrorBoundary as _ } from "./components/OwpErrorBoundary/OwpErrorBoundary.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import { OwpYesNoSelector as io } from "./components/OwpYesNoSelector/OwpYesNoSelector.js";
|
|
22
|
+
import { OwpLanguageSwitcherSelect as ee } from "./components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.js";
|
|
23
|
+
import { OwpAlertDialog as re } from "./components/OwpDialog/OwpAlertDialog.js";
|
|
24
|
+
import { OwpDialog as pe } from "./components/OwpDialog/OwpDialog.js";
|
|
25
|
+
import { CommonCodeSelector as xe, OwpCommonCodeSelector as ae } from "./components/OwpCommonCode/OwpCommonCodeSelector.js";
|
|
26
|
+
import { CommonCodeQuerySelector as Oe, OwpCommonCodeQuerySelector as we } from "./components/OwpCommonCode/OwpCommonCodeQuerySelector.js";
|
|
27
|
+
import { CommonCodeRadioGroup as le, OwpCommonCodeRadioGroup as ne } from "./components/OwpCommonCode/OwpCommonCodeRadioGroup.js";
|
|
28
|
+
import { OwpErrorStatusPage as ue } from "./components/OwpErrorStatusPage/OwpErrorStatusPage.js";
|
|
29
|
+
import { OwpFieldHelperText as ce } from "./components/OwpFieldHelperText/OwpFieldHelperText.js";
|
|
30
|
+
import { OwpLayout as Se } from "./components/OwpLayout/OwpLayout.js";
|
|
31
|
+
import { OwpLoading as Ce } from "./components/OwpLoading/OwpLoading.js";
|
|
32
|
+
import { OwpNumberField as he } from "./components/OwpNumberField/OwpNumberField.js";
|
|
33
|
+
import { OwpOptionSelector as be } from "./components/OwpOptionSelector/OwpOptionSelector.js";
|
|
34
|
+
import { OwpPageCarded as ye } from "./components/OwpPageCarded/OwpPageCarded.js";
|
|
35
|
+
import { OwpPageContent as Le } from "./components/OwpPageContent/OwpPageContent.js";
|
|
36
|
+
import { OwpPageLockLoading as Ge } from "./components/OwpPageLockLoading/OwpPageLockLoading.js";
|
|
37
|
+
import { OwpPageTitle as Re } from "./components/OwpPageTitle/OwpPageTitle.js";
|
|
38
|
+
import { OwpQuerySelector as Ie } from "./components/OwpQuerySelector/OwpQuerySelector.js";
|
|
39
|
+
import { OwpScrollbars as Ae } from "./components/OwpScrollbars/OwpScrollbars.js";
|
|
40
|
+
import { OwpSearchFilter as Me } from "./components/OwpSearchFilter/OwpSearchFilter.js";
|
|
41
|
+
import { OwpSection as We } from "./components/OwpSection/OwpSection.js";
|
|
42
|
+
import { OwpStyleProvider as qe } from "./components/OwpStyleProvider/OwpStyleProvider.js";
|
|
43
|
+
import { OwpSuspense as je } from "./components/OwpSuspense/OwpSuspense.js";
|
|
44
|
+
import { OwpSvgIcon as Je } from "./components/OwpSvgIcon/OwpSvgIcon.js";
|
|
45
|
+
import { OwpRequiredHelperText as Ue } from "./components/OwpRequiredHelperText/OwpRequiredHelperText.js";
|
|
46
|
+
import { OwpTab as Xe } from "./components/OwpTabs/OwpTab.js";
|
|
47
|
+
import { OwpTabs as $e } from "./components/OwpTabs/OwpTabs.js";
|
|
48
|
+
import { OwpTreeGridExportExcelButton as oo } from "./components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js";
|
|
49
|
+
import { OwpTreeGridResetChangesButton as to } from "./components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js";
|
|
50
|
+
import { OwpTreeGrid as mo } from "./components/OwpTreeGrid/OwpTreeGrid.js";
|
|
51
|
+
import { TreeGrid as ao } from "./components/OwpTreeGrid/TreeGrid.js";
|
|
52
|
+
import { OwpYesNoSelector as Oo } from "./components/OwpYesNoSelector/OwpYesNoSelector.js";
|
|
54
53
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
Oe as CommonCodeQuerySelector,
|
|
55
|
+
le as CommonCodeRadioGroup,
|
|
56
|
+
xe as CommonCodeSelector,
|
|
58
57
|
r as DialogsProvider,
|
|
59
|
-
|
|
58
|
+
re as OwpAlertDialog,
|
|
60
59
|
s as OwpAutoLogoutDialog,
|
|
61
60
|
T as OwpBarcodeInputField,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
we as OwpCommonCodeQuerySelector,
|
|
62
|
+
ne as OwpCommonCodeRadioGroup,
|
|
63
|
+
ae as OwpCommonCodeSelector,
|
|
65
64
|
H as OwpDataTable,
|
|
66
65
|
B as OwpDatePicker,
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
F as OwpDateRangePicker,
|
|
67
|
+
pe as OwpDialog,
|
|
69
68
|
_ as OwpErrorBoundary,
|
|
70
|
-
|
|
71
|
-
ee as OwpEventEmitter,
|
|
69
|
+
ue as OwpErrorStatusPage,
|
|
72
70
|
P as OwpExportDataToExcelButton,
|
|
73
|
-
|
|
71
|
+
ce as OwpFieldHelperText,
|
|
74
72
|
Y as OwpFieldTable,
|
|
75
73
|
D as OwpFilePickerButton,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
ee as OwpLanguageSwitcherSelect,
|
|
75
|
+
Se as OwpLayout,
|
|
76
|
+
Ce as OwpLoading,
|
|
79
77
|
k as OwpMoreActionsButton,
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
he as OwpNumberField,
|
|
79
|
+
be as OwpOptionSelector,
|
|
82
80
|
V as OwpPageBreadcrumb,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
81
|
+
ye as OwpPageCarded,
|
|
82
|
+
Le as OwpPageContent,
|
|
83
|
+
Ge as OwpPageLockLoading,
|
|
84
|
+
Re as OwpPageTitle,
|
|
85
|
+
Ie as OwpQuerySelector,
|
|
86
|
+
Ue as OwpRequiredHelperText,
|
|
87
|
+
Ae as OwpScrollbars,
|
|
88
|
+
Me as OwpSearchFilter,
|
|
89
|
+
We as OwpSection,
|
|
90
|
+
qe as OwpStyleProvider,
|
|
91
|
+
je as OwpSuspense,
|
|
92
|
+
Je as OwpSvgIcon,
|
|
93
|
+
Xe as OwpTab,
|
|
96
94
|
N as OwpTable,
|
|
97
|
-
|
|
95
|
+
$e as OwpTabs,
|
|
98
96
|
Z as OwpTextMaskField,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
E as OwpTimePicker,
|
|
98
|
+
mo as OwpTreeGrid,
|
|
99
|
+
oo as OwpTreeGridExportExcelButton,
|
|
100
|
+
to as OwpTreeGridResetChangesButton,
|
|
103
101
|
z as OwpTreeGridToolbar,
|
|
104
102
|
v as OwpWeekDatePicker,
|
|
105
103
|
Q as OwpYearRangePicker,
|
|
106
|
-
|
|
104
|
+
Oo as OwpYesNoSelector,
|
|
107
105
|
K as OwpZoomImageSlider,
|
|
108
|
-
|
|
106
|
+
ao as TreeGrid,
|
|
109
107
|
x as createInitialOwpSettings,
|
|
110
108
|
a as defaultSettings,
|
|
111
109
|
f as defaultSnackbarTheme,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/layout/Layout.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
var u = Object.defineProperty;
|
|
2
2
|
var r = (i, a) => u(i, "name", { value: a, configurable: !0 });
|
|
3
|
-
import {
|
|
3
|
+
import { jsx as t, jsxs as e } from "../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
4
|
import { useNavigationActiveRouteRemountKey as p } from "../hooks/internal/useNavigationActiveRouteRemount.js";
|
|
5
5
|
import { useGetCurrentLayoutConfig as d } from "../hooks/useOwpSettings.js";
|
|
6
6
|
import { LinearProgress as x } from "@mui/material";
|
|
7
|
-
import { styled as
|
|
8
|
-
import { useIsFetching as
|
|
7
|
+
import { styled as h } from "@mui/material/styles";
|
|
8
|
+
import { useIsFetching as y, useIsMutating as g } from "@tanstack/react-query";
|
|
9
9
|
import { memo as v } from "react";
|
|
10
10
|
import { Outlet as b } from "react-router-dom";
|
|
11
11
|
import L from "./components/layouts/FooterLayout.js";
|
|
12
|
-
import w from "./components/layouts/LeftSideLayout.js";
|
|
13
12
|
import n from "./components/layouts/NavbarWrapperLayout.js";
|
|
14
|
-
import
|
|
15
|
-
import { OwpSuspense as
|
|
16
|
-
const
|
|
13
|
+
import w from "./components/toolbar/ToolbarLayout.js";
|
|
14
|
+
import { OwpSuspense as N } from "../components/OwpSuspense/OwpSuspense.js";
|
|
15
|
+
const R = h("div")(({ config: i }) => ({
|
|
17
16
|
...i.mode === "boxed" && {
|
|
18
17
|
clipPath: "inset(0)",
|
|
19
18
|
maxWidth: i.containerWidth,
|
|
@@ -30,28 +29,25 @@ const W = y("div")(({ config: i }) => ({
|
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
}));
|
|
33
|
-
function
|
|
34
|
-
const { children: a, layoutConfig: l } = i,
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
o.
|
|
37
|
-
/* @__PURE__ */ e("
|
|
38
|
-
o.
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/* @__PURE__ */ t(R, { children: /* @__PURE__ */ t(b, {}, s) }),
|
|
44
|
-
a
|
|
45
|
-
] }),
|
|
46
|
-
o.footer.display && /* @__PURE__ */ t(L, { className: o.footer.style === "fixed" ? "sticky bottom-0" : "" })
|
|
32
|
+
function W(i) {
|
|
33
|
+
const { children: a, layoutConfig: l } = i, s = d(), m = p(), o = l ?? s, c = y(), f = g();
|
|
34
|
+
return /* @__PURE__ */ t(R, { id: "owp-layout", config: o, className: "flex w-full", children: /* @__PURE__ */ e("div", { className: "flex min-w-0 flex-auto", children: [
|
|
35
|
+
o.navbar.display && o.navbar.position === "left" && /* @__PURE__ */ t(n, {}),
|
|
36
|
+
/* @__PURE__ */ e("main", { id: "owp-main", className: "relative z-10 flex min-h-full min-w-0 flex-auto flex-col", children: [
|
|
37
|
+
o.toolbar.display && /* @__PURE__ */ t(w, { className: o.toolbar.style === "fixed" ? "sticky top-0" : "" }),
|
|
38
|
+
!!(c || f) && /* @__PURE__ */ t("div", { className: "fixed top-0 left-0 z-30 w-full", children: /* @__PURE__ */ t(x, { color: "secondary" }) }),
|
|
39
|
+
/* @__PURE__ */ e("div", { className: "relative z-10 flex min-h-0 flex-auto flex-col", children: [
|
|
40
|
+
/* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(b, {}, m) }),
|
|
41
|
+
a
|
|
47
42
|
] }),
|
|
48
|
-
o.
|
|
49
|
-
] })
|
|
50
|
-
|
|
43
|
+
o.footer.display && /* @__PURE__ */ t(L, { className: o.footer.style === "fixed" ? "sticky bottom-0" : "" })
|
|
44
|
+
] }),
|
|
45
|
+
o.navbar.display && o.navbar.position === "right" && /* @__PURE__ */ t(n, {})
|
|
46
|
+
] }) });
|
|
51
47
|
}
|
|
52
|
-
r(
|
|
53
|
-
const
|
|
48
|
+
r(W, "Layout");
|
|
49
|
+
const G = v(W);
|
|
54
50
|
export {
|
|
55
|
-
|
|
51
|
+
G as default
|
|
56
52
|
};
|
|
57
53
|
//# sourceMappingURL=Layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.js","sources":["../../src/layout/Layout.tsx"],"sourcesContent":["import { LayoutConfigDefaultsType } from '@/configs/layoutConfig';\nimport { OwpSuspense } from '@/components/OwpSuspense';\nimport { useNavigationActiveRouteRemountKey } from '@/hooks/internal/useNavigationActiveRouteRemount';\nimport { useGetCurrentLayoutConfig } from '@/hooks/useOwpSettings';\nimport { LinearProgress } from '@mui/material';\nimport { styled } from '@mui/material/styles';\nimport { useIsFetching, useIsMutating } from '@tanstack/react-query';\nimport { memo, ReactNode } from 'react';\nimport { Outlet } from 'react-router-dom';\nimport FooterLayout from './components/layouts/FooterLayout';\nimport
|
|
1
|
+
{"version":3,"file":"Layout.js","sources":["../../src/layout/Layout.tsx"],"sourcesContent":["import { LayoutConfigDefaultsType } from '@/configs/layoutConfig';\nimport { OwpSuspense } from '@/components/OwpSuspense';\nimport { useNavigationActiveRouteRemountKey } from '@/hooks/internal/useNavigationActiveRouteRemount';\nimport { useGetCurrentLayoutConfig } from '@/hooks/useOwpSettings';\nimport { LinearProgress } from '@mui/material';\nimport { styled } from '@mui/material/styles';\nimport { useIsFetching, useIsMutating } from '@tanstack/react-query';\nimport { memo, ReactNode } from 'react';\nimport { Outlet } from 'react-router-dom';\nimport FooterLayout from './components/layouts/FooterLayout';\nimport NavbarWrapperLayout from './components/layouts/NavbarWrapperLayout';\nimport ToolbarLayout from './components/toolbar/ToolbarLayout';\n\nconst Root = styled('div')(({ config }: { config: LayoutConfigDefaultsType }) => ({\n ...(config.mode === 'boxed' && {\n clipPath: 'inset(0)',\n maxWidth: config.containerWidth,\n marginLeft: 'auto',\n marginRight: 'auto',\n boxShadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',\n }),\n ...(config.mode === 'container' && {\n '& .container': {\n maxWidth: config.containerWidth,\n width: '100%',\n marginLeft: 'auto',\n marginRight: 'auto',\n },\n }),\n}));\n\ntype LayoutProps = {\n layoutConfig?: LayoutConfigDefaultsType;\n children?: ReactNode;\n};\n\n/**\n * The layout.\n */\nfunction Layout(props: LayoutProps) {\n const { children, layoutConfig } = props;\n const currentLayoutConfig = useGetCurrentLayoutConfig() as LayoutConfigDefaultsType;\n const navigationActiveRouteRemountKey = useNavigationActiveRouteRemountKey();\n const config = layoutConfig ?? currentLayoutConfig;\n const isFetching = useIsFetching();\n const isMutating = useIsMutating();\n\n return (\n <Root id=\"owp-layout\" config={config} className=\"flex w-full\">\n <div className=\"flex min-w-0 flex-auto\">\n {config.navbar.display && config.navbar.position === 'left' && <NavbarWrapperLayout />}\n\n <main id=\"owp-main\" className=\"relative z-10 flex min-h-full min-w-0 flex-auto flex-col\">\n {config.toolbar.display && (\n <ToolbarLayout className={config.toolbar.style === 'fixed' ? 'sticky top-0' : ''} />\n )}\n {Boolean(isFetching || isMutating) && (\n <div className=\"fixed top-0 left-0 z-30 w-full\">\n <LinearProgress color=\"secondary\" />\n </div>\n )}\n\n <div className=\"relative z-10 flex min-h-0 flex-auto flex-col\">\n <OwpSuspense>\n <Outlet key={navigationActiveRouteRemountKey} />\n </OwpSuspense>\n {children}\n </div>\n\n {config.footer.display && (\n <FooterLayout className={config.footer.style === 'fixed' ? 'sticky bottom-0' : ''} />\n )}\n </main>\n\n {config.navbar.display && config.navbar.position === 'right' && <NavbarWrapperLayout />}\n </div>\n </Root>\n );\n}\n\nexport default memo(Layout);\n"],"names":["Root","styled","config","Layout","props","children","layoutConfig","currentLayoutConfig","useGetCurrentLayoutConfig","navigationActiveRouteRemountKey","useNavigationActiveRouteRemountKey","isFetching","useIsFetching","isMutating","useIsMutating","jsx","jsxs","NavbarWrapperLayout","ToolbarLayout","LinearProgress","OwpSuspense","Outlet","FooterLayout","__name","Layout$1","memo"],"mappings":";;;;;;;;;;;;;;AAaA,MAAMA,IAAOC,EAAO,KAAK,EAAE,CAAC,EAAE,QAAAC,SAAoD;AAAA,EAChF,GAAIA,EAAO,SAAS,WAAW;AAAA,IAC7B,UAAU;AAAA,IACV,UAAUA,EAAO;AAAA,IACjB,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,WAAW;AAAA,EAAA;AAAA,EAEb,GAAIA,EAAO,SAAS,eAAe;AAAA,IACjC,gBAAgB;AAAA,MACd,UAAUA,EAAO;AAAA,MACjB,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,aAAa;AAAA,IAAA;AAAA,EACf;AAEJ,EAAE;AAUF,SAASC,EAAOC,GAAoB;AAClC,QAAM,EAAE,UAAAC,GAAU,cAAAC,EAAA,IAAiBF,GAC7BG,IAAsBC,EAAA,GACtBC,IAAkCC,EAAA,GAClCR,IAASI,KAAgBC,GACzBI,IAAaC,EAAA,GACbC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACf,GAAA,EAAK,IAAG,cAAa,QAAAE,GAAgB,WAAU,eAC9C,UAAA,gBAAAc,EAAC,OAAA,EAAI,WAAU,0BACZ,UAAA;AAAA,IAAAd,EAAO,OAAO,WAAWA,EAAO,OAAO,aAAa,4BAAWe,GAAA,EAAoB;AAAA,IAEpF,gBAAAD,EAAC,QAAA,EAAK,IAAG,YAAW,WAAU,4DAC3B,UAAA;AAAA,MAAAd,EAAO,QAAQ,WACd,gBAAAa,EAACG,GAAA,EAAc,WAAWhB,EAAO,QAAQ,UAAU,UAAU,iBAAiB,GAAA,CAAI;AAAA,MAEnF,GAAQS,KAAcE,MACrB,gBAAAE,EAAC,OAAA,EAAI,WAAU,kCACb,UAAA,gBAAAA,EAACI,GAAA,EAAe,OAAM,YAAA,CAAY,GACpC;AAAA,MAGF,gBAAAH,EAAC,OAAA,EAAI,WAAU,iDACb,UAAA;AAAA,QAAA,gBAAAD,EAACK,GAAA,EACC,UAAA,gBAAAL,EAACM,GAAA,CAAA,GAAYZ,CAAiC,GAChD;AAAA,QACCJ;AAAA,MAAA,GACH;AAAA,MAECH,EAAO,OAAO,WACb,gBAAAa,EAACO,GAAA,EAAa,WAAWpB,EAAO,OAAO,UAAU,UAAU,oBAAoB,GAAA,CAAI;AAAA,IAAA,GAEvF;AAAA,IAECA,EAAO,OAAO,WAAWA,EAAO,OAAO,aAAa,6BAAYe,GAAA,CAAA,CAAoB;AAAA,EAAA,EAAA,CACvF,EAAA,CACF;AAEJ;AAvCSM,EAAApB,GAAA;AAyCT,MAAAqB,IAAeC,EAAKtB,CAAM;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FooterLayout.js","sources":["../../../../src/layout/components/layouts/FooterLayout.tsx"],"sourcesContent":["import { useGetFooterTheme } from '@/hooks/useOwpSettings';\nimport AppBar from '@mui/material/AppBar';\nimport { ThemeProvider } from '@mui/material/styles';\nimport Toolbar from '@mui/material/Toolbar';\nimport clsx from 'clsx';\nimport { memo } from 'react';\n\ntype FooterLayoutProps = { className?: string };\n\n/**\n * The footer layout.\n */\nfunction FooterLayout(props: FooterLayoutProps) {\n const { className } = props;\n\n const footerTheme = useGetFooterTheme();\n\n return (\n <ThemeProvider theme={footerTheme}>\n <AppBar\n id=\"owp-footer\"\n className={clsx('relative z-20 border-t', className)}\n color=\"default\"\n sx={(theme) => ({\n backgroundColor: 'var(--default-background-footerTheme-palette)',\n ...theme.applyStyles('light', {\n backgroundColor: 'var(--paper-background-footerTheme-palette)',\n }),\n '--paper-background-footerTheme-palette':
|
|
1
|
+
{"version":3,"file":"FooterLayout.js","sources":["../../../../src/layout/components/layouts/FooterLayout.tsx"],"sourcesContent":["import { useGetFooterTheme } from '@/hooks/useOwpSettings';\nimport AppBar from '@mui/material/AppBar';\nimport { ThemeProvider } from '@mui/material/styles';\nimport Toolbar from '@mui/material/Toolbar';\nimport clsx from 'clsx';\nimport { memo } from 'react';\n\ntype FooterLayoutProps = { className?: string };\n\n/**\n * The footer layout.\n */\nfunction FooterLayout(props: FooterLayoutProps) {\n const { className } = props;\n\n const footerTheme = useGetFooterTheme();\n\n return (\n <ThemeProvider theme={footerTheme}>\n <AppBar\n id=\"owp-footer\"\n className={clsx('relative z-20 border-t', className)}\n color=\"default\"\n sx={(theme) => ({\n backgroundColor: 'var(--default-background-footerTheme-palette)',\n ...theme.applyStyles('light', {\n backgroundColor: 'var(--paper-background-footerTheme-palette)',\n }),\n '--paper-background-footerTheme-palette': footerTheme.palette.background.paper,\n '--default-background-footerTheme-palette': footerTheme.palette.background.default,\n })}\n elevation={0}\n >\n <Toolbar className=\"min-h-48 md:min-h-64 px-8 sm:px-12 py-0 flex items-center overflow-x-auto\">\n Footer\n </Toolbar>\n </AppBar>\n </ThemeProvider>\n );\n}\n\nexport default memo(FooterLayout);\n"],"names":["FooterLayout","props","className","footerTheme","useGetFooterTheme","jsx","ThemeProvider","AppBar","clsx","__name","theme","Toolbar","FooterLayout$1","memo"],"mappings":";;;;;;;;;AAYA,SAASA,EAAaC,GAA0B;AAC9C,QAAM,EAAE,WAAAC,MAAcD,GAEhBE,IAAcC,EAAA;AAEpB,SACE,gBAAAC,EAACC,GAAA,EAAc,OAAOH,GACpB,UAAA,gBAAAE;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,WAAWC,EAAK,0BAA0BN,CAAS;AAAA,MACnD,OAAM;AAAA,MACN,IAAI,gBAAAO,EAAA,CAACC,OAAW;AAAA,QACd,iBAAiB;AAAA,QACjB,GAAGA,EAAM,YAAY,SAAS;AAAA,UAC5B,iBAAiB;AAAA,QAAA,CAClB;AAAA,QACD,0CAA0CP,EAAY,QAAQ,WAAW;AAAA,QACzE,4CAA4CA,EAAY,QAAQ,WAAW;AAAA,MAAA,IANzE;AAAA,MAQJ,WAAW;AAAA,MAEX,UAAA,gBAAAE,EAACM,GAAA,EAAQ,WAAU,6EAA4E,UAAA,SAAA,CAE/F;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;AA3BSF,EAAAT,GAAA;AA6BT,MAAAY,IAAeC,EAAKb,CAAY;"}
|
|
@@ -2,20 +2,20 @@ var Q = Object.defineProperty;
|
|
|
2
2
|
var s = (e, r) => Q(e, "name", { value: r, configurable: !0 });
|
|
3
3
|
import { jsxs as d, jsx as t } from "../../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
4
|
import { useGetCurrentUser as X } from "../../../hooks/useCurrentUser.js";
|
|
5
|
+
import { useOwpDialogs as Z } from "../../../hooks/useOwpDialogs.js";
|
|
5
6
|
import { useOwpTranslation as b } from "../../../hooks/useOwpTranslation.js";
|
|
6
|
-
import { useStorage as
|
|
7
|
+
import { useStorage as q } from "../../../hooks/useStorage.js";
|
|
7
8
|
import N from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Visibility.js";
|
|
8
9
|
import T from "../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/VisibilityOff.js";
|
|
9
10
|
import _ from "@mui/material/Alert";
|
|
10
|
-
import
|
|
11
|
+
import J from "@mui/material/Button";
|
|
11
12
|
import k from "@mui/material/IconButton";
|
|
12
13
|
import L from "@mui/material/InputAdornment";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
14
|
+
import K from "@mui/material/ListItemIcon";
|
|
15
|
+
import Y from "@mui/material/ListItemText";
|
|
16
|
+
import ee from "@mui/material/MenuItem";
|
|
16
17
|
import W from "@mui/material/TextField";
|
|
17
|
-
import { useMutation as
|
|
18
|
-
import { useDialogs as te } from "@toolpad/core/useDialogs";
|
|
18
|
+
import { useMutation as te } from "@tanstack/react-query";
|
|
19
19
|
import { useState as P, useMemo as D } from "react";
|
|
20
20
|
import { useForm as ne, Controller as O } from "react-hook-form";
|
|
21
21
|
import { OwpSvgIcon as se } from "../../../components/OwpSvgIcon/OwpSvgIcon.js";
|
|
@@ -33,27 +33,27 @@ function de() {
|
|
|
33
33
|
Strong: e("Pages.ChangePassword.label.강력")
|
|
34
34
|
}, { control: i, handleSubmit: c, watch: l, reset: B } = ne({
|
|
35
35
|
defaultValues: { password: "", confirm: "" }
|
|
36
|
-
}), [A, H] = P(!1), [E, j] = P(!1), [
|
|
36
|
+
}), [A, H] = P(!1), [E, j] = P(!1), [p, g] = P(null), f = X(), { getEnv: R } = q(), S = D(() => {
|
|
37
37
|
try {
|
|
38
38
|
return R();
|
|
39
39
|
} catch (n) {
|
|
40
40
|
return console.error("🚀 ~ getEnv ~ error:", n), {};
|
|
41
41
|
}
|
|
42
42
|
}, [R]), m = l("password"), v = l("confirm"), o = D(() => {
|
|
43
|
-
const n = m.length >= 8, a = /[A-Za-z]/.test(m),
|
|
44
|
-
return { len: n, hasLetter: a, hasNum:
|
|
45
|
-
}, [m, v]), z = oe(o.score / 4 * 100, 0, 100), M = { Weak: "bg-red-500", Medium: "bg-yellow-500", Strong: "bg-green-500" }, I =
|
|
46
|
-
mutationFn: /* @__PURE__ */ s(({ password: n }) =>
|
|
43
|
+
const n = m.length >= 8, a = /[A-Za-z]/.test(m), w = /\d/.test(m), x = ce.test(m), F = m === v && m.length > 0, V = n && a && w && x, C = [n, a, w, x].filter(Boolean).length, G = C <= 2 ? "Weak" : C === 3 ? "Medium" : "Strong";
|
|
44
|
+
return { len: n, hasLetter: a, hasNum: w, hasSpecial: x, match: F, valid: V, score: C, strength: G };
|
|
45
|
+
}, [m, v]), z = oe(o.score / 4 * 100, 0, 100), M = { Weak: "bg-red-500", Medium: "bg-yellow-500", Strong: "bg-green-500" }, I = te({
|
|
46
|
+
mutationFn: /* @__PURE__ */ s(({ password: n }) => pe({
|
|
47
47
|
apiBaseUrl: S == null ? void 0 : S.apiBaseUrl,
|
|
48
48
|
password: n,
|
|
49
49
|
userSeq: f == null ? void 0 : f.USERSEQ
|
|
50
50
|
}), "mutationFn"),
|
|
51
51
|
onSuccess: /* @__PURE__ */ s((n) => {
|
|
52
|
-
|
|
52
|
+
g(n), n === y && B();
|
|
53
53
|
}, "onSuccess")
|
|
54
54
|
});
|
|
55
55
|
return /* @__PURE__ */ d("form", { onSubmit: c(/* @__PURE__ */ s(async ({ password: n }) => {
|
|
56
|
-
!o.valid || !o.match || (
|
|
56
|
+
!o.valid || !o.match || (g(null), await I.mutateAsync({ password: n }));
|
|
57
57
|
}, "submit")), className: "w-full max-w-lg space-y-20", children: [
|
|
58
58
|
/* @__PURE__ */ d("div", { className: "space-y-4", children: [
|
|
59
59
|
/* @__PURE__ */ t(
|
|
@@ -84,7 +84,7 @@ function de() {
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
onChange: /* @__PURE__ */ s((a) => {
|
|
87
|
-
n.onChange(U(a.target.value)),
|
|
87
|
+
n.onChange(U(a.target.value)), p !== null && g(null);
|
|
88
88
|
}, "onChange"),
|
|
89
89
|
helperText: e("Message.8자 이상, 영문·숫자·특수문자 포함")
|
|
90
90
|
}
|
|
@@ -129,7 +129,7 @@ function de() {
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
onChange: /* @__PURE__ */ s((a) => {
|
|
132
|
-
n.onChange(U(a.target.value)),
|
|
132
|
+
n.onChange(U(a.target.value)), p !== null && g(null);
|
|
133
133
|
}, "onChange"),
|
|
134
134
|
error: !!n.value && !o.match,
|
|
135
135
|
helperText: n.value ? o.match ? e("Message.일치합니다.") : e("Message.비밀번호가 일치하지 않습니다.") : ""
|
|
@@ -145,7 +145,7 @@ function de() {
|
|
|
145
145
|
/* @__PURE__ */ t(u, { ok: o.match, text: e("Message.비밀번호 일치") })
|
|
146
146
|
] }),
|
|
147
147
|
/* @__PURE__ */ t(
|
|
148
|
-
|
|
148
|
+
J,
|
|
149
149
|
{
|
|
150
150
|
fullWidth: !0,
|
|
151
151
|
type: "submit",
|
|
@@ -157,8 +157,8 @@ function de() {
|
|
|
157
157
|
children: e("Button.변경")
|
|
158
158
|
}
|
|
159
159
|
),
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
p === y && /* @__PURE__ */ t(_, { severity: "success", children: e("Message.비밀번호가 변경되었습니다.") }),
|
|
161
|
+
p === h && /* @__PURE__ */ t(_, { severity: "error", children: e("Message.변경에 실패했습니다. 다시 시도해주세요.") })
|
|
162
162
|
] });
|
|
163
163
|
}
|
|
164
164
|
s(de, "PasswordChangeContent");
|
|
@@ -179,17 +179,17 @@ function ue({ open: e, onClose: r }) {
|
|
|
179
179
|
}
|
|
180
180
|
s(ue, "PasswordChangeDialog");
|
|
181
181
|
function Ue(e) {
|
|
182
|
-
const { onAction: r } = e, { t: i } = b(), c =
|
|
182
|
+
const { onAction: r } = e, { t: i } = b(), c = Z();
|
|
183
183
|
return /* @__PURE__ */ d(
|
|
184
|
-
|
|
184
|
+
ee,
|
|
185
185
|
{
|
|
186
186
|
onClick: /* @__PURE__ */ s(async () => {
|
|
187
187
|
r == null || r(), c.open(ue);
|
|
188
188
|
}, "onClick"),
|
|
189
189
|
children: [
|
|
190
|
-
/* @__PURE__ */ t(
|
|
190
|
+
/* @__PURE__ */ t(K, { className: "min-w-36", children: /* @__PURE__ */ t(se, { children: "heroicons-outline:pencil-square" }) }),
|
|
191
191
|
/* @__PURE__ */ t(
|
|
192
|
-
|
|
192
|
+
Y,
|
|
193
193
|
{
|
|
194
194
|
primary: i("Button.패스워드 변경"),
|
|
195
195
|
sx: { "& .MuiListItemText-primary": { letterSpacing: "0.02em" } }
|
|
@@ -204,7 +204,7 @@ const u = /* @__PURE__ */ s(({ ok: e, text: r }) => /* @__PURE__ */ d("div", { c
|
|
|
204
204
|
/* @__PURE__ */ t("span", { className: `w-6 h-6 rounded-full ${e ? "bg-green-500" : "bg-gray-300"}` }),
|
|
205
205
|
/* @__PURE__ */ t("span", { className: e ? "text-gray-800" : "text-gray-500", children: r })
|
|
206
206
|
] }), "Rule");
|
|
207
|
-
async function
|
|
207
|
+
async function pe({
|
|
208
208
|
password: e,
|
|
209
209
|
userSeq: r,
|
|
210
210
|
apiBaseUrl: i
|
|
@@ -230,7 +230,7 @@ async function ge({
|
|
|
230
230
|
}
|
|
231
231
|
return h;
|
|
232
232
|
}
|
|
233
|
-
s(
|
|
233
|
+
s(pe, "updateUserPassword");
|
|
234
234
|
export {
|
|
235
235
|
Ue as default
|
|
236
236
|
};
|