@owp/core 1.25.0 → 1.27.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 +1 -0
- package/colors.js +1 -0
- package/context.d.ts +1 -0
- package/context.js +1 -0
- package/dist/Close-DA97hwNx.js +914 -0
- package/dist/Close-DA97hwNx.js.map +1 -0
- package/dist/OwpStoreProvider-BKRp9Maw.js +34 -0
- package/dist/OwpStoreProvider-BKRp9Maw.js.map +1 -0
- package/dist/OwpUtils-9lHSCdan.js +611 -0
- package/dist/OwpUtils-9lHSCdan.js.map +1 -0
- package/dist/{QuickPanel-uWtPXsYC.js → QuickPanel-EyvjMTxX.js} +3 -3
- package/dist/{QuickPanel-uWtPXsYC.js.map → QuickPanel-EyvjMTxX.js.map} +1 -1
- package/dist/colors.js +38 -0
- package/dist/colors.js.map +1 -0
- package/dist/constants.js +9 -8
- package/dist/constants.js.map +1 -1
- package/dist/context.js +72 -0
- package/dist/context.js.map +1 -0
- package/dist/emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js +1751 -0
- package/dist/emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js.map +1 -0
- package/dist/hooks.js +76 -33
- package/dist/hooks.js.map +1 -1
- package/dist/{index-DvBno1rF.js → index-CdxKoZlQ.js} +19773 -23892
- package/dist/index-CdxKoZlQ.js.map +1 -0
- package/dist/index.js +120 -234
- package/dist/index.js.map +1 -1
- package/dist/isTypedArray-xp-fB7W4.js +411 -0
- package/dist/isTypedArray-xp-fB7W4.js.map +1 -0
- package/dist/lazyLoadedSlices-Bjy1crVY.js +2794 -0
- package/dist/lazyLoadedSlices-Bjy1crVY.js.map +1 -0
- package/dist/owp-app.css +1 -1
- package/dist/storageKeys-DRzte9LZ.js +15 -0
- package/dist/storageKeys-DRzte9LZ.js.map +1 -0
- package/dist/store.js +7 -0
- package/dist/store.js.map +1 -0
- package/dist/toUpper-CilZrxEa.js +16 -0
- package/dist/toUpper-CilZrxEa.js.map +1 -0
- package/dist/treeGrid-CjB04cBq.js +35 -0
- package/dist/treeGrid-CjB04cBq.js.map +1 -0
- package/dist/treeGridUtil-_FDvRzzt.js +771 -0
- package/dist/treeGridUtil-_FDvRzzt.js.map +1 -0
- package/dist/types/colors/index.d.ts +2 -0
- package/dist/types/components/OwpAutoLogoutDialog/index.d.ts +1 -0
- package/dist/types/components/OwpBarcodeInput/OwpBarcodeInput.d.ts +1 -0
- package/dist/types/components/OwpBarcodeInput/index.d.ts +1 -0
- package/dist/types/components/OwpCommonDialog/OwpCommonDialog.d.ts +26 -0
- package/dist/types/components/OwpCommonDialog/index.d.ts +1 -26
- package/dist/types/components/OwpErrorBoundary/OwpErrorBoundary.d.ts +16 -0
- 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/OwpExportExcelButton/index.d.ts +1 -0
- package/dist/types/components/OwpFileUploadButton/index.d.ts +1 -0
- package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +9 -0
- package/dist/types/components/OwpMrtTable/index.d.ts +1 -9
- package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +12 -0
- package/dist/types/components/OwpNumberField/index.d.ts +1 -12
- package/dist/types/components/OwpOptionSelector/OwpOptionSelector.d.ts +22 -0
- package/dist/types/components/OwpOptionSelector/index.d.ts +1 -22
- package/dist/types/components/OwpPageContent/OwpPageContent.d.ts +17 -0
- package/dist/types/components/OwpPageContent/index.d.ts +1 -17
- package/dist/types/components/OwpPageLockLoading/OwpPageLockLoading.d.ts +11 -0
- package/dist/types/components/OwpPageLockLoading/index.d.ts +1 -11
- package/dist/types/components/OwpPageTitle/OwpPageTitle.d.ts +15 -0
- package/dist/types/components/OwpPageTitle/index.d.ts +1 -15
- package/dist/types/components/OwpPicker/index.d.ts +5 -0
- package/dist/types/components/OwpSearchFilter/OwpSearchFilter.d.ts +17 -0
- package/dist/types/components/OwpSearchFilter/index.d.ts +1 -17
- package/dist/types/components/OwpSection/OwpSection.d.ts +24 -0
- package/dist/types/components/OwpSection/index.d.ts +1 -24
- 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/index.d.ts +3 -0
- package/dist/types/components/OwpTextField/index.d.ts +1 -0
- package/dist/types/components/OwpTreeGridExcelButton/OwpTreeGridExcelButton.d.ts +12 -0
- package/dist/types/components/OwpTreeGridExcelButton/index.d.ts +1 -12
- package/dist/types/components/OwpYesNoSelector/OwpYesNoSelector.d.ts +16 -0
- package/dist/types/components/OwpYesNoSelector/index.d.ts +1 -16
- package/dist/types/components/OwpZoomImageSlider/index.d.ts +1 -0
- package/dist/types/components/shared-components/tabs/OwpTab.d.ts +1 -1
- package/dist/types/components/shared-components/tabs/OwpTabs.d.ts +1 -1
- package/dist/types/context/OwpAppProvider.d.ts +5 -3
- package/dist/types/context/OwpCoreProvider.d.ts +21 -0
- package/dist/types/context/OwpUiProvider.d.ts +17 -0
- package/dist/types/context/index.d.ts +3 -0
- package/dist/types/hooks/useCommonCodeList.d.ts +4 -4
- package/dist/types/hooks/useNavigation.d.ts +4 -4
- package/dist/types/index.d.ts +3 -16
- package/dist/types/store/OwpStoreProvider.d.ts +12 -0
- package/dist/types/store/index.d.ts +3 -0
- package/dist/types/utils/common/OwpUtils.d.ts +3 -4
- package/dist/types/utils/getTrimmedValue.d.ts +5 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/useOwpTranslation-VarZsCQ4.js +233 -0
- package/dist/useOwpTranslation-VarZsCQ4.js.map +1 -0
- package/dist/useTreeGridExcelExport-BGh2y8Cg.js +195 -0
- package/dist/useTreeGridExcelExport-BGh2y8Cg.js.map +1 -0
- package/dist/utils.js +6939 -64
- package/dist/utils.js.map +1 -1
- package/package.json +7 -1
- package/store.d.ts +1 -0
- package/store.js +1 -0
- package/dist/index-DvBno1rF.js.map +0 -1
- package/dist/treeGrid-CPgV7yMG.js +0 -46
- package/dist/treeGrid-CPgV7yMG.js.map +0 -1
- package/dist/treeGridUtil-mbjQrrTs.js +0 -1176
- package/dist/treeGridUtil-mbjQrrTs.js.map +0 -1
- package/dist/types/components/ErrorBoundary/ErrorBoundary.d.ts +0 -16
- 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/OwpButtonDelete/index.d.ts +0 -12
- package/dist/types/components/OwpButtonSave/index.d.ts +0 -12
- 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/layouts/index.d.ts +0 -8
- package/dist/types/components/layouts/layout1/components/RightSideLayout1.d.ts +0 -6
- package/dist/types/components/layouts/shared-components/DemoLayoutFooterContent.d.ts +0 -5
- package/dist/types/components/layouts/shared-components/DocumentationButton.d.ts +0 -8
- package/dist/types/components/layouts/shared-components/PoweredByLinks.d.ts +0 -5
- package/dist/types/components/layouts/shared-components/PurchaseButton.d.ts +0 -8
- package/dist/types/components/layouts/shared-components/UserNavbarHeader.d.ts +0 -5
- package/dist/types/components/withRouterAndRef/index.d.ts +0 -1
- package/dist/types/components/withRouterAndRef/withRouterAndRef.d.ts +0 -14
- package/dist/useTreeGridExcelExport-BPWeY2Oq.js +0 -2201
- package/dist/useTreeGridExcelExport-BPWeY2Oq.js.map +0 -1
- package/dist/zipUtil-Dmq4Gna2.js +0 -7505
- package/dist/zipUtil-Dmq4Gna2.js.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IconProps } from '@mui/material';
|
|
2
|
+
interface OwpSectionProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
headerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
5
|
+
disableTitleIcon?: boolean;
|
|
6
|
+
usePageTitle?: boolean;
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
actions?: React.ReactNode;
|
|
9
|
+
leftSlot?: React.ReactNode;
|
|
10
|
+
centerSlot?: React.ReactNode;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
iconSize?: IconProps['fontSize'];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* OwpSection 컴포넌트
|
|
16
|
+
* @param className CSS 클래스명
|
|
17
|
+
* @param title 제목
|
|
18
|
+
* @param disableTitleIcon disableTitleIcon 값
|
|
19
|
+
* @param headerProps headerProps props
|
|
20
|
+
* @param usePageTitle usePageTitle 값
|
|
21
|
+
* @param actions 액션 영역
|
|
22
|
+
*/
|
|
23
|
+
declare const OwpSection: ({ className, title, disableTitleIcon, headerProps, usePageTitle, actions, leftSlot, centerSlot, children, iconSize, }: OwpSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export { OwpSection };
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface OwpSectionProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
headerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
5
|
-
disableTitleIcon?: boolean;
|
|
6
|
-
usePageTitle?: boolean;
|
|
7
|
-
title?: React.ReactNode;
|
|
8
|
-
actions?: React.ReactNode;
|
|
9
|
-
leftSlot?: React.ReactNode;
|
|
10
|
-
centerSlot?: React.ReactNode;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
iconSize?: IconProps['fontSize'];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* OwpSection 컴포넌트
|
|
16
|
-
* @param className CSS 클래스명
|
|
17
|
-
* @param title 제목
|
|
18
|
-
* @param disableTitleIcon disableTitleIcon 값
|
|
19
|
-
* @param headerProps headerProps props
|
|
20
|
-
* @param usePageTitle usePageTitle 값
|
|
21
|
-
* @param actions 액션 영역
|
|
22
|
-
*/
|
|
23
|
-
declare const OwpSection: ({ className, title, disableTitleIcon, headerProps, usePageTitle, actions, leftSlot, centerSlot, children, iconSize, }: OwpSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export { OwpSection };
|
|
1
|
+
export * from './OwpSection';
|
|
@@ -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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OwpTextMaskField';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ButtonProps } from '@mui/material';
|
|
2
|
+
export interface OwpTreeGridExcelButtonProps extends ButtonProps {
|
|
3
|
+
gridId: string;
|
|
4
|
+
exportName?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* TreeGrid 엑셀 내보내기 버튼
|
|
8
|
+
* @param gridId TreeGrid 인스턴스 ID
|
|
9
|
+
* @param exportName 다운로드 파일명
|
|
10
|
+
*/
|
|
11
|
+
declare const OwpTreeGridExcelButton: ({ gridId, exportName, children, loading, loadingPosition, onClick, ...buttonProps }: OwpTreeGridExcelButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { OwpTreeGridExcelButton };
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export interface OwpTreeGridExcelButtonProps extends ButtonProps {
|
|
3
|
-
gridId: string;
|
|
4
|
-
exportName?: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* TreeGrid 엑셀 내보내기 버튼
|
|
8
|
-
* @param gridId TreeGrid 인스턴스 ID
|
|
9
|
-
* @param exportName 다운로드 파일명
|
|
10
|
-
*/
|
|
11
|
-
declare const OwpTreeGridExcelButton: ({ gridId, exportName, children, loading, loadingPosition, onClick, ...buttonProps }: OwpTreeGridExcelButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export { OwpTreeGridExcelButton };
|
|
1
|
+
export * from './OwpTreeGridExcelButton';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type OwpOptionSelectorProps } from '@/components/OwpOptionSelector';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
export interface OwpYesNoSelectorProps extends Omit<OwpOptionSelectorProps, 'options'> {
|
|
4
|
+
yesLabel?: ReactNode;
|
|
5
|
+
noLabel?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Y/N 선택 Select
|
|
9
|
+
* @param label 입력 라벨
|
|
10
|
+
* @param disableAllValueItem 전체 옵션 노출 여부
|
|
11
|
+
* @param helperText 하단 안내 문구
|
|
12
|
+
* @param yesLabel Y 항목 라벨
|
|
13
|
+
* @param noLabel N 항목 라벨
|
|
14
|
+
*/
|
|
15
|
+
declare const OwpYesNoSelector: ({ yesLabel, noLabel, ...optionSelectorProps }: OwpYesNoSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export { OwpYesNoSelector };
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { type ReactNode } from 'react';
|
|
3
|
-
export interface OwpYesNoSelectorProps extends Omit<OwpOptionSelectorProps, 'options'> {
|
|
4
|
-
yesLabel?: ReactNode;
|
|
5
|
-
noLabel?: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Y/N 선택 Select
|
|
9
|
-
* @param label 입력 라벨
|
|
10
|
-
* @param disableAllValueItem 전체 옵션 노출 여부
|
|
11
|
-
* @param helperText 하단 안내 문구
|
|
12
|
-
* @param yesLabel Y 항목 라벨
|
|
13
|
-
* @param noLabel N 항목 라벨
|
|
14
|
-
*/
|
|
15
|
-
declare const OwpYesNoSelector: ({ yesLabel, noLabel, ...optionSelectorProps }: OwpYesNoSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export { OwpYesNoSelector };
|
|
1
|
+
export * from './OwpYesNoSelector';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OwpZoomImageSlider';
|
|
@@ -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
|
-
}, "children" | "sx" | "icon" | "disabled" | "classes" | "style" | "
|
|
6
|
+
}, "children" | "sx" | "icon" | "disabled" | "classes" | "style" | "value" | "action" | "className" | "label" | "tabIndex" | "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
|
-
}, "children" | "sx" | "classes" | "style" | "action" | "className" | "variant" | "aria-label" | "aria-labelledby" | "
|
|
6
|
+
}, "children" | "sx" | "classes" | "style" | "onChange" | "value" | "action" | "className" | "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 };
|
|
@@ -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;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StyledEngineProvider } from '@mui/material/styles';
|
|
2
|
+
import { QueryClient, QueryClientConfig } from '@tanstack/react-query';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
import { OwpStoreProviderProps } from '../store/OwpStoreProvider';
|
|
5
|
+
import { OwpAppProviderProps } from './OwpAppProvider';
|
|
6
|
+
type OwpStyledEngineProviderProps = Omit<ComponentProps<typeof StyledEngineProvider>, 'children'>;
|
|
7
|
+
export interface OwpCoreProviderProps extends OwpAppProviderProps {
|
|
8
|
+
queryClient?: QueryClient;
|
|
9
|
+
queryClientConfig?: QueryClientConfig;
|
|
10
|
+
storePreloadedState?: OwpStoreProviderProps['preloadedState'];
|
|
11
|
+
styledEngineProviderProps?: OwpStyledEngineProviderProps;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* App, Redux, React Query provider composition
|
|
15
|
+
* @param queryClient 외부 QueryClient 인스턴스
|
|
16
|
+
* @param queryClientConfig QueryClient 생성 옵션
|
|
17
|
+
* @param storePreloadedState 초기 Redux 상태
|
|
18
|
+
* @param styledEngineProviderProps StyledEngineProvider 옵션
|
|
19
|
+
*/
|
|
20
|
+
export declare function OwpCoreProvider({ children, queryClient, queryClientConfig, storePreloadedState, styledEngineProviderProps, ...appProviderProps }: OwpCoreProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -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 {};
|
|
@@ -8,10 +8,10 @@ export declare const useGetCommonCodeList: () => {
|
|
|
8
8
|
/**
|
|
9
9
|
* 공통코드 목록 설정 훅
|
|
10
10
|
*/
|
|
11
|
-
export declare const useSetCommonCodeList: () => (args_0: {
|
|
11
|
+
export declare const useSetCommonCodeList: () => (args_0: typeof import("jotai/utils").RESET | {
|
|
12
12
|
[codeId: string]: CommonCode[];
|
|
13
|
-
} |
|
|
13
|
+
} | ((prev: {
|
|
14
14
|
[codeId: string]: CommonCode[];
|
|
15
|
-
}) => {
|
|
15
|
+
}) => typeof import("jotai/utils").RESET | {
|
|
16
16
|
[codeId: string]: CommonCode[];
|
|
17
|
-
}
|
|
17
|
+
})) => void;
|
|
@@ -14,11 +14,11 @@ export declare const useGetNavigationList: () => (Navigation & {
|
|
|
14
14
|
/**
|
|
15
15
|
* 내비게이션 목록 설정 훅
|
|
16
16
|
*/
|
|
17
|
-
export declare const useSetNavigationList: () => (args_0:
|
|
17
|
+
export declare const useSetNavigationList: () => (args_0: (Navigation & {
|
|
18
18
|
children?: Array<Navigation>;
|
|
19
|
-
})[] | ((prev: (Navigation & {
|
|
19
|
+
})[] | typeof import("jotai/utils").RESET | ((prev: (Navigation & {
|
|
20
20
|
children?: Array<Navigation>;
|
|
21
|
-
})[]) =>
|
|
21
|
+
})[]) => (Navigation & {
|
|
22
22
|
children?: Array<Navigation>;
|
|
23
|
-
})[])) => void;
|
|
23
|
+
})[] | typeof import("jotai/utils").RESET)) => void;
|
|
24
24
|
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,25 +1,16 @@
|
|
|
1
1
|
export * from './auth/authRoles';
|
|
2
|
-
export * from './colors/owpDark';
|
|
3
|
-
export * from './colors/skyBlue';
|
|
4
2
|
export { DialogsProvider } from '@toolpad/core/useDialogs';
|
|
5
|
-
export * from './context/OwpAppProvider';
|
|
6
|
-
export * from './store/store';
|
|
7
|
-
export * from './constants';
|
|
8
|
-
export * from './hooks';
|
|
9
|
-
export * from './utils';
|
|
10
3
|
export * from './components/layouts/themeLayouts';
|
|
11
4
|
export * from './components/layouts/shared-components/OwpLanguageSwitcherSelect';
|
|
12
5
|
export * from './components/layouts/shared-components/OwpSettingsViewerDialog';
|
|
13
6
|
export * from './components/OwpAutoLogoutDialog/OwpAutoLogoutDialog';
|
|
14
7
|
export * from './components/OwpBarcodeInput/OwpBarcodeInputField';
|
|
15
|
-
export * from './components/OwpButtonDelete';
|
|
16
|
-
export * from './components/OwpButtonSave';
|
|
17
8
|
export * from './components/OwpCommonDialog';
|
|
18
9
|
export * from './components/OwpCommonCode';
|
|
19
10
|
export * from './components/OwpDialog';
|
|
20
11
|
export * from './components/OwpExportExcelButton/OwpExportExcelButton';
|
|
21
|
-
export
|
|
22
|
-
export
|
|
12
|
+
export { OwpErrorBoundary } from './components/OwpErrorBoundary';
|
|
13
|
+
export { OwpEventEmitter } from './components/OwpEventEmitter';
|
|
23
14
|
export * from './components/OwpFileUploadButton/OwpFileUploadButton';
|
|
24
15
|
export * from './components/OwpLayout';
|
|
25
16
|
export * from './components/OwpLoading';
|
|
@@ -54,10 +45,6 @@ export * from './components/OwpPageCarded/OwpPageCardedSidebar';
|
|
|
54
45
|
export * from './components/OwpPageCarded/OwpPageCardedSidebarContent';
|
|
55
46
|
export * from './components/OwpPageContent';
|
|
56
47
|
export * from './components/OwpPageLockLoading';
|
|
57
|
-
export * from './components/OwpPageSimple';
|
|
58
|
-
export * from './components/OwpPageSimple/OwpPageSimpleHeader';
|
|
59
|
-
export * from './components/OwpPageSimple/OwpPageSimpleSidebar';
|
|
60
|
-
export * from './components/OwpPageSimple/OwpPageSimpleSidebarContent';
|
|
61
48
|
export * from './components/OwpPageTitle';
|
|
62
49
|
export * from './components/OwpPicker/OwpDatePicker';
|
|
63
50
|
export * from './components/OwpPicker/OwpDateRangePicker';
|
|
@@ -76,6 +63,7 @@ export * from './components/OwpSettings/ThemeFormConfigTypes';
|
|
|
76
63
|
export * from './components/OwpShortcuts';
|
|
77
64
|
export * from './components/OwpSidePanel';
|
|
78
65
|
export * from './components/OwpSplashScreen';
|
|
66
|
+
export * from './components/OwpStyleProvider';
|
|
79
67
|
export * from './components/OwpSuspense';
|
|
80
68
|
export * from './components/OwpSvgIcon';
|
|
81
69
|
export * from './components/OwpTable/OwpDataTable';
|
|
@@ -89,7 +77,6 @@ export * from './components/OwpThemeSelector/ThemePreview';
|
|
|
89
77
|
export * from './components/OwpTreeGridExcelButton';
|
|
90
78
|
export * from './components/OwpTreeGrid';
|
|
91
79
|
export * from './components/OwpTreeGrid/OwpTreeGridToolbar';
|
|
92
|
-
export * from './components/OwpTreeView/OwpSlotTreeView';
|
|
93
80
|
export * from './components/OwpZoomImageSlider/OwpZoomImageSlider';
|
|
94
81
|
export * from './components/OwpYesNoSelector';
|
|
95
82
|
export * from './components/shared-components/tabs/OwpTab';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { RootState } from './store';
|
|
3
|
+
export interface OwpStoreProviderProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
preloadedState?: Partial<RootState>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Owp Redux store provider
|
|
9
|
+
* @param children 하위 콘텐츠
|
|
10
|
+
* @param preloadedState 초기 Redux 상태
|
|
11
|
+
*/
|
|
12
|
+
export declare function OwpStoreProvider({ children, preloadedState }: OwpStoreProviderProps): 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
|
*/
|
|
@@ -8,6 +8,7 @@ export * from './formatDateToYmd';
|
|
|
8
8
|
export * from './formatNumber';
|
|
9
9
|
export * from './getDisplayValue';
|
|
10
10
|
export * from './getFormDefaultValues';
|
|
11
|
+
export * from './getTrimmedValue';
|
|
11
12
|
export * from './isEnterKeyEvent';
|
|
12
13
|
export * from './qrCodeUtil';
|
|
13
14
|
export * from './rebuildValue';
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
var _ = Object.defineProperty;
|
|
2
|
+
var s = (e, r) => _(e, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { S as f } from "./storageKeys-DRzte9LZ.js";
|
|
4
|
+
import { useCallback as d, useMemo as h } from "react";
|
|
5
|
+
import { i as S, a as x } from "./isTypedArray-xp-fB7W4.js";
|
|
6
|
+
import { a as b, j as p } from "./emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js";
|
|
7
|
+
import { Typography as v, DialogContent as w, DialogActions as V, Button as O, Dialog as I } from "@mui/material";
|
|
8
|
+
import { useDialogs as A } from "@toolpad/core/useDialogs";
|
|
9
|
+
import { useTranslation as E } from "react-i18next";
|
|
10
|
+
function P(e, r) {
|
|
11
|
+
if (r === void 0)
|
|
12
|
+
return e.trimEnd();
|
|
13
|
+
let o = e.length;
|
|
14
|
+
switch (typeof r) {
|
|
15
|
+
case "string": {
|
|
16
|
+
if (r.length !== 1)
|
|
17
|
+
throw new Error("The 'chars' parameter should be a single character string.");
|
|
18
|
+
for (; o > 0 && e[o - 1] === r; )
|
|
19
|
+
o--;
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
case "object":
|
|
23
|
+
for (; o > 0 && r.includes(e[o - 1]); )
|
|
24
|
+
o--;
|
|
25
|
+
}
|
|
26
|
+
return e.substring(0, o);
|
|
27
|
+
}
|
|
28
|
+
s(P, "trimEnd$1");
|
|
29
|
+
const B = [
|
|
30
|
+
f.currentLanguage,
|
|
31
|
+
f.currentShortcuts,
|
|
32
|
+
f.currentUserId,
|
|
33
|
+
f.currentLogoSrc,
|
|
34
|
+
f.owpEnv
|
|
35
|
+
], y = /* @__PURE__ */ s(() => typeof window > "u" ? null : window.localStorage, "getLocalStorage"), K = /* @__PURE__ */ s((e, r) => {
|
|
36
|
+
if (!e)
|
|
37
|
+
return r;
|
|
38
|
+
try {
|
|
39
|
+
return JSON.parse(e);
|
|
40
|
+
} catch {
|
|
41
|
+
return r;
|
|
42
|
+
}
|
|
43
|
+
}, "safeParseJson"), F = /* @__PURE__ */ s(() => {
|
|
44
|
+
const e = d(() => {
|
|
45
|
+
const n = y();
|
|
46
|
+
if (!n)
|
|
47
|
+
return;
|
|
48
|
+
const t = B.map((a) => [a, n.getItem(a)]);
|
|
49
|
+
n.clear(), t.forEach(([a, l]) => {
|
|
50
|
+
l !== null && n.setItem(a, l);
|
|
51
|
+
});
|
|
52
|
+
}, []), r = d(() => {
|
|
53
|
+
const n = y(), t = K(
|
|
54
|
+
(n == null ? void 0 : n.getItem(f.currentUser)) ?? null,
|
|
55
|
+
null
|
|
56
|
+
);
|
|
57
|
+
return S(t) ? {
|
|
58
|
+
role: ["admin"],
|
|
59
|
+
data: {
|
|
60
|
+
displayName: t.USERNAME,
|
|
61
|
+
email: t.EMAIL,
|
|
62
|
+
MES_STARTPAGE: t.MES_STARTPAGE,
|
|
63
|
+
STARTPAGE: t.STARTPAGE,
|
|
64
|
+
USERSEQ: t.USERSEQ,
|
|
65
|
+
photoURL: ""
|
|
66
|
+
}
|
|
67
|
+
} : null;
|
|
68
|
+
}, []), o = d((n) => {
|
|
69
|
+
const t = y();
|
|
70
|
+
t && t.setItem(f.owpEnv, JSON.stringify(n ?? {}));
|
|
71
|
+
}, []), i = d(() => {
|
|
72
|
+
const n = y(), t = K((n == null ? void 0 : n.getItem(f.owpEnv)) ?? null, {});
|
|
73
|
+
return S(t) ? t : {};
|
|
74
|
+
}, []);
|
|
75
|
+
return h(
|
|
76
|
+
() => ({
|
|
77
|
+
resetStorage: e,
|
|
78
|
+
getCurrentUser: r,
|
|
79
|
+
setEnv: o,
|
|
80
|
+
getEnv: i
|
|
81
|
+
}),
|
|
82
|
+
[r, i, e, o]
|
|
83
|
+
);
|
|
84
|
+
}, "useStorage");
|
|
85
|
+
function R(e, r, o) {
|
|
86
|
+
return e == null ? "" : P(e, r.toString().split(""));
|
|
87
|
+
}
|
|
88
|
+
s(R, "trimEnd");
|
|
89
|
+
const u = {
|
|
90
|
+
infoTitle: {
|
|
91
|
+
primaryKey: "message.would_you_like_to_proceed",
|
|
92
|
+
fallbackKey: "Message.처리하시겠습니까",
|
|
93
|
+
defaultValue: "처리하시겠습니까?"
|
|
94
|
+
},
|
|
95
|
+
infoOk: {
|
|
96
|
+
primaryKey: "button.ok",
|
|
97
|
+
fallbackKey: "Button.확인",
|
|
98
|
+
defaultValue: "확인"
|
|
99
|
+
},
|
|
100
|
+
saveTitle: {
|
|
101
|
+
primaryKey: "message.do_you_want_to_save",
|
|
102
|
+
fallbackKey: "Message.저장하시겠습니까?",
|
|
103
|
+
defaultValue: "저장하시겠습니까?"
|
|
104
|
+
},
|
|
105
|
+
saveOk: {
|
|
106
|
+
primaryKey: "button.save",
|
|
107
|
+
fallbackKey: "Button.저장",
|
|
108
|
+
defaultValue: "저장"
|
|
109
|
+
},
|
|
110
|
+
updateTitle: {
|
|
111
|
+
primaryKey: "message.would_you_like_to_edit",
|
|
112
|
+
fallbackKey: "Message.수정하시겠습니까?",
|
|
113
|
+
defaultValue: "수정하시겠습니까?"
|
|
114
|
+
},
|
|
115
|
+
updateOk: {
|
|
116
|
+
primaryKey: "button.edit",
|
|
117
|
+
fallbackKey: "Button.수정",
|
|
118
|
+
defaultValue: "수정"
|
|
119
|
+
},
|
|
120
|
+
deleteTitle: {
|
|
121
|
+
primaryKey: "message.are_you_sure_you_want_to_delete",
|
|
122
|
+
fallbackKey: "Message.삭제하시겠습니까?",
|
|
123
|
+
defaultValue: "삭제하시겠습니까?"
|
|
124
|
+
},
|
|
125
|
+
deleteOk: {
|
|
126
|
+
primaryKey: "button.delete",
|
|
127
|
+
fallbackKey: "Button.삭제",
|
|
128
|
+
defaultValue: "삭제"
|
|
129
|
+
},
|
|
130
|
+
cancel: {
|
|
131
|
+
primaryKey: "button.cancel",
|
|
132
|
+
fallbackKey: "Button.취소",
|
|
133
|
+
defaultValue: "취소"
|
|
134
|
+
}
|
|
135
|
+
}, T = /* @__PURE__ */ s((e, r) => e ? {
|
|
136
|
+
color: e,
|
|
137
|
+
...r
|
|
138
|
+
} : r, "mergeOkButtonProps"), Q = /* @__PURE__ */ s(() => {
|
|
139
|
+
const e = A(), { t: r, i18n: o } = E("owp"), i = /* @__PURE__ */ s(({
|
|
140
|
+
primaryKey: t,
|
|
141
|
+
fallbackKey: a,
|
|
142
|
+
defaultValue: l
|
|
143
|
+
}) => r(o.exists(t) ? t : a, { defaultValue: l }), "translateConfirmText"), n = /* @__PURE__ */ s((t) => e.open(D, t), "confirmBase");
|
|
144
|
+
return {
|
|
145
|
+
confirm: n,
|
|
146
|
+
confirmInfo: /* @__PURE__ */ s(async ({ title: t, okText: a, severity: l } = {}) => n({
|
|
147
|
+
title: t ?? i(u.infoTitle),
|
|
148
|
+
okText: a ?? i(u.infoOk),
|
|
149
|
+
severity: l ?? "primary",
|
|
150
|
+
useInfo: !0
|
|
151
|
+
}), "confirmInfo"),
|
|
152
|
+
confirmSave: /* @__PURE__ */ s(async ({
|
|
153
|
+
title: t,
|
|
154
|
+
okText: a,
|
|
155
|
+
cancelText: l,
|
|
156
|
+
okButtonProps: c
|
|
157
|
+
} = {}) => n({
|
|
158
|
+
title: t ?? i(u.saveTitle),
|
|
159
|
+
okText: a ?? i(u.saveOk),
|
|
160
|
+
cancelText: l,
|
|
161
|
+
okButtonProps: T("secondary", c)
|
|
162
|
+
}), "confirmSave"),
|
|
163
|
+
confirmUpdate: /* @__PURE__ */ s(async ({
|
|
164
|
+
title: t,
|
|
165
|
+
okText: a,
|
|
166
|
+
cancelText: l,
|
|
167
|
+
okButtonProps: c
|
|
168
|
+
} = {}) => n({
|
|
169
|
+
title: t ?? i(u.updateTitle),
|
|
170
|
+
okText: a ?? i(u.updateOk),
|
|
171
|
+
cancelText: l,
|
|
172
|
+
okButtonProps: T("secondary", c)
|
|
173
|
+
}), "confirmUpdate"),
|
|
174
|
+
confirmDelete: /* @__PURE__ */ s(async ({
|
|
175
|
+
title: t,
|
|
176
|
+
okText: a,
|
|
177
|
+
cancelText: l,
|
|
178
|
+
okButtonProps: c
|
|
179
|
+
} = {}) => n({
|
|
180
|
+
title: t ?? i(u.deleteTitle),
|
|
181
|
+
okText: a ?? i(u.deleteOk),
|
|
182
|
+
cancelText: l,
|
|
183
|
+
okButtonProps: T("error", c)
|
|
184
|
+
}), "confirmDelete")
|
|
185
|
+
};
|
|
186
|
+
}, "useConfirm"), D = /* @__PURE__ */ s(({ payload: e, open: r, onClose: o }) => {
|
|
187
|
+
const { title: i, okButtonProps: n, cancelButtonProps: t, severity: a, useInfo: l } = e, { t: c, i18n: g } = E("owp"), m = (e == null ? void 0 : e.okText) ?? c(g.exists(u.infoOk.primaryKey) ? "button.ok" : "Button.확인", {
|
|
188
|
+
defaultValue: u.infoOk.defaultValue
|
|
189
|
+
}), k = (e == null ? void 0 : e.cancelText) ?? c(
|
|
190
|
+
g.exists(u.cancel.primaryKey) ? u.cancel.primaryKey : u.cancel.fallbackKey,
|
|
191
|
+
{ defaultValue: u.cancel.defaultValue }
|
|
192
|
+
);
|
|
193
|
+
return /* @__PURE__ */ b(I, { fullWidth: !0, maxWidth: "xs", open: r, onClose: /* @__PURE__ */ s(() => o(!1), "onClose"), children: [
|
|
194
|
+
/* @__PURE__ */ p(w, { children: /* @__PURE__ */ p(v, { className: "mb-12", variant: "h6", children: i }) }),
|
|
195
|
+
/* @__PURE__ */ b(V, { children: [
|
|
196
|
+
!l && /* @__PURE__ */ p(O, { ...t, variant: "outlined", onClick: /* @__PURE__ */ s(() => o(!1), "onClick"), children: k }),
|
|
197
|
+
/* @__PURE__ */ p(
|
|
198
|
+
O,
|
|
199
|
+
{
|
|
200
|
+
color: a || "primary",
|
|
201
|
+
variant: "contained",
|
|
202
|
+
...n,
|
|
203
|
+
onClick: /* @__PURE__ */ s(() => o(!0), "onClick"),
|
|
204
|
+
children: m
|
|
205
|
+
}
|
|
206
|
+
)
|
|
207
|
+
] })
|
|
208
|
+
] });
|
|
209
|
+
}, "ConfirmDialog"), j = /* @__PURE__ */ s((e) => {
|
|
210
|
+
if (!e.includes("."))
|
|
211
|
+
return;
|
|
212
|
+
const o = R(e, ".").lastIndexOf(".");
|
|
213
|
+
return o < 0 ? e : e.slice(o + 1);
|
|
214
|
+
}, "getDefaultValueFromKey"), W = /* @__PURE__ */ s(() => {
|
|
215
|
+
const { t: e, ...r } = E("owp");
|
|
216
|
+
return { t: /* @__PURE__ */ s((...i) => {
|
|
217
|
+
const [n, t] = i, a = x(t) ? t : void 0, l = !!a, c = l && Object.prototype.hasOwnProperty.call(a, "defaultValue");
|
|
218
|
+
if ((t == null || l) && !c && typeof n == "string") {
|
|
219
|
+
const m = j(n);
|
|
220
|
+
if (m) {
|
|
221
|
+
const k = l ? { ...a, defaultValue: m } : { defaultValue: m };
|
|
222
|
+
return e(n, k, ...i.slice(2));
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return e(...i);
|
|
226
|
+
}, "t"), ...r };
|
|
227
|
+
}, "useOwpTranslation");
|
|
228
|
+
export {
|
|
229
|
+
W as a,
|
|
230
|
+
F as b,
|
|
231
|
+
Q as u
|
|
232
|
+
};
|
|
233
|
+
//# sourceMappingURL=useOwpTranslation-VarZsCQ4.js.map
|