@owp/core 1.27.0 → 1.29.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.d.ts +2 -0
- package/constants.d.ts +2 -0
- package/context.d.ts +2 -0
- package/dist/{Close-DA97hwNx.js → Close-Cm04EulE.js} +331 -341
- package/dist/Close-Cm04EulE.js.map +1 -0
- package/dist/OwpStoreProvider-CFq963Pl.js +30 -0
- package/dist/OwpStoreProvider-CFq963Pl.js.map +1 -0
- package/dist/OwpUtils-9lHSCdan.js.map +1 -1
- package/dist/{QuickPanel-EyvjMTxX.js → QuickPanel-DlrhsNXW.js} +2 -2
- package/dist/{QuickPanel-EyvjMTxX.js.map → QuickPanel-DlrhsNXW.js.map} +1 -1
- package/dist/constants.js +17 -18
- package/dist/constants.js.map +1 -1
- package/dist/context.js +24 -22
- package/dist/context.js.map +1 -1
- package/dist/hooks.js +97 -64
- package/dist/hooks.js.map +1 -1
- package/dist/{index-CdxKoZlQ.js → index-Dn7pPU3W.js} +12546 -13902
- package/dist/index-Dn7pPU3W.js.map +1 -0
- package/dist/index.js +78 -117
- package/dist/{lazyLoadedSlices-Bjy1crVY.js → lazyLoadedSlices-BYAl2fil.js} +710 -718
- package/dist/lazyLoadedSlices-BYAl2fil.js.map +1 -0
- package/dist/owp-app.css +1 -1
- package/dist/store.js +38 -3
- package/dist/store.js.map +1 -1
- package/dist/{toUpper-CilZrxEa.js → toUpper-K8I4frC5.js} +2 -2
- package/dist/{toUpper-CilZrxEa.js.map → toUpper-K8I4frC5.js.map} +1 -1
- package/dist/{treeGrid-CjB04cBq.js → treeGrid-DRAoPLXh.js} +11 -11
- package/dist/{treeGrid-CjB04cBq.js.map → treeGrid-DRAoPLXh.js.map} +1 -1
- package/dist/{treeGridUtil-_FDvRzzt.js → treeGridUtil-C46Qi5LG.js} +2 -2
- package/dist/{treeGridUtil-_FDvRzzt.js.map → treeGridUtil-C46Qi5LG.js.map} +1 -1
- package/dist/types/components/OwpCommonDialog/OwpCommonDialog.d.ts +1 -26
- package/dist/types/components/OwpDialog/OwpDialog.d.ts +32 -6
- package/dist/types/components/OwpDialog/index.d.ts +1 -4
- package/dist/types/components/OwpErrorBoundary/OwpErrorBoundary.d.ts +1 -1
- package/dist/types/components/OwpLanguageSwitcherSelect/index.d.ts +1 -0
- package/dist/types/components/OwpLayout/OwpLayout.d.ts +1 -1
- package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +7 -3
- package/dist/types/components/OwpMrtTable/OwpMrtTableTopToolbar.d.ts +6 -0
- package/dist/types/components/OwpNavLinkAdapter/OwpNavLinkAdapter.d.ts +16 -0
- package/dist/types/components/OwpNavLinkAdapter/index.d.ts +2 -0
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalGroup.d.ts +1 -2
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalItem.d.ts +1 -2
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalLink.d.ts +1 -2
- package/dist/types/components/{shared-components/PageBreadcrumb.d.ts → OwpPageBreadcrumb/OwpPageBreadcrumb.d.ts} +1 -1
- package/dist/types/components/OwpPageBreadcrumb/index.d.ts +2 -0
- package/dist/types/components/OwpTable/OwpTable.d.ts +1 -1
- package/dist/types/components/{shared-components/tabs → OwpTabs}/OwpTab.d.ts +1 -1
- package/dist/types/components/{shared-components/tabs → OwpTabs}/OwpTabs.d.ts +1 -1
- package/dist/types/components/OwpTabs/index.d.ts +2 -0
- package/dist/types/components/OwpThemeSelector/SchemePreview.d.ts +1 -1
- package/dist/types/components/OwpThemeSelector/ThemePreview.d.ts +1 -1
- package/dist/types/components/OwpTreeGrid/OwpTreeGridToolbar.d.ts +1 -1
- package/dist/types/components/layouts/shared-components/navigation/store/navigationSlice.d.ts +9 -9
- package/dist/types/components/layouts/themeLayoutConfigs.d.ts +1 -1
- package/dist/types/context/OwpAppProvider.d.ts +1 -1
- package/dist/types/context/OwpCoreProvider.d.ts +1 -1
- package/dist/types/{store → context}/OwpStoreProvider.d.ts +1 -1
- package/dist/types/context/index.d.ts +1 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useAccessTokenGuard.d.ts +12 -0
- package/dist/types/hooks/useStorage.d.ts +10 -1
- package/dist/types/index.d.ts +4 -13
- package/dist/types/store/generateReducersFromSlices.d.ts +4 -1
- package/dist/types/store/hooks.d.ts +3 -0
- package/dist/types/store/index.d.ts +5 -1
- package/dist/types/store/lazyLoadedSlices.d.ts +3 -0
- package/dist/types/store/middleware.d.ts +3 -0
- package/dist/types/{components/OwpSettings → store}/owpSettingsSlice.d.ts +1 -1
- package/dist/types/store/store.d.ts +3 -0
- package/dist/types/store/withSlices.d.ts +2 -2
- package/dist/types/{components/OwpSettings/OwpSettings.d.ts → types/OwpSettingsTypes.d.ts} +0 -12
- package/dist/types/utils/common/OwpUtils.d.ts +1 -1
- package/dist/types/utils/createDateRangeSearchParams.d.ts +16 -0
- package/dist/types/utils/fetchFile.d.ts +12 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/sanitizeAuthInputValue.d.ts +10 -0
- package/dist/useOwpTranslation-CMrtqKkT.js +190 -0
- package/dist/useOwpTranslation-CMrtqKkT.js.map +1 -0
- package/dist/useStorage-BA0D8KA7.js +67 -0
- package/dist/useStorage-BA0D8KA7.js.map +1 -0
- package/dist/{useTreeGridExcelExport-BGh2y8Cg.js → useTreeGridExcelExport-DLMecvHS.js} +62 -71
- package/dist/useTreeGridExcelExport-DLMecvHS.js.map +1 -0
- package/dist/utils.js +2066 -2026
- package/dist/utils.js.map +1 -1
- package/hooks.d.ts +2 -0
- package/index.d.ts +3 -0
- package/package.json +5 -12
- package/store.d.ts +2 -0
- package/treegrid-global.d.ts +4904 -0
- package/utils.d.ts +2 -0
- package/dist/Close-DA97hwNx.js.map +0 -1
- package/dist/OwpStoreProvider-BKRp9Maw.js +0 -34
- package/dist/OwpStoreProvider-BKRp9Maw.js.map +0 -1
- package/dist/index-CdxKoZlQ.js.map +0 -1
- package/dist/language-CwsGUe4C.js +0 -5
- package/dist/language-CwsGUe4C.js.map +0 -1
- package/dist/lazyLoadedSlices-Bjy1crVY.js.map +0 -1
- package/dist/types/auth/authRoles.d.ts +0 -21
- package/dist/types/components/NavLinkAdapter/NavLinkAdapter.d.ts +0 -18
- package/dist/types/components/NavLinkAdapter/index.d.ts +0 -1
- package/dist/types/components/OwpDialog/owpDialogSlice.d.ts +0 -14
- package/dist/types/components/OwpMessage/OwpMessage.d.ts +0 -11
- package/dist/types/components/OwpMessage/index.d.ts +0 -4
- package/dist/types/components/OwpMessage/owpMessageSlice.d.ts +0 -14
- package/dist/types/components/OwpSettings/OwpLayoutConfig.d.ts +0 -16
- package/dist/types/components/OwpSettings/OwpLayoutConfigs.d.ts +0 -14
- package/dist/types/components/OwpSettings/index.d.ts +0 -1
- package/dist/types/components/OwpSettings/palette-generator/PalettePreview.d.ts +0 -14
- package/dist/types/components/OwpSettings/palette-generator/PaletteSelector.d.ts +0 -15
- package/dist/types/components/OwpSettings/palette-generator/SectionPreview.d.ts +0 -12
- package/dist/types/components/layouts/shared-components/AdjustFontSize.d.ts +0 -8
- package/dist/types/components/layouts/shared-components/OwpSettingsViewerDialog.d.ts +0 -8
- package/dist/types/components/layouts/shared-components/configurator/Configurator.d.ts +0 -9
- package/dist/types/components/layouts/shared-components/configurator/SettingsPanel.d.ts +0 -12
- package/dist/types/components/layouts/shared-components/configurator/ThemesPanel.d.ts +0 -12
- package/dist/types/components/shared-components/LightDarkModeToggle.d.ts +0 -8
- package/dist/types/components/shared-components/PageTitle.d.ts +0 -11
- package/dist/types/components/shared-components/data-table/DataTable.d.ts +0 -12
- package/dist/types/components/shared-components/data-table/DataTableTopToolbar.d.ts +0 -6
- package/dist/types/components/shared-components/index.d.ts +0 -7
- package/dist/types/components/withRouter/index.d.ts +0 -1
- package/dist/types/components/withRouter/withRouter.d.ts +0 -14
- package/dist/types/store/apiService.d.ts +0 -3
- package/dist/types/store/withReducer.d.ts +0 -5
- package/dist/useOwpTranslation-VarZsCQ4.js +0 -233
- package/dist/useOwpTranslation-VarZsCQ4.js.map +0 -1
- package/dist/useTreeGridExcelExport-BGh2y8Cg.js.map +0 -1
- /package/dist/types/components/{layouts/shared-components → OwpLanguageSwitcherSelect}/OwpLanguageSwitcherSelect.d.ts +0 -0
- /package/dist/types/components/{shared-components/data-table → OwpMrtTable}/utils/parseFromValuesOrFunc.d.ts +0 -0
- /package/dist/types/{components/OwpSettings → types}/ThemeFormConfigTypes.d.ts +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { NavLinkProps } from 'react-router-dom';
|
|
3
|
+
export type OwpNavLinkAdapterProps = NavLinkProps & {
|
|
4
|
+
activeClassName?: string;
|
|
5
|
+
activeStyle?: CSSProperties;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* OwpNavLinkAdapter 네비게이션 링크 어댑터 컴포넌트
|
|
10
|
+
*/
|
|
11
|
+
declare const OwpNavLinkAdapter: import("react").ForwardRefExoticComponent<NavLinkProps & {
|
|
12
|
+
activeClassName?: string;
|
|
13
|
+
activeStyle?: CSSProperties;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
16
|
+
export default OwpNavLinkAdapter;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { WithRouterProps } from '@/components/withRouter/withRouter';
|
|
2
1
|
import { OwpNavItemComponentProps } from '../../OwpNavItem';
|
|
3
|
-
type OwpNavHorizontalGroupProps = OwpNavItemComponentProps
|
|
2
|
+
type OwpNavHorizontalGroupProps = OwpNavItemComponentProps;
|
|
4
3
|
/**
|
|
5
4
|
* OwpNavHorizontalGroup.
|
|
6
5
|
* Represents a horizontal group component used in the Owp navigation navigation list.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { WithRouterProps } from '@/components/withRouter/withRouter';
|
|
2
1
|
import { OwpNavItemComponentProps } from '../../OwpNavItem';
|
|
3
|
-
type OwpNavHorizontalItemProps = OwpNavItemComponentProps
|
|
2
|
+
type OwpNavHorizontalItemProps = OwpNavItemComponentProps;
|
|
4
3
|
/**
|
|
5
4
|
* OwpNavHorizontalItem is a component responsible for rendering the navigation element in the horizontal menu in the Owp theme.
|
|
6
5
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { WithRouterProps } from '@/components/withRouter/withRouter';
|
|
2
1
|
import { OwpNavItemComponentProps } from '../../OwpNavItem';
|
|
3
|
-
type OwpNavHorizontalLinkProps = OwpNavItemComponentProps
|
|
2
|
+
type OwpNavHorizontalLinkProps = OwpNavItemComponentProps;
|
|
4
3
|
declare function OwpNavHorizontalLink(props: OwpNavHorizontalLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
/**
|
|
6
5
|
* NavHorizontalLinkWithMemo 메모이징 컴포넌트
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BreadcrumbsProps } from '@mui/material/Breadcrumbs';
|
|
2
|
-
type PageBreadcrumbProps = BreadcrumbsProps & {
|
|
2
|
+
export type PageBreadcrumbProps = BreadcrumbsProps & {
|
|
3
3
|
className?: string;
|
|
4
4
|
};
|
|
5
5
|
declare function PageBreadcrumb(props: PageBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -31,7 +31,7 @@ export declare function OwpTableTotalCount({ totalCount }: {
|
|
|
31
31
|
export declare const StyledTable: ({ canBodyFullHeight, canUseTreeGridStyle, children, className, containerProps, footerSlot, tableLayout, ...tableProps }: StyledTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export declare const StyledTableRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
|
|
33
33
|
ref?: import("react").Ref<HTMLTableRowElement>;
|
|
34
|
-
}, "
|
|
34
|
+
}, "className" | "style" | "classes" | "children" | "sx" | "selected" | "hover"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
35
35
|
interface OwpTableProps<T> extends Omit<StyledTableProps, 'children'> {
|
|
36
36
|
canTotalCountRow?: boolean;
|
|
37
37
|
headers: OwpTableHeaderRow | OwpTableHeaderRow[];
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
declare const OwpTab: import("@emotion/styled").StyledComponent<import("@mui/material").TabOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
5
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
6
|
-
}, "
|
|
6
|
+
}, "action" | "icon" | "className" | "style" | "classes" | "children" | "sx" | "label" | "tabIndex" | "value" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "iconPosition" | "wrapped"> & {
|
|
7
7
|
component?: React.ElementType;
|
|
8
8
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
9
9
|
export { OwpTab };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
declare const OwpTabs: import("@emotion/styled").StyledComponent<import("@mui/material").TabsOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
5
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
6
|
-
}, "
|
|
6
|
+
}, "action" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "aria-label" | "aria-labelledby" | "onChange" | "slots" | "slotProps" | "value" | "orientation" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & {
|
|
7
7
|
component?: React.ElementType;
|
|
8
8
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
9
9
|
export { OwpTabs };
|
|
@@ -16,5 +16,5 @@ interface OwpTreeGridToolbarProps {
|
|
|
16
16
|
* @param canVisibleHeaderFilter canVisibleHeaderFilter 값
|
|
17
17
|
* @param options options 값
|
|
18
18
|
*/
|
|
19
|
-
declare const OwpTreeGridToolbar: ({ gridId, canVisibleHeaderFilter, options, ...formGroupProps }: OwpTreeGridToolbarProps & FormGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare const OwpTreeGridToolbar: ({ gridId, canVisibleHeaderFilter, options, className, ...formGroupProps }: OwpTreeGridToolbarProps & FormGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export { OwpTreeGridToolbar };
|
package/dist/types/components/layouts/shared-components/navigation/store/navigationSlice.d.ts
CHANGED
|
@@ -28,21 +28,21 @@ export declare const selectNavigationAll: (state: {
|
|
|
28
28
|
}) => string[], selectNavigationItemById: (state: {
|
|
29
29
|
[x: string]: any;
|
|
30
30
|
}, id: string) => {
|
|
31
|
-
|
|
32
|
-
auth?: string[] | string;
|
|
31
|
+
icon?: string;
|
|
33
32
|
translate?: string;
|
|
34
|
-
id: string;
|
|
35
33
|
title?: string;
|
|
36
|
-
|
|
37
|
-
icon?: string;
|
|
38
|
-
iconClass?: string;
|
|
39
|
-
target?: string;
|
|
40
|
-
type?: string;
|
|
34
|
+
id: string;
|
|
41
35
|
disabled?: boolean;
|
|
36
|
+
type?: string;
|
|
37
|
+
target?: string;
|
|
42
38
|
active?: boolean;
|
|
43
|
-
exact?: boolean;
|
|
44
39
|
end?: boolean;
|
|
40
|
+
url?: string;
|
|
45
41
|
badge?: import("../../../../..").OwpNavBadgeType;
|
|
42
|
+
subtitle?: string;
|
|
43
|
+
auth?: string[] | string;
|
|
44
|
+
iconClass?: string;
|
|
45
|
+
exact?: boolean;
|
|
46
46
|
hasPermission?: boolean;
|
|
47
47
|
children?: string[];
|
|
48
48
|
order: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemeFormConfigTypes } from '@/
|
|
1
|
+
import { ThemeFormConfigTypes } from '@/types/ThemeFormConfigTypes';
|
|
2
2
|
import { Layout1ConfigDefaultsType } from './layout1/Layout1Config';
|
|
3
3
|
import { Layout2ConfigDefaultsType } from './layout2/Layout2Config';
|
|
4
4
|
import { Layout3ConfigDefaultsType } from './layout3/Layout3Config';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { StyledEngineProvider } from '@mui/material/styles';
|
|
2
2
|
import { QueryClient, QueryClientConfig } from '@tanstack/react-query';
|
|
3
3
|
import { ComponentProps } from 'react';
|
|
4
|
-
import { OwpStoreProviderProps } from '../store/OwpStoreProvider';
|
|
5
4
|
import { OwpAppProviderProps } from './OwpAppProvider';
|
|
5
|
+
import { OwpStoreProviderProps } from './OwpStoreProvider';
|
|
6
6
|
type OwpStyledEngineProviderProps = Omit<ComponentProps<typeof StyledEngineProvider>, 'children'>;
|
|
7
7
|
export interface OwpCoreProviderProps extends OwpAppProviderProps {
|
|
8
8
|
queryClient?: QueryClient;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface UseAccessTokenGuardOptions {
|
|
2
|
+
loginPath?: string;
|
|
3
|
+
isEnabled?: boolean;
|
|
4
|
+
snackbarMessageKey?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* 액세스 토큰 기반 로그인 가드
|
|
8
|
+
* @param loginPath 로그인 라우트 경로
|
|
9
|
+
* @param isEnabled 가드 활성화 여부
|
|
10
|
+
* @param snackbarMessageKey 로그인 필요 안내 메시지 키
|
|
11
|
+
*/
|
|
12
|
+
export declare const useAccessTokenGuard: ({ loginPath, isEnabled, snackbarMessageKey, }?: UseAccessTokenGuardOptions) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type StorageEnv = {
|
|
1
|
+
export type StorageEnv = {
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
};
|
|
4
4
|
type StoredCurrentUser = {
|
|
@@ -12,6 +12,15 @@ type StoredCurrentUser = {
|
|
|
12
12
|
photoURL: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* 앱 환경값 저장
|
|
17
|
+
* @param env 저장할 환경값
|
|
18
|
+
*/
|
|
19
|
+
export declare const setEnv: (env: StorageEnv) => void;
|
|
20
|
+
/**
|
|
21
|
+
* 앱 환경값 조회
|
|
22
|
+
*/
|
|
23
|
+
export declare const getEnv: () => StorageEnv;
|
|
15
24
|
/**
|
|
16
25
|
* 스토리지 유틸 훅
|
|
17
26
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
export * from './auth/authRoles';
|
|
2
1
|
export { DialogsProvider } from '@toolpad/core/useDialogs';
|
|
3
2
|
export * from './components/layouts/themeLayouts';
|
|
4
|
-
export * from './components/
|
|
5
|
-
export * from './components/layouts/shared-components/OwpSettingsViewerDialog';
|
|
3
|
+
export * from './components/OwpLanguageSwitcherSelect';
|
|
6
4
|
export * from './components/OwpAutoLogoutDialog/OwpAutoLogoutDialog';
|
|
7
5
|
export * from './components/OwpBarcodeInput/OwpBarcodeInputField';
|
|
8
|
-
export * from './components/OwpCommonDialog';
|
|
9
|
-
export * from './components/OwpCommonCode';
|
|
10
6
|
export * from './components/OwpDialog';
|
|
7
|
+
export * from './components/OwpCommonCode';
|
|
11
8
|
export * from './components/OwpExportExcelButton/OwpExportExcelButton';
|
|
12
9
|
export { OwpErrorBoundary } from './components/OwpErrorBoundary';
|
|
13
10
|
export { OwpEventEmitter } from './components/OwpEventEmitter';
|
|
14
11
|
export * from './components/OwpFileUploadButton/OwpFileUploadButton';
|
|
15
12
|
export * from './components/OwpLayout';
|
|
16
13
|
export * from './components/OwpLoading';
|
|
17
|
-
export * from './components/OwpMessage';
|
|
18
14
|
export * from './components/OwpMrtTable';
|
|
19
15
|
export * from './components/OwpMoreActionsButton/OwpMoreActionsButton';
|
|
20
16
|
export * from './components/OwpNavigation';
|
|
@@ -43,6 +39,7 @@ export * from './components/OwpPageCarded';
|
|
|
43
39
|
export * from './components/OwpPageCarded/OwpPageCardedHeader';
|
|
44
40
|
export * from './components/OwpPageCarded/OwpPageCardedSidebar';
|
|
45
41
|
export * from './components/OwpPageCarded/OwpPageCardedSidebarContent';
|
|
42
|
+
export * from './components/OwpPageBreadcrumb';
|
|
46
43
|
export * from './components/OwpPageContent';
|
|
47
44
|
export * from './components/OwpPageLockLoading';
|
|
48
45
|
export * from './components/OwpPageTitle';
|
|
@@ -55,11 +52,6 @@ export * from './components/OwpScrollbars';
|
|
|
55
52
|
export * from './components/OwpSearch';
|
|
56
53
|
export * from './components/OwpSearchFilter';
|
|
57
54
|
export * from './components/OwpSection';
|
|
58
|
-
export * from './components/OwpSettings';
|
|
59
|
-
export * from './components/OwpSettings/OwpLayoutConfig';
|
|
60
|
-
export * from './components/OwpSettings/OwpLayoutConfigs';
|
|
61
|
-
export * from './components/OwpSettings/owpSettingsSlice';
|
|
62
|
-
export * from './components/OwpSettings/ThemeFormConfigTypes';
|
|
63
55
|
export * from './components/OwpShortcuts';
|
|
64
56
|
export * from './components/OwpSidePanel';
|
|
65
57
|
export * from './components/OwpSplashScreen';
|
|
@@ -74,10 +66,9 @@ export * from './components/OwpTheme';
|
|
|
74
66
|
export * from './components/OwpThemeSelector';
|
|
75
67
|
export * from './components/OwpThemeSelector/SchemePreview';
|
|
76
68
|
export * from './components/OwpThemeSelector/ThemePreview';
|
|
69
|
+
export * from './components/OwpTabs';
|
|
77
70
|
export * from './components/OwpTreeGridExcelButton';
|
|
78
71
|
export * from './components/OwpTreeGrid';
|
|
79
72
|
export * from './components/OwpTreeGrid/OwpTreeGridToolbar';
|
|
80
73
|
export * from './components/OwpZoomImageSlider/OwpZoomImageSlider';
|
|
81
74
|
export * from './components/OwpYesNoSelector';
|
|
82
|
-
export * from './components/shared-components/tabs/OwpTab';
|
|
83
|
-
export * from './components/shared-components/tabs/OwpTabs';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { SlicesType } from '@/store/withSlices';
|
|
2
1
|
import { ReducersMapObject } from '@reduxjs/toolkit';
|
|
2
|
+
import type { SlicesType } from './withSlices';
|
|
3
|
+
/**
|
|
4
|
+
* Internal grouped reducer factory
|
|
5
|
+
*/
|
|
3
6
|
export declare const generateReducersFromSlices: <T = unknown>(slices: SlicesType) => ReducersMapObject<T>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { AppDispatch, AppStore, RootState } from './store';
|
|
2
|
+
/**
|
|
3
|
+
* Internal typed Redux hooks
|
|
4
|
+
*/
|
|
2
5
|
export declare const useAppDispatch: () => AppDispatch;
|
|
3
6
|
export declare const useAppSelector: <T>(selector: (state: RootState) => T) => T;
|
|
4
7
|
export declare const useAppStore: () => AppStore;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Public store entry exports
|
|
3
|
+
*/
|
|
4
|
+
export { OwpStoreProvider, type OwpStoreProviderProps } from '../context/OwpStoreProvider';
|
|
2
5
|
export { createAppSelector, makeStore } from './store';
|
|
3
6
|
export type { AppAction, AppDispatch, AppStore, AppThunk, RootState } from './store';
|
|
7
|
+
export * from './owpSettingsSlice';
|
|
@@ -3,4 +3,7 @@ import '@/components/layouts/shared-components/navigation/store/navigationSlice'
|
|
|
3
3
|
import { combineSlices } from '@reduxjs/toolkit';
|
|
4
4
|
export interface LazyLoadedSlices {
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* Internal root reducer registry
|
|
8
|
+
*/
|
|
6
9
|
export declare const rootReducer: ReturnType<typeof combineSlices>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { AppDispatch, RootState } from './store';
|
|
2
|
+
/**
|
|
3
|
+
* Internal dynamic middleware instance
|
|
4
|
+
*/
|
|
2
5
|
declare const dynamicInstance: import("@reduxjs/toolkit").DynamicMiddlewareInstance<any, import("@reduxjs/toolkit").Dispatch<import("@reduxjs/toolkit").UnknownAction>> & {
|
|
3
6
|
createDispatchWithMiddlewareHookFactory: (context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction>>) => import("@reduxjs/toolkit/react").CreateDispatchWithMiddlewareHook<any, import("@reduxjs/toolkit").Dispatch<import("@reduxjs/toolkit").UnknownAction>>;
|
|
4
7
|
createDispatchWithMiddlewareHook: import("@reduxjs/toolkit/react").CreateDispatchWithMiddlewareHook<any, import("@reduxjs/toolkit").Dispatch<import("@reduxjs/toolkit").UnknownAction>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OwpSettingsConfigType, OwpThemesType } from '@/
|
|
1
|
+
import type { OwpSettingsConfigType, OwpThemesType } from '@/types/OwpSettingsTypes';
|
|
2
2
|
import { createSelector, PayloadAction } from '@reduxjs/toolkit';
|
|
3
3
|
import { PartialDeep } from 'type-fest';
|
|
4
4
|
/**
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Action, ThunkAction, configureStore, createSelectorCreator } from '@reduxjs/toolkit';
|
|
2
2
|
import { rootReducer } from './lazyLoadedSlices';
|
|
3
|
+
/**
|
|
4
|
+
* Public store contract backing file
|
|
5
|
+
*/
|
|
3
6
|
export type RootState = ReturnType<typeof rootReducer>;
|
|
4
7
|
export declare const makeStore: (preloadedState?: Partial<RootState>) => ReturnType<typeof configureStore<RootState>>;
|
|
5
8
|
export declare const store: ReturnType<typeof makeStore>;
|
|
@@ -2,10 +2,10 @@ import { Slice } from '@reduxjs/toolkit';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export type SlicesType = Slice[];
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Internal slice injection helper
|
|
6
6
|
*/
|
|
7
7
|
export declare const injectReducersGroupedByCommonKey: (slices: SlicesType) => Promise<boolean>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Internal slice injection HOC
|
|
10
10
|
*/
|
|
11
11
|
export declare const withSlices: <P extends object>(slices: SlicesType) => (WrappedComponent: React.FC<P>) => (props: P) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,15 +23,3 @@ export type OwpSettingsConfigType = {
|
|
|
23
23
|
defaultAuth?: string[];
|
|
24
24
|
loginRedirectUrl: string;
|
|
25
25
|
};
|
|
26
|
-
/**
|
|
27
|
-
* The OwpSettings component is responsible for rendering the settings form for the Owp React application.
|
|
28
|
-
* It uses the useForm hook from the react-hook-form library to handle form state and validation.
|
|
29
|
-
* It also uses various MUI components to render the form fields and sections.
|
|
30
|
-
* The component is memoized to prevent unnecessary re-renders.
|
|
31
|
-
*/
|
|
32
|
-
declare function OwpSettings(): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
/**
|
|
34
|
-
* OwpSettingsMemo 메모이징 컴포넌트
|
|
35
|
-
*/
|
|
36
|
-
declare const OwpSettingsMemo: import("react").MemoExoticComponent<typeof OwpSettings>;
|
|
37
|
-
export { OwpSettingsMemo as OwpSettings };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OwpEventEmitter } from '@/components/OwpEventEmitter';
|
|
2
|
-
import { OwpSettingsConfigType } from '@/
|
|
2
|
+
import type { OwpSettingsConfigType } from '@/types/OwpSettingsTypes';
|
|
3
3
|
import { DeepPartial } from 'react-hook-form';
|
|
4
4
|
import { RouteObject } from 'react-router-dom';
|
|
5
5
|
import { PartialDeep } from 'type-fest';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface DateRangeSearchFieldKeys {
|
|
2
|
+
fromDateKey?: string;
|
|
3
|
+
toDateKey?: string;
|
|
4
|
+
dateRangeKey?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* 날짜 범위 검색 파라미터 변환
|
|
8
|
+
* @param values 원본 값 객체
|
|
9
|
+
* @param searchFieldKeys 공통 검색 필드 키 목록
|
|
10
|
+
* @param mode query/form 변환 모드
|
|
11
|
+
* @param dateRangeSearchFieldKeys 날짜 범위 필드 키 매핑
|
|
12
|
+
*/
|
|
13
|
+
export declare const createDateRangeSearchParams: (values: Record<string, string | undefined>, searchFieldKeys: readonly string[], mode?: "query" | "form", dateRangeSearchFieldKeys?: DateRangeSearchFieldKeys) => {
|
|
14
|
+
[x: string]: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface FetchFileOptions {
|
|
2
|
+
useArrayBuffer?: boolean;
|
|
3
|
+
useBase64?: boolean;
|
|
4
|
+
endpointPath?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* 파일 다운로드 응답 조회
|
|
8
|
+
* @param seq 파일 시퀀스
|
|
9
|
+
* @param options 응답 포맷 옵션
|
|
10
|
+
*/
|
|
11
|
+
export declare const fetchFile: (seq?: string, options?: FetchFileOptions) => Promise<string | Blob | ArrayBuffer>;
|
|
12
|
+
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './barcodeUtil';
|
|
2
2
|
export * from './commonCodeUtils';
|
|
3
3
|
export * from './common';
|
|
4
|
+
export * from './createDateRangeSearchParams';
|
|
4
5
|
export * from './createJsonBody';
|
|
5
6
|
export * from './createJsonString';
|
|
6
7
|
export * from './excelUtil';
|
|
8
|
+
export * from './fetchFile';
|
|
7
9
|
export * from './formatDateToYmd';
|
|
8
10
|
export * from './formatNumber';
|
|
9
11
|
export * from './getDisplayValue';
|
|
@@ -12,6 +14,7 @@ export * from './getTrimmedValue';
|
|
|
12
14
|
export * from './isEnterKeyEvent';
|
|
13
15
|
export * from './qrCodeUtil';
|
|
14
16
|
export * from './rebuildValue';
|
|
17
|
+
export * from './sanitizeAuthInputValue';
|
|
15
18
|
export * from './treeGridExportExcelUtil';
|
|
16
19
|
export * from './treeGridUtil';
|
|
17
20
|
export * from './zipUtil';
|