@owp/core 1.26.0 → 1.28.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-DnXhM4Ms.js +918 -0
- package/dist/Close-DnXhM4Ms.js.map +1 -0
- package/dist/{OwpStoreProvider-CqHkIIUm.js → OwpStoreProvider-B7W25pkq.js} +13 -13
- package/dist/OwpStoreProvider-B7W25pkq.js.map +1 -0
- package/dist/{OwpUtils-DxEd-Pjo.js → OwpUtils-9lHSCdan.js} +10 -17
- package/dist/OwpUtils-9lHSCdan.js.map +1 -0
- package/dist/{QuickPanel-DNAisp_R.js → QuickPanel-BOgEYOAw.js} +2 -2
- package/dist/{QuickPanel-DNAisp_R.js.map → QuickPanel-BOgEYOAw.js.map} +1 -1
- package/dist/context.js +67 -22
- package/dist/context.js.map +1 -1
- package/dist/hooks.js +45 -42
- package/dist/hooks.js.map +1 -1
- package/dist/{index-fDrAKBzK.js → index-B8tZAW8i.js} +13558 -15484
- package/dist/index-B8tZAW8i.js.map +1 -0
- package/dist/index.js +120 -128
- package/dist/index.js.map +1 -1
- package/dist/{isTypedArray-DPyC49cI.js → isTypedArray-xp-fB7W4.js} +3 -3
- package/dist/{isTypedArray-DPyC49cI.js.map → isTypedArray-xp-fB7W4.js.map} +1 -1
- package/dist/{lazyLoadedSlices-CsgnywgU.js → lazyLoadedSlices-BAbcXcEU.js} +678 -701
- package/dist/lazyLoadedSlices-BAbcXcEU.js.map +1 -0
- package/dist/owp-app.css +1 -1
- package/dist/store.js +1 -1
- package/dist/{toUpper-BhzrnIm3.js → toUpper-CilZrxEa.js} +2 -2
- package/dist/{toUpper-BhzrnIm3.js.map → toUpper-CilZrxEa.js.map} +1 -1
- package/dist/{treeGridUtil-DaqTz5v3.js → treeGridUtil-_FDvRzzt.js} +2 -2
- package/dist/{treeGridUtil-DaqTz5v3.js.map → treeGridUtil-_FDvRzzt.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/{ErrorBoundary/ErrorBoundary.d.ts → OwpErrorBoundary/OwpErrorBoundary.d.ts} +5 -5
- package/dist/types/components/OwpErrorBoundary/index.d.ts +1 -0
- package/dist/types/components/OwpEventEmitter/OwpEventEmitter.d.ts +27 -0
- package/dist/types/components/OwpEventEmitter/index.d.ts +1 -0
- package/dist/types/components/OwpLanguageSwitcherSelect/index.d.ts +1 -0
- 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/OwpSettings/OwpLayoutConfig.d.ts +1 -1
- package/dist/types/components/OwpStyleProvider/OwpStyleProvider.d.ts +18 -0
- package/dist/types/components/OwpStyleProvider/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/OwpTreeGrid/OwpTreeGridToolbar.d.ts +1 -1
- package/dist/types/components/layouts/shared-components/navigation/store/navigationSlice.d.ts +9 -9
- package/dist/types/context/OwpAppProvider.d.ts +5 -3
- package/dist/types/context/OwpCoreProvider.d.ts +1 -1
- package/dist/types/{store → context}/OwpStoreProvider.d.ts +1 -1
- package/dist/types/context/OwpUiProvider.d.ts +17 -0
- package/dist/types/context/index.d.ts +2 -0
- package/dist/types/hooks/useStorage.d.ts +10 -1
- package/dist/types/index.d.ts +7 -17
- package/dist/types/store/apiService.d.ts +3 -0
- 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 +4 -1
- package/dist/types/store/lazyLoadedSlices.d.ts +3 -0
- package/dist/types/store/middleware.d.ts +3 -0
- package/dist/types/store/store.d.ts +3 -0
- package/dist/types/store/withSlices.d.ts +2 -2
- package/dist/types/utils/common/OwpUtils.d.ts +3 -4
- package/dist/types/utils/createDateRangeSearchParams.d.ts +16 -0
- package/dist/types/utils/fetchFile.d.ts +12 -0
- package/dist/types/utils/getTrimmedValue.d.ts +5 -0
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/sanitizeAuthInputValue.d.ts +10 -0
- package/dist/useOwpTranslation-BelpX-fd.js +174 -0
- package/dist/useOwpTranslation-BelpX-fd.js.map +1 -0
- package/dist/useStorage-BA0D8KA7.js +67 -0
- package/dist/useStorage-BA0D8KA7.js.map +1 -0
- package/dist/useTreeGridExcelExport-QNcWzx5v.js +195 -0
- package/dist/useTreeGridExcelExport-QNcWzx5v.js.map +1 -0
- package/dist/utils.js +2068 -2023
- package/dist/utils.js.map +1 -1
- package/hooks.d.ts +2 -0
- package/index.d.ts +3 -0
- package/package.json +4 -2
- package/store.d.ts +2 -0
- package/treegrid-global.d.ts +4904 -0
- package/utils.d.ts +2 -0
- package/dist/OwpAppProvider-F48yHfyI.js +0 -22
- package/dist/OwpAppProvider-F48yHfyI.js.map +0 -1
- package/dist/OwpStoreProvider-CqHkIIUm.js.map +0 -1
- package/dist/OwpUtils-DxEd-Pjo.js.map +0 -1
- package/dist/index-fDrAKBzK.js.map +0 -1
- package/dist/lazyLoadedSlices-CsgnywgU.js.map +0 -1
- package/dist/types/auth/authRoles.d.ts +0 -21
- package/dist/types/components/ErrorBoundary/index.d.ts +0 -1
- package/dist/types/components/EventEmitter/EventEmitter.d.ts +0 -34
- package/dist/types/components/EventEmitter/index.d.ts +0 -1
- package/dist/types/components/NavLinkAdapter/NavLinkAdapter.d.ts +0 -18
- package/dist/types/components/NavLinkAdapter/index.d.ts +0 -1
- package/dist/types/components/OwpButtonDelete/OwpButtonDelete.d.ts +0 -12
- package/dist/types/components/OwpButtonDelete/index.d.ts +0 -1
- package/dist/types/components/OwpButtonSave/OwpButtonSave.d.ts +0 -12
- package/dist/types/components/OwpButtonSave/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/OwpPageSimple/OwpPageSimple.d.ts +0 -55
- package/dist/types/components/OwpPageSimple/OwpPageSimpleHeader.d.ts +0 -14
- package/dist/types/components/OwpPageSimple/OwpPageSimpleSidebar.d.ts +0 -19
- package/dist/types/components/OwpPageSimple/OwpPageSimpleSidebarContent.d.ts +0 -13
- package/dist/types/components/OwpPageSimple/index.d.ts +0 -1
- package/dist/types/components/OwpTreeView/OwpSlotTreeView.d.ts +0 -27
- package/dist/types/components/OwpTreeView/index.d.ts +0 -1
- 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/components/withRouterAndRef/index.d.ts +0 -1
- package/dist/types/components/withRouterAndRef/withRouterAndRef.d.ts +0 -14
- package/dist/types/store/withReducer.d.ts +0 -5
- package/dist/useStorage-B4ZrPct1.js +0 -65
- package/dist/useStorage-B4ZrPct1.js.map +0 -1
- package/dist/useTreeGridExcelExport-BjyBdpz1.js +0 -360
- package/dist/useTreeGridExcelExport-BjyBdpz1.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
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
1
|
+
import { type MaterialReactTableProps, type MRT_RowData } from 'material-react-table';
|
|
2
|
+
type DataTableProps<TData extends MRT_RowData> = MaterialReactTableProps<TData> & {
|
|
3
|
+
canTotalCountRow?: boolean;
|
|
4
|
+
canUseTreeGridStyle?: boolean;
|
|
5
|
+
totalCount?: number;
|
|
6
|
+
};
|
|
3
7
|
export type OwpMrtTableProps<TData extends MRT_RowData> = DataTableProps<TData>;
|
|
4
8
|
/**
|
|
5
|
-
*
|
|
9
|
+
* MRT 기반 공통 테이블 컴포넌트
|
|
6
10
|
* @param props 컴포넌트 props
|
|
7
11
|
*/
|
|
8
12
|
declare const OwpMrtTable: <TData extends MRT_RowData>(props: OwpMrtTableProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MRT_RowData, MRT_TableInstance } from 'material-react-table';
|
|
2
|
+
interface OwpMrtTableTopToolbarProps<TData extends MRT_RowData> {
|
|
3
|
+
table: MRT_TableInstance<TData>;
|
|
4
|
+
}
|
|
5
|
+
declare function OwpMrtTableTopToolbar<TData extends MRT_RowData>({ table, }: OwpMrtTableTopToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default OwpMrtTableTopToolbar;
|
|
@@ -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;
|
|
@@ -12,5 +12,5 @@ type OwpSettingsControllerProps = {
|
|
|
12
12
|
* OwpLayoutConfig 컴포넌트
|
|
13
13
|
* @param props 컴포넌트 props
|
|
14
14
|
*/
|
|
15
|
-
declare function OwpLayoutConfig(props: OwpSettingsControllerProps):
|
|
15
|
+
declare function OwpLayoutConfig(props: OwpSettingsControllerProps): import("react/jsx-runtime").JSX.Element | "";
|
|
16
16
|
export { OwpLayoutConfig };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CacheProvider } from '@emotion/react';
|
|
2
|
+
import { Theme } from '@mui/material/styles/createTheme';
|
|
3
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
4
|
+
type OwpCacheProviderProps = Omit<ComponentProps<typeof CacheProvider>, 'children'>;
|
|
5
|
+
export interface OwpStyleProviderProps {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
theme: Theme;
|
|
8
|
+
root?: boolean;
|
|
9
|
+
cacheProviderProps?: OwpCacheProviderProps;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* CacheProvider, OwpTheme composition
|
|
13
|
+
* @param theme MUI theme 객체
|
|
14
|
+
* @param root 글로벌 스타일 적용 여부
|
|
15
|
+
* @param cacheProviderProps CacheProvider 옵션
|
|
16
|
+
*/
|
|
17
|
+
export declare function OwpStyleProvider({ children, theme, root, cacheProviderProps, }: OwpStyleProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -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
|
+
}, "style" | "hover" | "selected" | "children" | "className" | "classes" | "sx"> & 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
|
+
}, "disabled" | "value" | "style" | "action" | "children" | "className" | "classes" | "sx" | "label" | "tabIndex" | "icon" | "centerRipple" | "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
|
+
}, "onChange" | "value" | "style" | "action" | "children" | "className" | "classes" | "sx" | "variant" | "aria-label" | "aria-labelledby" | "orientation" | "slots" | "slotProps" | "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,20 +28,20 @@ export declare const selectNavigationAll: (state: {
|
|
|
28
28
|
}) => string[], selectNavigationItemById: (state: {
|
|
29
29
|
[x: string]: any;
|
|
30
30
|
}, id: string) => {
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
type?: string;
|
|
33
|
+
active?: boolean;
|
|
34
|
+
title?: string;
|
|
35
|
+
id: string;
|
|
36
|
+
translate?: string;
|
|
37
|
+
target?: string;
|
|
38
|
+
end?: boolean;
|
|
39
|
+
icon?: string;
|
|
31
40
|
url?: string;
|
|
32
41
|
auth?: string[] | string;
|
|
33
|
-
translate?: string;
|
|
34
|
-
id: string;
|
|
35
|
-
title?: string;
|
|
36
42
|
subtitle?: string;
|
|
37
|
-
icon?: string;
|
|
38
43
|
iconClass?: string;
|
|
39
|
-
target?: string;
|
|
40
|
-
type?: string;
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
active?: boolean;
|
|
43
44
|
exact?: boolean;
|
|
44
|
-
end?: boolean;
|
|
45
45
|
badge?: import("../../../../..").OwpNavBadgeType;
|
|
46
46
|
hasPermission?: boolean;
|
|
47
47
|
children?: string[];
|
|
@@ -18,7 +18,11 @@ export interface OwpAppConfigs {
|
|
|
18
18
|
export interface OwpAppSlots {
|
|
19
19
|
logo?: ComponentType<OwpLogoSlotProps>;
|
|
20
20
|
}
|
|
21
|
+
export interface OwpAppEnv {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
21
24
|
export interface OwpAppContextValue extends OwpAppConfigs {
|
|
25
|
+
env?: OwpAppEnv;
|
|
22
26
|
slots?: OwpAppSlots;
|
|
23
27
|
}
|
|
24
28
|
export declare const OwpAppContext: import("react").Context<OwpAppContextValue>;
|
|
@@ -26,9 +30,7 @@ export interface OwpAppProviderProps {
|
|
|
26
30
|
configs: OwpAppConfigs;
|
|
27
31
|
slots?: OwpAppSlots;
|
|
28
32
|
children?: ReactNode;
|
|
29
|
-
env?:
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
};
|
|
33
|
+
env?: OwpAppEnv;
|
|
32
34
|
}
|
|
33
35
|
export declare const OwpAppProvider: ({ configs, slots, children, env }: OwpAppProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
36
|
export declare const useOwpAppContext: () => OwpAppContextValue;
|
|
@@ -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,17 @@
|
|
|
1
|
+
import { DialogsProvider } from '@toolpad/core/useDialogs';
|
|
2
|
+
import { SnackbarProvider } from 'notistack';
|
|
3
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
4
|
+
type OwpDialogsProviderProps = Omit<ComponentProps<typeof DialogsProvider>, 'children'>;
|
|
5
|
+
type OwpSnackbarProviderProps = Omit<ComponentProps<typeof SnackbarProvider>, 'children'>;
|
|
6
|
+
export interface OwpUiProviderProps {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
dialogsProviderProps?: OwpDialogsProviderProps;
|
|
9
|
+
snackbarProviderProps?: OwpSnackbarProviderProps;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Dialog, snackbar provider composition
|
|
13
|
+
* @param dialogsProviderProps DialogsProvider 옵션
|
|
14
|
+
* @param snackbarProviderProps SnackbarProvider 옵션
|
|
15
|
+
*/
|
|
16
|
+
export declare function OwpUiProvider({ children, dialogsProviderProps, snackbarProviderProps, }: OwpUiProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -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,22 +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/OwpButtonDelete';
|
|
9
|
-
export * from './components/OwpButtonSave';
|
|
10
|
-
export * from './components/OwpCommonDialog';
|
|
11
|
-
export * from './components/OwpCommonCode';
|
|
12
6
|
export * from './components/OwpDialog';
|
|
7
|
+
export * from './components/OwpCommonCode';
|
|
13
8
|
export * from './components/OwpExportExcelButton/OwpExportExcelButton';
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
9
|
+
export { OwpErrorBoundary } from './components/OwpErrorBoundary';
|
|
10
|
+
export { OwpEventEmitter } from './components/OwpEventEmitter';
|
|
16
11
|
export * from './components/OwpFileUploadButton/OwpFileUploadButton';
|
|
17
12
|
export * from './components/OwpLayout';
|
|
18
13
|
export * from './components/OwpLoading';
|
|
19
|
-
export * from './components/OwpMessage';
|
|
20
14
|
export * from './components/OwpMrtTable';
|
|
21
15
|
export * from './components/OwpMoreActionsButton/OwpMoreActionsButton';
|
|
22
16
|
export * from './components/OwpNavigation';
|
|
@@ -45,12 +39,9 @@ export * from './components/OwpPageCarded';
|
|
|
45
39
|
export * from './components/OwpPageCarded/OwpPageCardedHeader';
|
|
46
40
|
export * from './components/OwpPageCarded/OwpPageCardedSidebar';
|
|
47
41
|
export * from './components/OwpPageCarded/OwpPageCardedSidebarContent';
|
|
42
|
+
export * from './components/OwpPageBreadcrumb';
|
|
48
43
|
export * from './components/OwpPageContent';
|
|
49
44
|
export * from './components/OwpPageLockLoading';
|
|
50
|
-
export * from './components/OwpPageSimple';
|
|
51
|
-
export * from './components/OwpPageSimple/OwpPageSimpleHeader';
|
|
52
|
-
export * from './components/OwpPageSimple/OwpPageSimpleSidebar';
|
|
53
|
-
export * from './components/OwpPageSimple/OwpPageSimpleSidebarContent';
|
|
54
45
|
export * from './components/OwpPageTitle';
|
|
55
46
|
export * from './components/OwpPicker/OwpDatePicker';
|
|
56
47
|
export * from './components/OwpPicker/OwpDateRangePicker';
|
|
@@ -69,6 +60,7 @@ export * from './components/OwpSettings/ThemeFormConfigTypes';
|
|
|
69
60
|
export * from './components/OwpShortcuts';
|
|
70
61
|
export * from './components/OwpSidePanel';
|
|
71
62
|
export * from './components/OwpSplashScreen';
|
|
63
|
+
export * from './components/OwpStyleProvider';
|
|
72
64
|
export * from './components/OwpSuspense';
|
|
73
65
|
export * from './components/OwpSvgIcon';
|
|
74
66
|
export * from './components/OwpTable/OwpDataTable';
|
|
@@ -79,11 +71,9 @@ export * from './components/OwpTheme';
|
|
|
79
71
|
export * from './components/OwpThemeSelector';
|
|
80
72
|
export * from './components/OwpThemeSelector/SchemePreview';
|
|
81
73
|
export * from './components/OwpThemeSelector/ThemePreview';
|
|
74
|
+
export * from './components/OwpTabs';
|
|
82
75
|
export * from './components/OwpTreeGridExcelButton';
|
|
83
76
|
export * from './components/OwpTreeGrid';
|
|
84
77
|
export * from './components/OwpTreeGrid/OwpTreeGridToolbar';
|
|
85
|
-
export * from './components/OwpTreeView/OwpSlotTreeView';
|
|
86
78
|
export * from './components/OwpZoomImageSlider/OwpZoomImageSlider';
|
|
87
79
|
export * from './components/OwpYesNoSelector';
|
|
88
|
-
export * from './components/shared-components/tabs/OwpTab';
|
|
89
|
-
export * from './components/shared-components/tabs/OwpTabs';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { BaseQueryFn } from '@reduxjs/toolkit/query/react';
|
|
2
2
|
import { AxiosError, AxiosRequestConfig } from 'axios';
|
|
3
|
+
/**
|
|
4
|
+
* Internal RTK Query api service
|
|
5
|
+
*/
|
|
3
6
|
export declare const apiService: import("@reduxjs/toolkit/query").Api<BaseQueryFn<AxiosRequestConfig<unknown>, unknown, AxiosError<unknown, any>>, {}, "apiService", never, typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
@@ -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,6 @@
|
|
|
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';
|
|
@@ -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,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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OwpEventEmitter } from '@/components/OwpEventEmitter';
|
|
2
2
|
import { OwpSettingsConfigType } from '@/components/OwpSettings/OwpSettings';
|
|
3
3
|
import { DeepPartial } from 'react-hook-form';
|
|
4
4
|
import { RouteObject } from 'react-router-dom';
|
|
@@ -104,10 +104,9 @@ export declare class OwpUtils {
|
|
|
104
104
|
*/
|
|
105
105
|
static difference(object: Record<string, unknown>, base: Record<string, unknown>): Record<string, unknown>;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
108
|
-
* It provides methods for registering and emitting events.
|
|
107
|
+
* OwpEventEmitter class reference
|
|
109
108
|
*/
|
|
110
|
-
static EventEmitter: typeof
|
|
109
|
+
static EventEmitter: typeof OwpEventEmitter;
|
|
111
110
|
/**
|
|
112
111
|
* The hasPermission function checks if a user has permission to access a resource.
|
|
113
112
|
*/
|
|
@@ -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,16 +1,20 @@
|
|
|
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';
|
|
10
12
|
export * from './getFormDefaultValues';
|
|
13
|
+
export * from './getTrimmedValue';
|
|
11
14
|
export * from './isEnterKeyEvent';
|
|
12
15
|
export * from './qrCodeUtil';
|
|
13
16
|
export * from './rebuildValue';
|
|
17
|
+
export * from './sanitizeAuthInputValue';
|
|
14
18
|
export * from './treeGridExportExcelUtil';
|
|
15
19
|
export * from './treeGridUtil';
|
|
16
20
|
export * from './zipUtil';
|