@owp/core 1.30.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/colors/chart.d.ts +3 -0
- package/colors/chart.js +1 -0
- package/contexts.d.ts +3 -0
- package/contexts.js +1 -0
- package/dist/{Close-DnXyQZKh.js → Close-C91nHTKM.js} +280 -282
- package/dist/Close-C91nHTKM.js.map +1 -0
- package/dist/{OwpStoreProvider-Bx5p7ooQ.js → OwpStoreProvider-BPa_lWCz.js} +3 -3
- package/dist/OwpStoreProvider-BPa_lWCz.js.map +1 -0
- package/dist/OwpUtils-DV2LSByd.js +411 -0
- package/dist/OwpUtils-DV2LSByd.js.map +1 -0
- package/dist/colorMap-DP-DCZbV.js +82 -0
- package/dist/colorMap-DP-DCZbV.js.map +1 -0
- package/dist/colors/chart.js +6 -0
- package/dist/colors/chart.js.map +1 -0
- package/dist/colors.js +4 -1
- package/dist/colors.js.map +1 -1
- package/dist/commonCodeUtils-DNfSjP6S.js +42 -0
- package/dist/commonCodeUtils-DNfSjP6S.js.map +1 -0
- package/dist/contexts.js +104 -0
- package/dist/contexts.js.map +1 -0
- package/dist/{owpDark-DAY0F6Ph.js → dark-DAY0F6Ph.js} +1 -1
- package/dist/dark-DAY0F6Ph.js.map +1 -0
- package/dist/emotion-react-jsx-runtime.browser.esm-BMvSswBW.js +1496 -0
- package/dist/emotion-react-jsx-runtime.browser.esm-BMvSswBW.js.map +1 -0
- package/dist/hooks.js +119 -73
- package/dist/hooks.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +44321 -96
- package/dist/index.js.map +1 -1
- package/dist/isString-Codtu20I.js +55 -0
- package/dist/isString-Codtu20I.js.map +1 -0
- package/dist/isTypedArray-CCnDZ5HJ.js +609 -0
- package/dist/isTypedArray-CCnDZ5HJ.js.map +1 -0
- package/dist/language-DaxFvPOq.js +35 -0
- package/dist/language-DaxFvPOq.js.map +1 -0
- package/dist/lazyLoadedSlices-C18y0AEB.js +2773 -0
- package/dist/lazyLoadedSlices-C18y0AEB.js.map +1 -0
- package/dist/owp-app.css +1 -1
- package/dist/store.js +2 -2
- package/dist/{toUpper-i_I6Tyuv.js → toUpper-Dmh8Htx_.js} +2 -2
- package/dist/{toUpper-i_I6Tyuv.js.map → toUpper-Dmh8Htx_.js.map} +1 -1
- package/dist/{treeGridUtil-WTM_djsN.js → treeGridUtil-DAfaAk6C.js} +19 -19
- package/dist/{treeGridUtil-WTM_djsN.js.map → treeGridUtil-DAfaAk6C.js.map} +1 -1
- package/dist/types/colors/chart/colorMap.d.ts +8 -0
- package/dist/types/colors/chart/index.d.ts +1 -0
- package/dist/types/colors/index.d.ts +2 -2
- package/dist/types/colors/palettes/index.d.ts +2 -0
- package/dist/types/components/OwpErrorBoundary/OwpErrorBoundary.d.ts +1 -1
- package/dist/types/components/OwpFileUploadButton/OwpFileUploadButton.d.ts +2 -2
- package/dist/types/components/OwpHidden/OwpHidden.d.ts +19 -0
- package/dist/types/components/OwpHidden/index.d.ts +2 -0
- package/dist/types/components/OwpLayout/OwpLayout.d.ts +2 -2
- package/dist/types/components/OwpPageCarded/OwpPageCarded.d.ts +2 -2
- package/dist/types/components/OwpPageCarded/OwpPageCardedSidebar.d.ts +1 -1
- package/dist/types/components/OwpPicker/DatePickerInput.d.ts +1 -1
- package/dist/types/components/OwpStyleProvider/OwpStyleProvider.d.ts +5 -5
- package/dist/types/components/OwpTable/OwpTable.d.ts +1 -3
- package/dist/types/components/OwpTabs/OwpTab.d.ts +2 -4
- package/dist/types/components/OwpTabs/OwpTabs.d.ts +2 -4
- package/dist/types/{default-settings/OwpDefaultSettings.d.ts → configs/defaultConfig.d.ts} +1 -1
- package/dist/types/{components/layouts/layout2/Layout2Config.d.ts → configs/layoutConfig.d.ts} +12 -15
- package/dist/types/{context → contexts}/OwpAppProvider.d.ts +10 -3
- package/dist/types/hooks/index.d.ts +4 -2
- package/dist/types/{store/hooks.d.ts → hooks/useAppStore.d.ts} +1 -1
- package/dist/types/hooks/useCurrentLanguage.d.ts +1 -5
- package/dist/types/hooks/useInitApp.d.ts +8 -0
- package/dist/types/hooks/useInitCommonCodes.d.ts +4 -0
- package/dist/types/hooks/useLogoSrc.d.ts +8 -0
- package/dist/types/hooks/useNavigation.d.ts +3 -18
- package/dist/types/hooks/useOwpTranslation.d.ts +0 -2
- package/dist/types/hooks/useThemeMediaQuery.d.ts +1 -1
- package/dist/types/index.d.ts +3 -29
- package/dist/types/{components/layouts/layout3/Layout3.d.ts → layout/Layout.d.ts} +4 -4
- package/dist/types/layout/components/layouts/FooterLayout.d.ts +9 -0
- package/dist/types/layout/components/layouts/LeftSideLayout.d.ts +6 -0
- package/dist/types/layout/components/layouts/NavbarToggleFabLayout.d.ts +8 -0
- package/dist/types/layout/components/layouts/NavbarWrapperLayout.d.ts +5 -0
- package/dist/types/layout/components/menus/LogoutMenu.d.ts +8 -0
- package/dist/types/layout/components/menus/PasswordChangeMenu.d.ts +8 -0
- package/dist/types/{components/layouts/shared-components → layout/components/menus}/UserMenu.d.ts +1 -1
- package/dist/types/{components/layouts/shared-components → layout/components}/navbar/NavbarPinToggleButton.d.ts +1 -1
- package/dist/types/layout/components/navbar/NavbarToggleButton.d.ts +11 -0
- package/dist/types/layout/components/navbar/style/NavbarStyle.d.ts +5 -0
- package/dist/types/layout/components/navbar/style/NavbarStyleContent.d.ts +9 -0
- package/dist/types/layout/components/navigation/NavBadge.d.ts +17 -0
- package/dist/types/layout/components/navigation/NavItem.d.ts +14 -0
- package/dist/types/layout/components/navigation/Navigation.d.ts +3 -0
- package/dist/types/layout/components/navigation/NavigationMenu.d.ts +23 -0
- package/dist/types/layout/components/navigation/vertical/NavVerticalLayout.d.ts +9 -0
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalCollapse.d.ts +6 -0
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalGroup.d.ts +6 -0
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalItem.d.ts +6 -0
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalLink.d.ts +7 -0
- package/dist/types/layout/components/toggles/FullScreenToggle.d.ts +8 -0
- package/dist/types/layout/components/toggles/LanguageSwitcherToggle.d.ts +9 -0
- package/dist/types/layout/components/toggles/NavigationSearchToggle.d.ts +16 -0
- package/dist/types/layout/components/toggles/NavigationShortcutsToggle.d.ts +9 -0
- package/dist/types/layout/components/toggles/toggleStyles.d.ts +10 -0
- package/dist/types/{components/layouts/layout3/components/FooterLayout3.d.ts → layout/components/toolbar/ToolbarLayout.d.ts} +4 -4
- package/dist/types/{components/layouts → layout}/themeLayoutConfigs.d.ts +2 -4
- package/dist/types/store/index.d.ts +1 -1
- package/dist/types/store/lazyLoadedSlices.d.ts +2 -2
- package/dist/types/{components/layouts/shared-components/navigation/store → store}/navigationSlice.d.ts +10 -10
- package/dist/types/store/owpSettingsSlice.d.ts +18 -1356
- package/dist/types/{components/OwpNavigation/types/OwpNavItemType.d.ts → types/OwpNavigationTypes.d.ts} +14 -4
- package/dist/types/types/OwpSettingsTypes.d.ts +2 -2
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/utils/getEstimatedTextCellWidth.d.ts +12 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/language.d.ts +8 -0
- package/dist/types/{components/OwpNavigation/utils/OwpNavigationHelper.d.ts → utils/navigationUtils.d.ts} +17 -5
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/{usePageLockLoading-BUI_3PlR.js → usePageLockLoading-BGODEt_k.js} +5 -5
- package/dist/usePageLockLoading-BGODEt_k.js.map +1 -0
- package/dist/useShortcuts-BjtlXprQ.js +236 -0
- package/dist/useShortcuts-BjtlXprQ.js.map +1 -0
- package/dist/useTreeGridExcelExport-BE6h1hsO.js +120 -0
- package/dist/useTreeGridExcelExport-BE6h1hsO.js.map +1 -0
- package/dist/utils.js +6911 -6671
- package/dist/utils.js.map +1 -1
- package/owp-app.css +1 -0
- package/package.json +51 -47
- package/types.d.ts +3 -0
- package/types.js +1 -0
- package/context.d.ts +0 -3
- package/context.js +0 -1
- package/dist/Close-DnXyQZKh.js.map +0 -1
- package/dist/OwpStoreProvider-Bx5p7ooQ.js.map +0 -1
- package/dist/OwpUtils-C81bM1Gz.js +0 -611
- package/dist/OwpUtils-C81bM1Gz.js.map +0 -1
- package/dist/QuickPanel-CO7Tyc8C.js +0 -104
- package/dist/QuickPanel-CO7Tyc8C.js.map +0 -1
- package/dist/context.js +0 -101
- package/dist/context.js.map +0 -1
- package/dist/emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js +0 -1751
- package/dist/emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js.map +0 -1
- package/dist/index-KlA5Es4t.js +0 -46971
- package/dist/index-KlA5Es4t.js.map +0 -1
- package/dist/isTypedArray-DPyC49cI.js +0 -411
- package/dist/isTypedArray-DPyC49cI.js.map +0 -1
- package/dist/lazyLoadedSlices-DC7yg4GT.js +0 -2832
- package/dist/lazyLoadedSlices-DC7yg4GT.js.map +0 -1
- package/dist/owpDark-DAY0F6Ph.js.map +0 -1
- package/dist/types/components/OwpCommonDialog/OwpCommonDialog.d.ts +0 -1
- package/dist/types/components/OwpCommonDialog/index.d.ts +0 -1
- package/dist/types/components/OwpNavigation/OwpNavBadge.d.ts +0 -17
- package/dist/types/components/OwpNavigation/OwpNavItem.d.ts +0 -14
- package/dist/types/components/OwpNavigation/OwpNavigation.d.ts +0 -23
- package/dist/types/components/OwpNavigation/horizontal/OwpNavHorizontalLayout1.d.ts +0 -7
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalCollapse.d.ts +0 -15
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalGroup.d.ts +0 -13
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalItem.d.ts +0 -11
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalLink.d.ts +0 -8
- package/dist/types/components/OwpNavigation/index.d.ts +0 -1
- package/dist/types/components/OwpNavigation/isUrlInChildren.d.ts +0 -7
- package/dist/types/components/OwpNavigation/models/OwpNavItemModel.d.ts +0 -8
- package/dist/types/components/OwpNavigation/types/OwpNavBadgeType.d.ts +0 -9
- package/dist/types/components/OwpNavigation/utils/components.d.ts +0 -4
- package/dist/types/components/OwpNavigation/utils/registerComponent.d.ts +0 -4
- package/dist/types/components/OwpNavigation/vertical/OwpNavVerticalLayout1.d.ts +0 -9
- package/dist/types/components/OwpNavigation/vertical/OwpNavVerticalLayout2.d.ts +0 -7
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalCollapse.d.ts +0 -7
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalGroup.d.ts +0 -7
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalItem.d.ts +0 -7
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalLink.d.ts +0 -8
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalTab.d.ts +0 -11
- package/dist/types/components/OwpSearch/OwpSearch.d.ts +0 -23
- package/dist/types/components/OwpSearch/index.d.ts +0 -1
- package/dist/types/components/OwpShortcuts/OwpShortcuts.d.ts +0 -19
- package/dist/types/components/OwpShortcuts/index.d.ts +0 -1
- package/dist/types/components/OwpSidePanel/OwpSidePanel.d.ts +0 -18
- package/dist/types/components/OwpSidePanel/index.d.ts +0 -1
- package/dist/types/components/OwpTheme/OwpTheme.d.ts +0 -18
- package/dist/types/components/OwpTheme/index.d.ts +0 -1
- package/dist/types/components/OwpThemeSelector/OwpThemeSelector.d.ts +0 -16
- package/dist/types/components/OwpThemeSelector/SchemePreview.d.ts +0 -14
- package/dist/types/components/OwpThemeSelector/ThemePreview.d.ts +0 -17
- package/dist/types/components/OwpThemeSelector/index.d.ts +0 -1
- package/dist/types/components/layouts/layout1/Layout1.d.ts +0 -10
- package/dist/types/components/layouts/layout1/Layout1Config.d.ts +0 -114
- package/dist/types/components/layouts/layout1/components/FooterLayout1.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/LeftSideLayout1.d.ts +0 -6
- package/dist/types/components/layouts/layout1/components/NavbarToggleFabLayout1.d.ts +0 -8
- package/dist/types/components/layouts/layout1/components/NavbarWrapperLayout1.d.ts +0 -5
- package/dist/types/components/layouts/layout1/components/ToolbarLayout1.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/navbar/style-1/NavbarStyle1.d.ts +0 -5
- package/dist/types/components/layouts/layout1/components/navbar/style-1/NavbarStyle1Content.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/navbar/style-2/NavbarStyle2.d.ts +0 -5
- package/dist/types/components/layouts/layout1/components/navbar/style-2/NavbarStyle2Content.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/navbar/style-3/NavbarStyle3.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/navbar/style-3/NavbarStyle3Content.d.ts +0 -10
- package/dist/types/components/layouts/layout2/Layout2.d.ts +0 -10
- package/dist/types/components/layouts/layout2/components/FooterLayout2.d.ts +0 -9
- package/dist/types/components/layouts/layout2/components/LeftSideLayout2.d.ts +0 -6
- package/dist/types/components/layouts/layout2/components/NavbarLayout2.d.ts +0 -9
- package/dist/types/components/layouts/layout2/components/NavbarMobileLayout2.d.ts +0 -9
- package/dist/types/components/layouts/layout2/components/NavbarToggleFabLayout2.d.ts +0 -8
- package/dist/types/components/layouts/layout2/components/NavbarWrapperLayout2.d.ts +0 -5
- package/dist/types/components/layouts/layout2/components/RightSideLayout2.d.ts +0 -6
- package/dist/types/components/layouts/layout2/components/ToolbarLayout2.d.ts +0 -9
- package/dist/types/components/layouts/layout3/Layout3Config.d.ts +0 -110
- package/dist/types/components/layouts/layout3/components/LeftSideLayout3.d.ts +0 -6
- package/dist/types/components/layouts/layout3/components/NavbarLayout3.d.ts +0 -9
- package/dist/types/components/layouts/layout3/components/NavbarMobileLayout3.d.ts +0 -9
- package/dist/types/components/layouts/layout3/components/NavbarWrapperLayout3.d.ts +0 -5
- package/dist/types/components/layouts/layout3/components/RightSideLayout3.d.ts +0 -6
- package/dist/types/components/layouts/layout3/components/ToolbarLayout3.d.ts +0 -9
- package/dist/types/components/layouts/shared-components/FullScreenToggle.d.ts +0 -8
- package/dist/types/components/layouts/shared-components/LanguageSwitcher.d.ts +0 -7
- package/dist/types/components/layouts/shared-components/PasswordChangeForm.d.ts +0 -2
- package/dist/types/components/layouts/shared-components/navbar/NavbarToggleButton.d.ts +0 -7
- package/dist/types/components/layouts/shared-components/navigation/Navigation.d.ts +0 -3
- package/dist/types/components/layouts/shared-components/navigation/NavigationSearch.d.ts +0 -6
- package/dist/types/components/layouts/shared-components/navigation/NavigationShortcuts.d.ts +0 -6
- package/dist/types/components/layouts/shared-components/quickPanel/QuickPanel.d.ts +0 -5
- package/dist/types/components/layouts/shared-components/quickPanel/QuickPanelToggleButton.d.ts +0 -9
- package/dist/types/components/layouts/shared-components/quickPanel/quickPanelSlice.d.ts +0 -14
- package/dist/types/hooks/useCurrentLogoSrc.d.ts +0 -8
- package/dist/types/hooks/useTreeGridCommonCodeEnum.d.ts +0 -8
- package/dist/usePageLockLoading-BUI_3PlR.js.map +0 -1
- package/dist/useShortcuts-CCf98L8m.js +0 -241
- package/dist/useShortcuts-CCf98L8m.js.map +0 -1
- package/dist/useStorage-CuUmH4fD.js +0 -50
- package/dist/useStorage-CuUmH4fD.js.map +0 -1
- package/dist/useTreeGridExcelExport-N2nOKmkz.js +0 -138
- package/dist/useTreeGridExcelExport-N2nOKmkz.js.map +0 -1
- /package/dist/types/colors/{owpDark.d.ts → palettes/dark.d.ts} +0 -0
- /package/dist/types/colors/{skyBlue.d.ts → palettes/skyBlue.d.ts} +0 -0
- /package/dist/types/{context → contexts}/OwpCoreProvider.d.ts +0 -0
- /package/dist/types/{context → contexts}/OwpStoreProvider.d.ts +0 -0
- /package/dist/types/{context → contexts}/OwpUiProvider.d.ts +0 -0
- /package/dist/types/{context → contexts}/index.d.ts +0 -0
- /package/dist/types/{components/layouts/shared-components → layout/components/logo}/Logo.d.ts +0 -0
- /package/dist/types/{components/layouts/shared-components → layout/components}/navbar/NavbarToggleFab.d.ts +0 -0
- /package/dist/types/{components/layouts/shared-components → layout/components/toggles}/LogoutToggle.d.ts +0 -0
- /package/dist/types/{components/layouts → layout}/themeLayouts.d.ts +0 -0
- /package/dist/types/{components/layouts/shared-components/navbar → store}/navbarSlice.d.ts +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type FooterLayout2Props = {
|
|
2
|
-
className?: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* The footer layout 2.
|
|
6
|
-
*/
|
|
7
|
-
declare function FooterLayout2(props: FooterLayout2Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const _default: import("react").MemoExoticComponent<typeof FooterLayout2>;
|
|
9
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type NavbarLayout2Props = {
|
|
2
|
-
className?: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* The navbar layout 2.
|
|
6
|
-
*/
|
|
7
|
-
declare function NavbarLayout2(props: NavbarLayout2Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const _default: import("react").MemoExoticComponent<typeof NavbarLayout2>;
|
|
9
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type NavbarMobileLayout2Props = {
|
|
2
|
-
className?: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* The navbar mobile layout 2.
|
|
6
|
-
*/
|
|
7
|
-
declare function NavbarMobileLayout2(props: NavbarMobileLayout2Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const _default: import("react").MemoExoticComponent<typeof NavbarMobileLayout2>;
|
|
9
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type NavbarToggleFabLayout2Props = {
|
|
2
|
-
className?: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* The navbar toggle fab layout 2.
|
|
6
|
-
*/
|
|
7
|
-
declare function NavbarToggleFabLayout2(props: NavbarToggleFabLayout2Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default NavbarToggleFabLayout2;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type ToolbarLayout2Props = {
|
|
2
|
-
className?: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* The toolbar layout 2.
|
|
6
|
-
*/
|
|
7
|
-
declare function ToolbarLayout2(props: ToolbarLayout2Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const _default: import("react").MemoExoticComponent<typeof ToolbarLayout2>;
|
|
9
|
-
export default _default;
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Layout3 Config object.
|
|
3
|
-
*/
|
|
4
|
-
declare const Layout3Config: {
|
|
5
|
-
title: string;
|
|
6
|
-
defaults: {
|
|
7
|
-
mode: string;
|
|
8
|
-
containerWidth: number;
|
|
9
|
-
scroll: string;
|
|
10
|
-
navbar: {
|
|
11
|
-
display: boolean;
|
|
12
|
-
style: string;
|
|
13
|
-
folded: boolean;
|
|
14
|
-
};
|
|
15
|
-
toolbar: {
|
|
16
|
-
display: boolean;
|
|
17
|
-
style: string;
|
|
18
|
-
position: string;
|
|
19
|
-
};
|
|
20
|
-
footer: {
|
|
21
|
-
display: boolean;
|
|
22
|
-
style: string;
|
|
23
|
-
};
|
|
24
|
-
leftSidePanel: {
|
|
25
|
-
display: boolean;
|
|
26
|
-
};
|
|
27
|
-
rightSidePanel: {
|
|
28
|
-
display: boolean;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
form: {
|
|
32
|
-
mode: {
|
|
33
|
-
title: string;
|
|
34
|
-
type: string;
|
|
35
|
-
options: {
|
|
36
|
-
name: string;
|
|
37
|
-
value: string;
|
|
38
|
-
}[];
|
|
39
|
-
};
|
|
40
|
-
containerWidth: {
|
|
41
|
-
title: string;
|
|
42
|
-
type: string;
|
|
43
|
-
min: number;
|
|
44
|
-
};
|
|
45
|
-
navbar: {
|
|
46
|
-
type: string;
|
|
47
|
-
title: string;
|
|
48
|
-
children: {
|
|
49
|
-
display: {
|
|
50
|
-
title: string;
|
|
51
|
-
type: string;
|
|
52
|
-
};
|
|
53
|
-
style: {
|
|
54
|
-
title: string;
|
|
55
|
-
type: string;
|
|
56
|
-
options: {
|
|
57
|
-
name: string;
|
|
58
|
-
value: string;
|
|
59
|
-
}[];
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
toolbar: {
|
|
64
|
-
type: string;
|
|
65
|
-
title: string;
|
|
66
|
-
children: {
|
|
67
|
-
display: {
|
|
68
|
-
title: string;
|
|
69
|
-
type: string;
|
|
70
|
-
};
|
|
71
|
-
position: {
|
|
72
|
-
title: string;
|
|
73
|
-
type: string;
|
|
74
|
-
options: {
|
|
75
|
-
name: string;
|
|
76
|
-
value: string;
|
|
77
|
-
}[];
|
|
78
|
-
};
|
|
79
|
-
style: {
|
|
80
|
-
title: string;
|
|
81
|
-
type: string;
|
|
82
|
-
options: {
|
|
83
|
-
name: string;
|
|
84
|
-
value: string;
|
|
85
|
-
}[];
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
footer: {
|
|
90
|
-
type: string;
|
|
91
|
-
title: string;
|
|
92
|
-
children: {
|
|
93
|
-
display: {
|
|
94
|
-
title: string;
|
|
95
|
-
type: string;
|
|
96
|
-
};
|
|
97
|
-
style: {
|
|
98
|
-
title: string;
|
|
99
|
-
type: string;
|
|
100
|
-
options: {
|
|
101
|
-
name: string;
|
|
102
|
-
value: string;
|
|
103
|
-
}[];
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
export type Layout3ConfigDefaultsType = (typeof Layout3Config)['defaults'];
|
|
110
|
-
export default Layout3Config;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type NavbarLayout3Props = {
|
|
2
|
-
className?: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* The navbar layout 3.
|
|
6
|
-
*/
|
|
7
|
-
declare function NavbarLayout3(props: NavbarLayout3Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const _default: import("react").MemoExoticComponent<typeof NavbarLayout3>;
|
|
9
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type NavbarMobileLayout3Props = {
|
|
2
|
-
className?: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* The navbar mobile layout 3.
|
|
6
|
-
*/
|
|
7
|
-
declare function NavbarMobileLayout3(props: NavbarMobileLayout3Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const _default: import("react").MemoExoticComponent<typeof NavbarMobileLayout3>;
|
|
9
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type ToolbarLayout3Props = {
|
|
2
|
-
className?: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* The toolbar layout 3.
|
|
6
|
-
*/
|
|
7
|
-
declare function ToolbarLayout3(props: ToolbarLayout3Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const _default: import("react").MemoExoticComponent<typeof ToolbarLayout3>;
|
|
9
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type HeaderFullScreenToggleProps = {
|
|
2
|
-
className?: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* The header full screen toggle.
|
|
6
|
-
*/
|
|
7
|
-
declare function HeaderFullScreenToggle(props: HeaderFullScreenToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default HeaderFullScreenToggle;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IconButtonProps } from '@mui/material/IconButton/IconButton';
|
|
2
|
-
export type NavbarToggleButtonProps = IconButtonProps;
|
|
3
|
-
/**
|
|
4
|
-
* The navbar toggle button.
|
|
5
|
-
*/
|
|
6
|
-
declare function NavbarToggleButton(props: NavbarToggleButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default NavbarToggleButton;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
type NavigationShortcutsProps = {
|
|
2
|
-
className?: string;
|
|
3
|
-
variant?: 'horizontal' | 'vertical';
|
|
4
|
-
};
|
|
5
|
-
declare const NavigationShortcutsWithSlices: (props: NavigationShortcutsProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default NavigationShortcutsWithSlices;
|
package/dist/types/components/layouts/shared-components/quickPanel/QuickPanelToggleButton.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type QuickPanelToggleButtonProps = {
|
|
2
|
-
className?: string;
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* The quick panel toggle button.
|
|
7
|
-
*/
|
|
8
|
-
declare function QuickPanelToggleButton(props: QuickPanelToggleButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default QuickPanelToggleButton;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { WithSlice } from '@reduxjs/toolkit';
|
|
2
|
-
/**
|
|
3
|
-
* Quick Panel data slice.
|
|
4
|
-
*/
|
|
5
|
-
export declare const quickPanelSlice: any;
|
|
6
|
-
declare module '@/store/lazyLoadedSlices' {
|
|
7
|
-
interface LazyLoadedSlices extends WithSlice<typeof quickPanelSlice> {
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare const selectQuickPanelData: any, selectQuickPanelOpen: any;
|
|
11
|
-
export declare const removeEvents: any, toggleQuickPanel: any, openQuickPanel: any, closeQuickPanel: any;
|
|
12
|
-
export type dataSliceType = typeof quickPanelSlice;
|
|
13
|
-
declare const _default: any;
|
|
14
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 현재 로고 경로 조회 훅
|
|
3
|
-
*/
|
|
4
|
-
export declare const useGetCurrentLogoSrc: () => string;
|
|
5
|
-
/**
|
|
6
|
-
* 현재 로고 경로 설정 훅
|
|
7
|
-
*/
|
|
8
|
-
export declare const useSetCurrentLogoSrc: () => (args_0: string | typeof import("jotai/utils").RESET | ((prev: string) => string | typeof import("jotai/utils").RESET)) => void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TreeGrid 공통코드 Enum 옵션 반영
|
|
3
|
-
* @param id TreeGrid 인스턴스 ID
|
|
4
|
-
* @param field Enum을 반영할 컬럼명
|
|
5
|
-
* @param codeId 공통코드 그룹 ID
|
|
6
|
-
* @param isGridReady TreeGrid 준비 여부
|
|
7
|
-
*/
|
|
8
|
-
export declare const useTreeGridCommonCodeEnum: (id: string, field: string, codeId: string, isGridReady: boolean) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePageLockLoading-BUI_3PlR.js","sources":["../src/hooks/useAccessTokenGuard.ts","../src/hooks/useCurrentUserId.ts","../src/hooks/usePageLockLoading.ts"],"sourcesContent":["import { STORAGE_ACCESS_TOKEN_KEY } from '@/constants/localStorageKeys';\nimport { useOwpAppContext } from '@/context/OwpAppProvider';\nimport { useEffect, useRef } from 'react';\nimport { useLocation, useNavigate } from 'react-router-dom';\n\nexport interface UseAccessTokenGuardOptions {\n loginPath?: string;\n isEnabled?: boolean;\n snackbarMessageKey?: string;\n}\n\nconst DEFAULT_LOGIN_PATH = '/auth/login';\nconst DEFAULT_SNACKBAR_MESSAGE_KEY = 'Message.로그인이 필요합니다.';\n\n/**\n * 액세스 토큰 기반 로그인 가드\n * @param loginPath 로그인 라우트 경로\n * @param isEnabled 가드 활성화 여부\n * @param snackbarMessageKey 로그인 필요 안내 메시지 키\n */\nexport const useAccessTokenGuard = ({\n loginPath = DEFAULT_LOGIN_PATH,\n isEnabled,\n snackbarMessageKey = DEFAULT_SNACKBAR_MESSAGE_KEY,\n}: UseAccessTokenGuardOptions = {}) => {\n const { env } = useOwpAppContext();\n const location = useLocation();\n const navigate = useNavigate();\n const accessToken =\n typeof window === 'undefined' ? null : window.localStorage.getItem(STORAGE_ACCESS_TOKEN_KEY);\n const isLoginRoute = location.pathname.startsWith(loginPath);\n const isAccessTokenGuardEnabled = isEnabled ?? env?.isAccessTokenGuardEnabled ?? true;\n const shouldRedirectToLogin = isAccessTokenGuardEnabled && !accessToken && !isLoginRoute;\n const hasHandledRedirectRef = useRef(false);\n\n useEffect(() => {\n if (!shouldRedirectToLogin) {\n hasHandledRedirectRef.current = false;\n return;\n }\n\n if (hasHandledRedirectRef.current) {\n return;\n }\n\n hasHandledRedirectRef.current = true;\n\n navigate(loginPath, {\n replace: true,\n state: snackbarMessageKey\n ? {\n snackbarMessageKey,\n }\n : undefined,\n });\n }, [loginPath, navigate, shouldRedirectToLogin, snackbarMessageKey]);\n\n return shouldRedirectToLogin;\n};\n","import { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nconst currentUserIdAtom = atomWithStorage<string | ''>(STORAGE_KEYS.currentUserId, '');\n\n/**\n * 현재 사용자 ID 조회 훅\n */\nexport const useGetCurrentUserId = () => {\n return useAtomValue(currentUserIdAtom);\n};\n\n/**\n * 현재 사용자 ID 설정 훅\n */\nexport const useSetCurrentUserId = () => {\n return useSetAtom(currentUserIdAtom);\n};\n","import type { OwpPageLockLoadingProps } from '@/components/OwpPageLockLoading';\nimport { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage } from 'jotai/utils';\n\nconst currentLockLoadingAtom = atomWithStorage<OwpPageLockLoadingProps | undefined>(\n STORAGE_KEYS.lockLoadingProps,\n { loading: false },\n);\n\n/**\n * 페이지 잠금 로딩 상태 조회\n */\nexport const useGetPageLockLoading = () => {\n return useAtomValue(currentLockLoadingAtom);\n};\n\n/**\n * 페이지 잠금 로딩 상태 설정\n */\nexport const usePageLockLoading = () => {\n return { setLoading: useSetAtom(currentLockLoadingAtom) };\n};\n"],"names":["DEFAULT_LOGIN_PATH","DEFAULT_SNACKBAR_MESSAGE_KEY","useAccessTokenGuard","__name","loginPath","isEnabled","snackbarMessageKey","env","useOwpAppContext","location","useLocation","navigate","useNavigate","accessToken","STORAGE_ACCESS_TOKEN_KEY","isLoginRoute","shouldRedirectToLogin","hasHandledRedirectRef","useRef","useEffect","currentUserIdAtom","atomWithStorage","STORAGE_KEYS","useGetCurrentUserId","useAtomValue","useSetCurrentUserId","useSetAtom","currentLockLoadingAtom","useGetPageLockLoading","usePageLockLoading"],"mappings":";;;;;;;;;AAWA,MAAMA,IAAqB,eACrBC,IAA+B,uBAQxBC,IAAsB,gBAAAC,EAAA,CAAC;AAAA,EAClC,WAAAC,IAAYJ;AAAA,EACZ,WAAAK;AAAA,EACA,oBAAAC,IAAqBL;AACvB,IAAgC,OAAO;AACrC,QAAM,EAAE,KAAAM,EAAA,IAAQC,EAAA,GACVC,IAAWC,EAAA,GACXC,IAAWC,EAAA,GACXC,IACJ,OAAO,SAAW,MAAc,OAAO,OAAO,aAAa,QAAQC,CAAwB,GACvFC,IAAeN,EAAS,SAAS,WAAWL,CAAS,GAErDY,KAD4BX,MAAaE,KAAA,gBAAAA,EAAK,8BAA6B,OACtB,CAACM,KAAe,CAACE,GACtEE,IAAwBC,EAAO,EAAK;AAE1C,SAAAC,EAAU,MAAM;AACd,QAAI,CAACH,GAAuB;AAC1B,MAAAC,EAAsB,UAAU;AAChC;AAAA,IACF;AAEA,IAAIA,EAAsB,YAI1BA,EAAsB,UAAU,IAEhCN,EAASP,GAAW;AAAA,MAClB,SAAS;AAAA,MACT,OAAOE,IACH;AAAA,QACE,oBAAAA;AAAA,MAAA,IAEF;AAAA,IAAA,CACL;AAAA,EACH,GAAG,CAACF,GAAWO,GAAUK,GAAuBV,CAAkB,CAAC,GAE5DU;AACT,GAtCmC,wBChB7BI,IAAoBC,EAA6BC,EAAa,eAAe,EAAE,GAKxEC,IAAsB,gBAAApB,EAAA,MAC1BqB,EAAaJ,CAAiB,GADJ,wBAOtBK,IAAsB,gBAAAtB,EAAA,MAC1BuB,EAAWN,CAAiB,GADF,wBCX7BO,IAAyBN;AAAA,EAC7BC,EAAa;AAAA,EACb,EAAE,SAAS,GAAA;AACb,GAKaM,IAAwB,gBAAAzB,EAAA,MAC5BqB,EAAaG,CAAsB,GADP,0BAOxBE,IAAqB,gBAAA1B,EAAA,OACzB,EAAE,YAAYuB,EAAWC,CAAsB,EAAA,IADtB;"}
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
var E = Object.defineProperty;
|
|
2
|
-
var t = (e, n) => E(e, "name", { value: n, configurable: !0 });
|
|
3
|
-
import { j as y, a as v } from "./emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js";
|
|
4
|
-
import { u as B } from "./useStorage-CuUmH4fD.js";
|
|
5
|
-
import { createContext as j, useContext as P, useRef as C, useLayoutEffect as D, useEffect as x } from "react";
|
|
6
|
-
import { Typography as I, DialogContent as G, DialogActions as N, Button as K, Dialog as R } from "@mui/material";
|
|
7
|
-
import { useDialogs as M } from "@toolpad/core/useDialogs";
|
|
8
|
-
import { useTranslation as k } from "react-i18next";
|
|
9
|
-
import { b as U } from "./isTypedArray-DPyC49cI.js";
|
|
10
|
-
import { S as f } from "./storageKeys-C6xHFiTo.js";
|
|
11
|
-
import { useAtomValue as m, useSetAtom as d } from "jotai";
|
|
12
|
-
import { atomWithStorage as p } from "jotai/utils";
|
|
13
|
-
function W(e, n) {
|
|
14
|
-
if (n === void 0)
|
|
15
|
-
return e.trimEnd();
|
|
16
|
-
let o = e.length;
|
|
17
|
-
switch (typeof n) {
|
|
18
|
-
case "string": {
|
|
19
|
-
if (n.length !== 1)
|
|
20
|
-
throw new Error("The 'chars' parameter should be a single character string.");
|
|
21
|
-
for (; o > 0 && e[o - 1] === n; )
|
|
22
|
-
o--;
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
case "object":
|
|
26
|
-
for (; o > 0 && n.includes(e[o - 1]); )
|
|
27
|
-
o--;
|
|
28
|
-
}
|
|
29
|
-
return e.substring(0, o);
|
|
30
|
-
}
|
|
31
|
-
t(W, "trimEnd$1");
|
|
32
|
-
const b = j(void 0), re = /* @__PURE__ */ t(({ configs: e, slots: n, children: o, env: r }) => {
|
|
33
|
-
const c = C({ ...e, env: r, slots: n }), { setEnv: s } = B();
|
|
34
|
-
return D(() => {
|
|
35
|
-
s(r ?? {});
|
|
36
|
-
}, [r, s]), /* @__PURE__ */ y(b.Provider, { value: c.current, children: o });
|
|
37
|
-
}, "OwpAppProvider"), se = /* @__PURE__ */ t(() => {
|
|
38
|
-
const e = P(b);
|
|
39
|
-
if (e === void 0)
|
|
40
|
-
throw new Error("useOwpAppContext must be used within a OwpAppProvider");
|
|
41
|
-
return e;
|
|
42
|
-
}, "useOwpAppContext");
|
|
43
|
-
function z(e, n, o) {
|
|
44
|
-
return e == null ? "" : W(e, n.toString().split(""));
|
|
45
|
-
}
|
|
46
|
-
t(z, "trimEnd");
|
|
47
|
-
const i = {
|
|
48
|
-
infoTitle: {
|
|
49
|
-
primaryKey: "message.would_you_like_to_proceed",
|
|
50
|
-
fallbackKey: "Message.처리하시겠습니까",
|
|
51
|
-
defaultValue: "처리하시겠습니까?"
|
|
52
|
-
},
|
|
53
|
-
infoOk: {
|
|
54
|
-
primaryKey: "button.ok",
|
|
55
|
-
fallbackKey: "Button.확인",
|
|
56
|
-
defaultValue: "확인"
|
|
57
|
-
},
|
|
58
|
-
saveTitle: {
|
|
59
|
-
primaryKey: "message.do_you_want_to_save",
|
|
60
|
-
fallbackKey: "Message.저장하시겠습니까?",
|
|
61
|
-
defaultValue: "저장하시겠습니까?"
|
|
62
|
-
},
|
|
63
|
-
saveOk: {
|
|
64
|
-
primaryKey: "button.save",
|
|
65
|
-
fallbackKey: "Button.저장",
|
|
66
|
-
defaultValue: "저장"
|
|
67
|
-
},
|
|
68
|
-
updateTitle: {
|
|
69
|
-
primaryKey: "message.would_you_like_to_edit",
|
|
70
|
-
fallbackKey: "Message.수정하시겠습니까?",
|
|
71
|
-
defaultValue: "수정하시겠습니까?"
|
|
72
|
-
},
|
|
73
|
-
updateOk: {
|
|
74
|
-
primaryKey: "button.edit",
|
|
75
|
-
fallbackKey: "Button.수정",
|
|
76
|
-
defaultValue: "수정"
|
|
77
|
-
},
|
|
78
|
-
deleteTitle: {
|
|
79
|
-
primaryKey: "message.are_you_sure_you_want_to_delete",
|
|
80
|
-
fallbackKey: "Message.삭제하시겠습니까?",
|
|
81
|
-
defaultValue: "삭제하시겠습니까?"
|
|
82
|
-
},
|
|
83
|
-
deleteOk: {
|
|
84
|
-
primaryKey: "button.delete",
|
|
85
|
-
fallbackKey: "Button.삭제",
|
|
86
|
-
defaultValue: "삭제"
|
|
87
|
-
},
|
|
88
|
-
cancel: {
|
|
89
|
-
primaryKey: "button.cancel",
|
|
90
|
-
fallbackKey: "Button.취소",
|
|
91
|
-
defaultValue: "취소"
|
|
92
|
-
}
|
|
93
|
-
}, T = /* @__PURE__ */ t((e, n) => e ? {
|
|
94
|
-
color: e,
|
|
95
|
-
...n
|
|
96
|
-
} : n, "mergeOkButtonProps"), ue = /* @__PURE__ */ t(() => {
|
|
97
|
-
const e = M(), { t: n, i18n: o } = k("owp"), r = /* @__PURE__ */ t(({
|
|
98
|
-
primaryKey: s,
|
|
99
|
-
fallbackKey: u,
|
|
100
|
-
defaultValue: a
|
|
101
|
-
}) => n(o.exists(s) ? s : u, { defaultValue: a }), "translateConfirmText"), c = /* @__PURE__ */ t((s) => e.open(F, s), "confirmBase");
|
|
102
|
-
return {
|
|
103
|
-
confirm: c,
|
|
104
|
-
confirmInfo: /* @__PURE__ */ t(async ({ title: s, okText: u, severity: a } = {}) => c({
|
|
105
|
-
title: s ?? r(i.infoTitle),
|
|
106
|
-
okText: u ?? r(i.infoOk),
|
|
107
|
-
severity: a ?? "primary",
|
|
108
|
-
useInfo: !0
|
|
109
|
-
}), "confirmInfo"),
|
|
110
|
-
confirmSave: /* @__PURE__ */ t(async ({
|
|
111
|
-
title: s,
|
|
112
|
-
okText: u,
|
|
113
|
-
cancelText: a,
|
|
114
|
-
okButtonProps: l
|
|
115
|
-
} = {}) => c({
|
|
116
|
-
title: s ?? r(i.saveTitle),
|
|
117
|
-
okText: u ?? r(i.saveOk),
|
|
118
|
-
cancelText: a,
|
|
119
|
-
okButtonProps: T("secondary", l)
|
|
120
|
-
}), "confirmSave"),
|
|
121
|
-
confirmUpdate: /* @__PURE__ */ t(async ({
|
|
122
|
-
title: s,
|
|
123
|
-
okText: u,
|
|
124
|
-
cancelText: a,
|
|
125
|
-
okButtonProps: l
|
|
126
|
-
} = {}) => c({
|
|
127
|
-
title: s ?? r(i.updateTitle),
|
|
128
|
-
okText: u ?? r(i.updateOk),
|
|
129
|
-
cancelText: a,
|
|
130
|
-
okButtonProps: T("secondary", l)
|
|
131
|
-
}), "confirmUpdate"),
|
|
132
|
-
confirmDelete: /* @__PURE__ */ t(async ({
|
|
133
|
-
title: s,
|
|
134
|
-
okText: u,
|
|
135
|
-
cancelText: a,
|
|
136
|
-
okButtonProps: l
|
|
137
|
-
} = {}) => c({
|
|
138
|
-
title: s ?? r(i.deleteTitle),
|
|
139
|
-
okText: u ?? r(i.deleteOk),
|
|
140
|
-
cancelText: a,
|
|
141
|
-
okButtonProps: T("error", l)
|
|
142
|
-
}), "confirmDelete")
|
|
143
|
-
};
|
|
144
|
-
}, "useConfirm"), F = /* @__PURE__ */ t(({ payload: e, open: n, onClose: o }) => {
|
|
145
|
-
const { title: r, okButtonProps: c, cancelButtonProps: s, severity: u, useInfo: a } = e, { t: l, i18n: O } = k("owp"), g = (e == null ? void 0 : e.okText) ?? l(O.exists(i.infoOk.primaryKey) ? "button.ok" : "Button.확인", {
|
|
146
|
-
defaultValue: i.infoOk.defaultValue
|
|
147
|
-
}), h = (e == null ? void 0 : e.cancelText) ?? l(
|
|
148
|
-
O.exists(i.cancel.primaryKey) ? i.cancel.primaryKey : i.cancel.fallbackKey,
|
|
149
|
-
{ defaultValue: i.cancel.defaultValue }
|
|
150
|
-
);
|
|
151
|
-
return /* @__PURE__ */ v(R, { fullWidth: !0, maxWidth: "xs", open: n, onClose: /* @__PURE__ */ t(() => o(!1), "onClose"), children: [
|
|
152
|
-
/* @__PURE__ */ y(G, { children: /* @__PURE__ */ y(I, { className: "mb-12", variant: "h6", children: r }) }),
|
|
153
|
-
/* @__PURE__ */ v(N, { children: [
|
|
154
|
-
!a && /* @__PURE__ */ y(K, { ...s, variant: "outlined", onClick: /* @__PURE__ */ t(() => o(!1), "onClick"), children: h }),
|
|
155
|
-
/* @__PURE__ */ y(
|
|
156
|
-
K,
|
|
157
|
-
{
|
|
158
|
-
color: u || "primary",
|
|
159
|
-
variant: "contained",
|
|
160
|
-
...c,
|
|
161
|
-
onClick: /* @__PURE__ */ t(() => o(!0), "onClick"),
|
|
162
|
-
children: g
|
|
163
|
-
}
|
|
164
|
-
)
|
|
165
|
-
] })
|
|
166
|
-
] });
|
|
167
|
-
}, "ConfirmDialog"), q = /* @__PURE__ */ t((e) => {
|
|
168
|
-
if (!e.includes("."))
|
|
169
|
-
return;
|
|
170
|
-
const o = z(e, ".").lastIndexOf(".");
|
|
171
|
-
return o < 0 ? e : e.slice(o + 1);
|
|
172
|
-
}, "getDefaultValueFromKey"), ae = /* @__PURE__ */ t(() => {
|
|
173
|
-
const { t: e, ...n } = k("owp");
|
|
174
|
-
return { t: /* @__PURE__ */ t((...r) => {
|
|
175
|
-
const [c, s] = r, u = U(s) ? s : void 0, a = !!u, l = a && Object.prototype.hasOwnProperty.call(u, "defaultValue");
|
|
176
|
-
if ((s == null || a) && !l && typeof c == "string") {
|
|
177
|
-
const g = q(c);
|
|
178
|
-
if (g) {
|
|
179
|
-
const h = a ? { ...u, defaultValue: g } : { defaultValue: g };
|
|
180
|
-
return e(c, h, ...r.slice(2));
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
return e(...r);
|
|
184
|
-
}, "t"), ...n };
|
|
185
|
-
}, "useOwpTranslation");
|
|
186
|
-
function ie(e, n) {
|
|
187
|
-
const o = C(e);
|
|
188
|
-
x(() => {
|
|
189
|
-
o.current = e;
|
|
190
|
-
}, [e]), x(() => {
|
|
191
|
-
let r;
|
|
192
|
-
return n !== null && e && typeof e == "function" && (r = setTimeout(o.current, n)), () => {
|
|
193
|
-
r && clearTimeout(r);
|
|
194
|
-
};
|
|
195
|
-
}, [e, n]);
|
|
196
|
-
}
|
|
197
|
-
t(ie, "useTimeout");
|
|
198
|
-
const S = p(f.commonCodeList, void 0), ce = /* @__PURE__ */ t(() => m(S), "useGetCommonCodeList"), le = /* @__PURE__ */ t(() => d(S), "useSetCommonCodeList"), w = p(f.currentLanguage, {
|
|
199
|
-
id: "kr",
|
|
200
|
-
title: "한국어",
|
|
201
|
-
flag: "KR"
|
|
202
|
-
}), fe = /* @__PURE__ */ t(() => {
|
|
203
|
-
const { t: e } = k("owp");
|
|
204
|
-
return [
|
|
205
|
-
{ id: "kr", title: e("Common.한국어", { defaultValue: "한국어" }), flag: "KR" },
|
|
206
|
-
{
|
|
207
|
-
id: "en",
|
|
208
|
-
title: e("Common.English", { defaultValue: "English" }),
|
|
209
|
-
flag: "EN"
|
|
210
|
-
},
|
|
211
|
-
{ id: "lc", title: e("Common.Etc", { defaultValue: "Etc" }), flag: "LC" }
|
|
212
|
-
];
|
|
213
|
-
}, "useGetLanguageList"), me = /* @__PURE__ */ t(() => m(w), "useGetCurrentLanguage"), de = /* @__PURE__ */ t(() => d(w), "useSetCurrentLanguage"), V = p(
|
|
214
|
-
f.currentLogoSrc,
|
|
215
|
-
"assets/images/logo/daedong-door-logo-b.png"
|
|
216
|
-
), pe = /* @__PURE__ */ t(() => m(V), "useGetCurrentLogoSrc"), ge = /* @__PURE__ */ t(() => d(V), "useSetCurrentLogoSrc"), _ = p(
|
|
217
|
-
f.currentUser,
|
|
218
|
-
void 0
|
|
219
|
-
), ye = /* @__PURE__ */ t(() => m(_), "useGetCurrentUser"), ke = /* @__PURE__ */ t(() => d(_), "useSetCurrentUser"), L = p(f.navigationList, void 0), Oe = /* @__PURE__ */ t(() => m(L), "useGetNavigationList"), he = /* @__PURE__ */ t(() => d(L), "useSetNavigationList"), A = p(f.currentShortcuts, []), Te = /* @__PURE__ */ t(() => m(A), "useGetShortcuts"), ve = /* @__PURE__ */ t(() => d(A), "useSetShortcuts");
|
|
220
|
-
export {
|
|
221
|
-
re as O,
|
|
222
|
-
b as a,
|
|
223
|
-
ce as b,
|
|
224
|
-
le as c,
|
|
225
|
-
ue as d,
|
|
226
|
-
fe as e,
|
|
227
|
-
me as f,
|
|
228
|
-
de as g,
|
|
229
|
-
pe as h,
|
|
230
|
-
ge as i,
|
|
231
|
-
ye as j,
|
|
232
|
-
ke as k,
|
|
233
|
-
Oe as l,
|
|
234
|
-
he as m,
|
|
235
|
-
ae as n,
|
|
236
|
-
Te as o,
|
|
237
|
-
ve as p,
|
|
238
|
-
ie as q,
|
|
239
|
-
se as u
|
|
240
|
-
};
|
|
241
|
-
//# sourceMappingURL=useShortcuts-CCf98L8m.js.map
|