@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.
Files changed (138) hide show
  1. package/colors.d.ts +2 -0
  2. package/constants.d.ts +2 -0
  3. package/context.d.ts +2 -0
  4. package/dist/Close-DnXhM4Ms.js +918 -0
  5. package/dist/Close-DnXhM4Ms.js.map +1 -0
  6. package/dist/{OwpStoreProvider-CqHkIIUm.js → OwpStoreProvider-B7W25pkq.js} +13 -13
  7. package/dist/OwpStoreProvider-B7W25pkq.js.map +1 -0
  8. package/dist/{OwpUtils-DxEd-Pjo.js → OwpUtils-9lHSCdan.js} +10 -17
  9. package/dist/OwpUtils-9lHSCdan.js.map +1 -0
  10. package/dist/{QuickPanel-DNAisp_R.js → QuickPanel-BOgEYOAw.js} +2 -2
  11. package/dist/{QuickPanel-DNAisp_R.js.map → QuickPanel-BOgEYOAw.js.map} +1 -1
  12. package/dist/context.js +67 -22
  13. package/dist/context.js.map +1 -1
  14. package/dist/hooks.js +45 -42
  15. package/dist/hooks.js.map +1 -1
  16. package/dist/{index-fDrAKBzK.js → index-B8tZAW8i.js} +13558 -15484
  17. package/dist/index-B8tZAW8i.js.map +1 -0
  18. package/dist/index.js +120 -128
  19. package/dist/index.js.map +1 -1
  20. package/dist/{isTypedArray-DPyC49cI.js → isTypedArray-xp-fB7W4.js} +3 -3
  21. package/dist/{isTypedArray-DPyC49cI.js.map → isTypedArray-xp-fB7W4.js.map} +1 -1
  22. package/dist/{lazyLoadedSlices-CsgnywgU.js → lazyLoadedSlices-BAbcXcEU.js} +678 -701
  23. package/dist/lazyLoadedSlices-BAbcXcEU.js.map +1 -0
  24. package/dist/owp-app.css +1 -1
  25. package/dist/store.js +1 -1
  26. package/dist/{toUpper-BhzrnIm3.js → toUpper-CilZrxEa.js} +2 -2
  27. package/dist/{toUpper-BhzrnIm3.js.map → toUpper-CilZrxEa.js.map} +1 -1
  28. package/dist/{treeGridUtil-DaqTz5v3.js → treeGridUtil-_FDvRzzt.js} +2 -2
  29. package/dist/{treeGridUtil-DaqTz5v3.js.map → treeGridUtil-_FDvRzzt.js.map} +1 -1
  30. package/dist/types/components/OwpCommonDialog/OwpCommonDialog.d.ts +1 -26
  31. package/dist/types/components/OwpDialog/OwpDialog.d.ts +32 -6
  32. package/dist/types/components/OwpDialog/index.d.ts +1 -4
  33. package/dist/types/components/{ErrorBoundary/ErrorBoundary.d.ts → OwpErrorBoundary/OwpErrorBoundary.d.ts} +5 -5
  34. package/dist/types/components/OwpErrorBoundary/index.d.ts +1 -0
  35. package/dist/types/components/OwpEventEmitter/OwpEventEmitter.d.ts +27 -0
  36. package/dist/types/components/OwpEventEmitter/index.d.ts +1 -0
  37. package/dist/types/components/OwpLanguageSwitcherSelect/index.d.ts +1 -0
  38. package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +7 -3
  39. package/dist/types/components/OwpMrtTable/OwpMrtTableTopToolbar.d.ts +6 -0
  40. package/dist/types/components/OwpNavLinkAdapter/OwpNavLinkAdapter.d.ts +16 -0
  41. package/dist/types/components/OwpNavLinkAdapter/index.d.ts +2 -0
  42. package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalGroup.d.ts +1 -2
  43. package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalItem.d.ts +1 -2
  44. package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalLink.d.ts +1 -2
  45. package/dist/types/components/{shared-components/PageBreadcrumb.d.ts → OwpPageBreadcrumb/OwpPageBreadcrumb.d.ts} +1 -1
  46. package/dist/types/components/OwpPageBreadcrumb/index.d.ts +2 -0
  47. package/dist/types/components/OwpSettings/OwpLayoutConfig.d.ts +1 -1
  48. package/dist/types/components/OwpStyleProvider/OwpStyleProvider.d.ts +18 -0
  49. package/dist/types/components/OwpStyleProvider/index.d.ts +2 -0
  50. package/dist/types/components/OwpTable/OwpTable.d.ts +1 -1
  51. package/dist/types/components/{shared-components/tabs → OwpTabs}/OwpTab.d.ts +1 -1
  52. package/dist/types/components/{shared-components/tabs → OwpTabs}/OwpTabs.d.ts +1 -1
  53. package/dist/types/components/OwpTabs/index.d.ts +2 -0
  54. package/dist/types/components/OwpTreeGrid/OwpTreeGridToolbar.d.ts +1 -1
  55. package/dist/types/components/layouts/shared-components/navigation/store/navigationSlice.d.ts +9 -9
  56. package/dist/types/context/OwpAppProvider.d.ts +5 -3
  57. package/dist/types/context/OwpCoreProvider.d.ts +1 -1
  58. package/dist/types/{store → context}/OwpStoreProvider.d.ts +1 -1
  59. package/dist/types/context/OwpUiProvider.d.ts +17 -0
  60. package/dist/types/context/index.d.ts +2 -0
  61. package/dist/types/hooks/useStorage.d.ts +10 -1
  62. package/dist/types/index.d.ts +7 -17
  63. package/dist/types/store/apiService.d.ts +3 -0
  64. package/dist/types/store/generateReducersFromSlices.d.ts +4 -1
  65. package/dist/types/store/hooks.d.ts +3 -0
  66. package/dist/types/store/index.d.ts +4 -1
  67. package/dist/types/store/lazyLoadedSlices.d.ts +3 -0
  68. package/dist/types/store/middleware.d.ts +3 -0
  69. package/dist/types/store/store.d.ts +3 -0
  70. package/dist/types/store/withSlices.d.ts +2 -2
  71. package/dist/types/utils/common/OwpUtils.d.ts +3 -4
  72. package/dist/types/utils/createDateRangeSearchParams.d.ts +16 -0
  73. package/dist/types/utils/fetchFile.d.ts +12 -0
  74. package/dist/types/utils/getTrimmedValue.d.ts +5 -0
  75. package/dist/types/utils/index.d.ts +4 -0
  76. package/dist/types/utils/sanitizeAuthInputValue.d.ts +10 -0
  77. package/dist/useOwpTranslation-BelpX-fd.js +174 -0
  78. package/dist/useOwpTranslation-BelpX-fd.js.map +1 -0
  79. package/dist/useStorage-BA0D8KA7.js +67 -0
  80. package/dist/useStorage-BA0D8KA7.js.map +1 -0
  81. package/dist/useTreeGridExcelExport-QNcWzx5v.js +195 -0
  82. package/dist/useTreeGridExcelExport-QNcWzx5v.js.map +1 -0
  83. package/dist/utils.js +2068 -2023
  84. package/dist/utils.js.map +1 -1
  85. package/hooks.d.ts +2 -0
  86. package/index.d.ts +3 -0
  87. package/package.json +4 -2
  88. package/store.d.ts +2 -0
  89. package/treegrid-global.d.ts +4904 -0
  90. package/utils.d.ts +2 -0
  91. package/dist/OwpAppProvider-F48yHfyI.js +0 -22
  92. package/dist/OwpAppProvider-F48yHfyI.js.map +0 -1
  93. package/dist/OwpStoreProvider-CqHkIIUm.js.map +0 -1
  94. package/dist/OwpUtils-DxEd-Pjo.js.map +0 -1
  95. package/dist/index-fDrAKBzK.js.map +0 -1
  96. package/dist/lazyLoadedSlices-CsgnywgU.js.map +0 -1
  97. package/dist/types/auth/authRoles.d.ts +0 -21
  98. package/dist/types/components/ErrorBoundary/index.d.ts +0 -1
  99. package/dist/types/components/EventEmitter/EventEmitter.d.ts +0 -34
  100. package/dist/types/components/EventEmitter/index.d.ts +0 -1
  101. package/dist/types/components/NavLinkAdapter/NavLinkAdapter.d.ts +0 -18
  102. package/dist/types/components/NavLinkAdapter/index.d.ts +0 -1
  103. package/dist/types/components/OwpButtonDelete/OwpButtonDelete.d.ts +0 -12
  104. package/dist/types/components/OwpButtonDelete/index.d.ts +0 -1
  105. package/dist/types/components/OwpButtonSave/OwpButtonSave.d.ts +0 -12
  106. package/dist/types/components/OwpButtonSave/index.d.ts +0 -1
  107. package/dist/types/components/OwpDialog/owpDialogSlice.d.ts +0 -14
  108. package/dist/types/components/OwpMessage/OwpMessage.d.ts +0 -11
  109. package/dist/types/components/OwpMessage/index.d.ts +0 -4
  110. package/dist/types/components/OwpMessage/owpMessageSlice.d.ts +0 -14
  111. package/dist/types/components/OwpPageSimple/OwpPageSimple.d.ts +0 -55
  112. package/dist/types/components/OwpPageSimple/OwpPageSimpleHeader.d.ts +0 -14
  113. package/dist/types/components/OwpPageSimple/OwpPageSimpleSidebar.d.ts +0 -19
  114. package/dist/types/components/OwpPageSimple/OwpPageSimpleSidebarContent.d.ts +0 -13
  115. package/dist/types/components/OwpPageSimple/index.d.ts +0 -1
  116. package/dist/types/components/OwpTreeView/OwpSlotTreeView.d.ts +0 -27
  117. package/dist/types/components/OwpTreeView/index.d.ts +0 -1
  118. package/dist/types/components/layouts/shared-components/AdjustFontSize.d.ts +0 -8
  119. package/dist/types/components/layouts/shared-components/OwpSettingsViewerDialog.d.ts +0 -8
  120. package/dist/types/components/layouts/shared-components/configurator/Configurator.d.ts +0 -9
  121. package/dist/types/components/layouts/shared-components/configurator/SettingsPanel.d.ts +0 -12
  122. package/dist/types/components/layouts/shared-components/configurator/ThemesPanel.d.ts +0 -12
  123. package/dist/types/components/shared-components/LightDarkModeToggle.d.ts +0 -8
  124. package/dist/types/components/shared-components/PageTitle.d.ts +0 -11
  125. package/dist/types/components/shared-components/data-table/DataTable.d.ts +0 -12
  126. package/dist/types/components/shared-components/data-table/DataTableTopToolbar.d.ts +0 -6
  127. package/dist/types/components/shared-components/index.d.ts +0 -7
  128. package/dist/types/components/withRouter/index.d.ts +0 -1
  129. package/dist/types/components/withRouter/withRouter.d.ts +0 -14
  130. package/dist/types/components/withRouterAndRef/index.d.ts +0 -1
  131. package/dist/types/components/withRouterAndRef/withRouterAndRef.d.ts +0 -14
  132. package/dist/types/store/withReducer.d.ts +0 -5
  133. package/dist/useStorage-B4ZrPct1.js +0 -65
  134. package/dist/useStorage-B4ZrPct1.js.map +0 -1
  135. package/dist/useTreeGridExcelExport-BjyBdpz1.js +0 -360
  136. package/dist/useTreeGridExcelExport-BjyBdpz1.js.map +0 -1
  137. /package/dist/types/components/{layouts/shared-components → OwpLanguageSwitcherSelect}/OwpLanguageSwitcherSelect.d.ts +0 -0
  138. /package/dist/types/components/{shared-components/data-table → OwpMrtTable}/utils/parseFromValuesOrFunc.d.ts +0 -0
@@ -1,21 +0,0 @@
1
- /**
2
- * The authRoles object defines the authorization roles for the Owp application.
3
- */
4
- export declare const authRoles: {
5
- /**
6
- * The admin role grants access to users with the 'admin' role.
7
- */
8
- admin: string[];
9
- /**
10
- * The staff role grants access to users with the 'admin' or 'staff' role.
11
- */
12
- staff: string[];
13
- /**
14
- * The user role grants access to users with the 'admin', 'staff', or 'user' role.
15
- */
16
- user: string[];
17
- /**
18
- * The onlyGuest role grants access to unauthenticated users.
19
- */
20
- onlyGuest: any[];
21
- };
@@ -1 +0,0 @@
1
- export { ErrorBoundary } from './ErrorBoundary';
@@ -1,34 +0,0 @@
1
- /**
2
- * The EventEmitter class is a custom implementation of an event emitter.
3
- * It provides methods for registering and emitting events.
4
- */
5
- export declare class EventEmitter {
6
- private events;
7
- constructor();
8
- /**
9
- * The _getEventListByName method returns the event list for a given event name.
10
- * If the event list does not exist, it creates a new one.
11
- *
12
- */
13
- private _getEventListByName;
14
- /**
15
- * The on method registers a callback function for a given event name.
16
- *
17
- */
18
- on<T extends unknown[]>(eventName: string, fn: (...args: T) => void): void;
19
- /**
20
- * The once method registers a callback function for a given event name that will only be called once.
21
- *
22
- */
23
- once(eventName: string, fn: (...args: unknown[]) => void): void;
24
- /**
25
- * The emit method triggers all registered callback functions for a given event name.
26
- *
27
- */
28
- emit(eventName: string, ...args: unknown[]): void;
29
- /**
30
- * The removeListener method removes a registered callback function for a given event name.
31
- *
32
- */
33
- removeListener(eventName: string, fn: (...args: unknown[]) => void): void;
34
- }
@@ -1 +0,0 @@
1
- export { EventEmitter } from './EventEmitter';
@@ -1,18 +0,0 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- import { NavLinkProps } from 'react-router-dom';
3
- export type NavLinkAdapterPropsType = NavLinkProps & {
4
- activeClassName?: string;
5
- activeStyle?: CSSProperties;
6
- children?: ReactNode;
7
- };
8
- /**
9
- * The NavLinkAdapter component is a wrapper around the React Router NavLink component.
10
- * It adds the ability to navigate programmatically using the useNavigate hook.
11
- * The component is memoized to prevent unnecessary re-renders.
12
- */
13
- declare const NavLinkAdapter: import("react").ForwardRefExoticComponent<NavLinkProps & {
14
- activeClassName?: string;
15
- activeStyle?: CSSProperties;
16
- children?: ReactNode;
17
- } & import("react").RefAttributes<HTMLAnchorElement>>;
18
- export default NavLinkAdapter;
@@ -1 +0,0 @@
1
- export { default } from './NavLinkAdapter';
@@ -1,12 +0,0 @@
1
- import { ConfirmProps } from '@/hooks/useConfirm';
2
- import { ButtonProps } from '@mui/material';
3
- export interface OwpButtonDeleteProps extends ButtonProps {
4
- confirmProps?: ConfirmProps;
5
- }
6
- /**
7
- * OwpButtonDelete 컴포넌트
8
- * @param confirmProps 확인 대화상자 옵션
9
- * @param children 하위 콘텐츠
10
- */
11
- declare const OwpButtonDelete: ({ confirmProps, children, ...buttonProps }: OwpButtonDeleteProps) => import("react/jsx-runtime").JSX.Element;
12
- export { OwpButtonDelete };
@@ -1 +0,0 @@
1
- export * from './OwpButtonDelete';
@@ -1,12 +0,0 @@
1
- import { ConfirmProps } from '@/hooks/useConfirm';
2
- import { ButtonProps } from '@mui/material';
3
- export interface OwpButtonSaveProps extends ButtonProps {
4
- confirmProps?: ConfirmProps;
5
- }
6
- /**
7
- * OwpButtonSave 컴포넌트
8
- * @param confirmProps 확인 대화상자 옵션
9
- * @param children 하위 콘텐츠
10
- */
11
- declare const OwpButtonSave: ({ confirmProps, children, ...buttonProps }: OwpButtonSaveProps) => import("react/jsx-runtime").JSX.Element;
12
- export { OwpButtonSave };
@@ -1 +0,0 @@
1
- export * from './OwpButtonSave';
@@ -1,14 +0,0 @@
1
- import { WithSlice } from '@reduxjs/toolkit';
2
- /**
3
- * The Owp Dialog slice
4
- */
5
- export declare const owpDialogSlice: any;
6
- declare module '@/store/lazyLoadedSlices' {
7
- interface LazyLoadedSlices extends WithSlice<typeof owpDialogSlice> {
8
- }
9
- }
10
- export declare const closeDialog: any, openDialog: any;
11
- export declare const selectOwpDialogState: any, selectOwpDialogProps: any;
12
- export type dialogSliceType = typeof owpDialogSlice;
13
- declare const _default: any;
14
- export default _default;
@@ -1,11 +0,0 @@
1
- export type OwpMessageVariantType = 'success' | 'error' | 'warning' | 'info';
2
- /**
3
- * OwpMessage
4
- * The OwpMessage component holds a snackbar that is capable of displaying message with 4 different variant. It uses the @mui/material React packages to create the components.
5
- */
6
- declare function OwpMessageBase(): import("react/jsx-runtime").JSX.Element;
7
- /**
8
- * @deprecated `notistack` 사용
9
- */
10
- export declare const OwpMessage: import("react").MemoExoticComponent<typeof OwpMessageBase>;
11
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * @deprecated `notistack` 사용
3
- */
4
- export { OwpMessage } from './OwpMessage';
@@ -1,14 +0,0 @@
1
- import { WithSlice } from '@reduxjs/toolkit';
2
- /**
3
- * The Message slice.
4
- */
5
- export declare const owpMessageSlice: any;
6
- declare module '@/store/lazyLoadedSlices' {
7
- interface LazyLoadedSlices extends WithSlice<typeof owpMessageSlice> {
8
- }
9
- }
10
- export declare const hideMessage: any, showMessage: any;
11
- export declare const selectOwpMessageOptions: any, selectOwpMessageState: any;
12
- export type messageSliceType = typeof owpMessageSlice;
13
- declare const _default: any;
14
- export default _default;
@@ -1,55 +0,0 @@
1
- import { Theme } from '@mui/system';
2
- import { ReactNode } from 'react';
3
- /**
4
- * OwpPageSimple 컴포넌트
5
- */
6
- declare const OwpPageSimple: import("react").NamedExoticComponent<((((import("@mui/system").SystemCssProperties<Theme> & {
7
- className?: string;
8
- leftSidebarContent?: ReactNode;
9
- leftSidebarVariant?: "permanent" | "persistent" | "temporary";
10
- rightSidebarContent?: ReactNode;
11
- rightSidebarVariant?: "permanent" | "persistent" | "temporary";
12
- header?: ReactNode;
13
- content?: ReactNode;
14
- scroll?: "normal" | "page" | "content";
15
- leftSidebarOpen?: boolean;
16
- rightSidebarOpen?: boolean;
17
- leftSidebarWidth?: number;
18
- rightSidebarWidth?: number;
19
- rightSidebarOnClose?: () => void;
20
- leftSidebarOnClose?: () => void;
21
- }) | (import("@mui/system").CSSPseudoSelectorProps<Theme> & {
22
- className?: string;
23
- leftSidebarContent?: ReactNode;
24
- leftSidebarVariant?: "permanent" | "persistent" | "temporary";
25
- rightSidebarContent?: ReactNode;
26
- rightSidebarVariant?: "permanent" | "persistent" | "temporary";
27
- header?: ReactNode;
28
- content?: ReactNode;
29
- scroll?: "normal" | "page" | "content";
30
- leftSidebarOpen?: boolean;
31
- rightSidebarOpen?: boolean;
32
- leftSidebarWidth?: number;
33
- rightSidebarWidth?: number;
34
- rightSidebarOnClose?: () => void;
35
- leftSidebarOnClose?: () => void;
36
- }) | Omit<import("@mui/system").CSSSelectorObjectOrCssVariables<Theme> & {
37
- className?: string;
38
- leftSidebarContent?: ReactNode;
39
- leftSidebarVariant?: "permanent" | "persistent" | "temporary";
40
- rightSidebarContent?: ReactNode;
41
- rightSidebarVariant?: "permanent" | "persistent" | "temporary";
42
- header?: ReactNode;
43
- content?: ReactNode;
44
- scroll?: "normal" | "page" | "content";
45
- leftSidebarOpen?: boolean;
46
- rightSidebarOpen?: boolean;
47
- leftSidebarWidth?: number;
48
- rightSidebarWidth?: number;
49
- rightSidebarOnClose?: () => void;
50
- leftSidebarOnClose?: () => void;
51
- }, "ref">) & import("react").RefAttributes<{
52
- toggleLeftSidebar: (T: boolean) => void;
53
- toggleRightSidebar: (T: boolean) => void;
54
- }>) & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>) & {}>;
55
- export { OwpPageSimple };
@@ -1,14 +0,0 @@
1
- import { ReactNode } from 'react';
2
- /**
3
- * Props for the OwpPageSimpleHeader component.
4
- */
5
- type OwpPageSimpleHeaderProps = {
6
- className?: string;
7
- header?: ReactNode;
8
- };
9
- /**
10
- * The OwpPageSimpleHeader component is a sub-component of the OwpPageSimple layout component.
11
- * It provides a header area for the layout.
12
- */
13
- declare function OwpPageSimpleHeader(props: OwpPageSimpleHeaderProps): import("react/jsx-runtime").JSX.Element;
14
- export { OwpPageSimpleHeader };
@@ -1,19 +0,0 @@
1
- import { SwipeableDrawerProps } from '@mui/material/SwipeableDrawer/SwipeableDrawer';
2
- import { ReactNode } from 'react';
3
- /**
4
- * Props for the OwpPageSimpleSidebar component.
5
- */
6
- type OwpPageSimpleSidebarProps = {
7
- open?: boolean;
8
- position?: SwipeableDrawerProps['anchor'];
9
- variant?: SwipeableDrawerProps['variant'];
10
- onClose?: () => void;
11
- children?: ReactNode;
12
- };
13
- /**
14
- * The OwpPageSimpleSidebar component.
15
- */
16
- declare const OwpPageSimpleSidebar: import("react").ForwardRefExoticComponent<OwpPageSimpleSidebarProps & import("react").RefAttributes<{
17
- toggleSidebar: (T: boolean) => void;
18
- }>>;
19
- export { OwpPageSimpleSidebar };
@@ -1,13 +0,0 @@
1
- import { ReactNode } from 'react';
2
- /**
3
- * Props for the OwpPageSimpleSidebarContent component.
4
- */
5
- type OwpPageSimpleSidebarContentProps = {
6
- innerScroll?: boolean;
7
- children?: ReactNode;
8
- };
9
- /**
10
- * The OwpPageSimpleSidebarContent component is a content container for the OwpPageSimpleSidebar component.
11
- */
12
- declare function OwpPageSimpleSidebarContent(props: OwpPageSimpleSidebarContentProps): import("react/jsx-runtime").JSX.Element;
13
- export { OwpPageSimpleSidebarContent };
@@ -1 +0,0 @@
1
- export { OwpPageSimple } from './OwpPageSimple';
@@ -1,27 +0,0 @@
1
- import { type TreeViewBaseItem } from '@mui/x-tree-view/models';
2
- import { type RichTreeViewPropsBase } from '@mui/x-tree-view/RichTreeView';
3
- type OwpSlotTreeViewProps<T extends TreeViewBaseItem> = {
4
- expanded: boolean;
5
- data: T[];
6
- } & RichTreeViewPropsBase;
7
- type TreeViewTransformValue = string | number | null | undefined;
8
- type TreeViewTransformItem = Record<string, TreeViewTransformValue>;
9
- type TreeViewTransformKeyProps<T extends TreeViewTransformItem> = {
10
- id: keyof T & string;
11
- parent: keyof T & string;
12
- label: keyof T & string;
13
- };
14
- /**
15
- * OwpSlotTreeView 컴포넌트
16
- * @param expanded expanded 값
17
- * @param data 데이터
18
- */
19
- export declare function OwpSlotTreeView<T extends TreeViewBaseItem>({ expanded, data, ...restProps }: OwpSlotTreeViewProps<T>): import("react/jsx-runtime").JSX.Element;
20
- /**
21
- * transformTreeViewListData 변환 함수
22
- * @param id 식별자
23
- * @param data 데이터
24
- * @param keyProps keyProps props
25
- */
26
- export declare const transformTreeViewListData: <T extends TreeViewTransformItem>(id: T[keyof T], data: T[], keyProps: TreeViewTransformKeyProps<T>) => TreeViewBaseItem[];
27
- export {};
@@ -1 +0,0 @@
1
- export * from './OwpSlotTreeView';
@@ -1,8 +0,0 @@
1
- type AdjustFontSizeProps = {
2
- className?: string;
3
- };
4
- /**
5
- * The adjust font size.
6
- */
7
- declare function AdjustFontSize(props: AdjustFontSizeProps): import("react/jsx-runtime").JSX.Element;
8
- export default AdjustFontSize;
@@ -1,8 +0,0 @@
1
- type OwpSettingsViewerDialogProps = {
2
- className?: string;
3
- };
4
- /**
5
- * The settings viewer dialog.
6
- */
7
- declare function OwpSettingsViewerDialog(props: OwpSettingsViewerDialogProps): import("react/jsx-runtime").JSX.Element;
8
- export { OwpSettingsViewerDialog };
@@ -1,9 +0,0 @@
1
- /**
2
- * The settings panel.
3
- */
4
- declare function Configurator(): import("react/jsx-runtime").JSX.Element;
5
- /**
6
- * ConfiguratorMemo 메모이징 컴포넌트
7
- */
8
- declare const ConfiguratorMemo: import("react").MemoExoticComponent<typeof Configurator>;
9
- export { ConfiguratorMemo as Configurator };
@@ -1,12 +0,0 @@
1
- import { SwipeableHandlers } from 'react-swipeable';
2
- type SettingsPanelProps = {
3
- settingsHandlers: SwipeableHandlers;
4
- onClose: () => void;
5
- open: boolean;
6
- };
7
- /**
8
- * SettingsPanel 컴포넌트
9
- * @param props 컴포넌트 props
10
- */
11
- declare function SettingsPanel(props: SettingsPanelProps): import("react/jsx-runtime").JSX.Element;
12
- export { SettingsPanel };
@@ -1,12 +0,0 @@
1
- import { SwipeableHandlers } from 'react-swipeable';
2
- type ThemesPanelProps = {
3
- schemesHandlers: SwipeableHandlers;
4
- onClose: () => void;
5
- open: boolean;
6
- };
7
- /**
8
- * ThemesPanel 컴포넌트
9
- * @param props 컴포넌트 props
10
- */
11
- declare function ThemesPanel(props: ThemesPanelProps): import("react/jsx-runtime").JSX.Element;
12
- export { ThemesPanel };
@@ -1,8 +0,0 @@
1
- import { OwpThemeOption } from '@/components/OwpThemeSelector/ThemePreview';
2
- type LightDarkModeToggleProps = {
3
- className?: string;
4
- lightTheme: OwpThemeOption;
5
- darkTheme: OwpThemeOption;
6
- };
7
- declare function LightDarkModeToggle(props: LightDarkModeToggleProps): import("react/jsx-runtime").JSX.Element;
8
- export default LightDarkModeToggle;
@@ -1,11 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type PageTitleProps = {
3
- className?: string;
4
- title?: string;
5
- subtitle?: string;
6
- backUrl?: string;
7
- backTitle?: string;
8
- badgeTitle?: string | ReactNode;
9
- };
10
- declare function PageTitle(props: PageTitleProps): import("react/jsx-runtime").JSX.Element;
11
- export default PageTitle;
@@ -1,12 +0,0 @@
1
- import { type MaterialReactTableProps, type MRT_RowData } from 'material-react-table';
2
- export type DataTableProps<TData extends MRT_RowData> = MaterialReactTableProps<TData> & {
3
- canTotalCountRow?: boolean;
4
- canUseTreeGridStyle?: boolean;
5
- totalCount?: number;
6
- };
7
- /**
8
- * MRT 기반 공통 테이블 컴포넌트
9
- * @param props Material React Table props
10
- */
11
- declare function DataTable<TData extends MRT_RowData>(props: DataTableProps<TData>): import("react/jsx-runtime").JSX.Element;
12
- export default DataTable;
@@ -1,6 +0,0 @@
1
- import { MRT_RowData, MRT_TableInstance } from 'material-react-table';
2
- export interface MRT_TopToolbarProps<TData extends MRT_RowData> {
3
- table: MRT_TableInstance<TData>;
4
- }
5
- declare function DataTableTopToolbar<TData extends MRT_RowData>({ table }: MRT_TopToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
6
- export default DataTableTopToolbar;
@@ -1,7 +0,0 @@
1
- export * from './LightDarkModeToggle';
2
- export * from './PageBreadcrumb';
3
- export * from './PageTitle';
4
- export * from './data-table/DataTable';
5
- export * from './data-table/DataTableTopToolbar';
6
- export * from './tabs/OwpTab';
7
- export * from './tabs/OwpTabs';
@@ -1 +0,0 @@
1
- export { default } from './withRouter';
@@ -1,14 +0,0 @@
1
- import { useLocation, useNavigate } from 'react-router-dom';
2
- import { ComponentType } from 'react';
3
- export type WithRouterProps = {
4
- location?: ReturnType<typeof useLocation>;
5
- params?: Record<string, string>;
6
- navigate?: ReturnType<typeof useNavigate>;
7
- };
8
- /**
9
- * The withRouter function is a higher-order component that wraps a component with the useLocation, useParams, and useNavigate hooks from React Router.
10
- * It passes the location, params, and navigate objects as props to the wrapped component.
11
- * The component is memoized to prevent unnecessary re-renders.
12
- */
13
- declare const withRouter: <Props extends WithRouterProps>(Component: ComponentType<Props>) => import("react").NamedExoticComponent<Omit<Props, keyof WithRouterProps>>;
14
- export default withRouter;
@@ -1 +0,0 @@
1
- export { default } from './withRouterAndRef';
@@ -1,14 +0,0 @@
1
- import { ComponentType } from 'react';
2
- import { useLocation, useNavigate } from 'react-router-dom';
3
- export type WithRouterProps = {
4
- location: ReturnType<typeof useLocation>;
5
- params: Record<string, string>;
6
- navigate: ReturnType<typeof useNavigate>;
7
- };
8
- /**
9
- * The withRouter function is a higher-order component that wraps a component with the useLocation, useParams, and useNavigate hooks from React Router.
10
- * It passes the location, params, and navigate objects as props to the wrapped component.
11
- * The component is memoized to prevent unnecessary re-renders.
12
- */
13
- declare const withRouterAndRef: <Props extends WithRouterProps>(Component: ComponentType<Props>) => () => import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
14
- export default withRouterAndRef;
@@ -1,5 +0,0 @@
1
- import { Reducer } from '@reduxjs/toolkit';
2
- /**
3
- * A Higher Order Component that injects a reducer into the Redux store.
4
- */
5
- export declare const withReducer: <P extends object>(key: string, reducer: Reducer) => (WrappedComponent: React.FC<P>) => (props: P) => import("react/jsx-runtime").JSX.Element;
@@ -1,65 +0,0 @@
1
- var g = Object.defineProperty;
2
- var u = (n, o) => g(n, "name", { value: o, configurable: !0 });
3
- import { S as e } from "./storageKeys-DRzte9LZ.js";
4
- import { useCallback as c, useMemo as f } from "react";
5
- import { i as l } from "./isTypedArray-DPyC49cI.js";
6
- const p = [
7
- e.currentLanguage,
8
- e.currentShortcuts,
9
- e.currentUserId,
10
- e.currentLogoSrc,
11
- e.owpEnv
12
- ], a = /* @__PURE__ */ u(() => typeof window > "u" ? null : window.localStorage, "getLocalStorage"), m = /* @__PURE__ */ u((n, o) => {
13
- if (!n)
14
- return o;
15
- try {
16
- return JSON.parse(n);
17
- } catch {
18
- return o;
19
- }
20
- }, "safeParseJson"), I = /* @__PURE__ */ u(() => {
21
- const n = c(() => {
22
- const t = a();
23
- if (!t)
24
- return;
25
- const r = p.map((s) => [s, t.getItem(s)]);
26
- t.clear(), r.forEach(([s, i]) => {
27
- i !== null && t.setItem(s, i);
28
- });
29
- }, []), o = c(() => {
30
- const t = a(), r = m(
31
- (t == null ? void 0 : t.getItem(e.currentUser)) ?? null,
32
- null
33
- );
34
- return l(r) ? {
35
- role: ["admin"],
36
- data: {
37
- displayName: r.USERNAME,
38
- email: r.EMAIL,
39
- MES_STARTPAGE: r.MES_STARTPAGE,
40
- STARTPAGE: r.STARTPAGE,
41
- USERSEQ: r.USERSEQ,
42
- photoURL: ""
43
- }
44
- } : null;
45
- }, []), E = c((t) => {
46
- const r = a();
47
- r && r.setItem(e.owpEnv, JSON.stringify(t ?? {}));
48
- }, []), S = c(() => {
49
- const t = a(), r = m((t == null ? void 0 : t.getItem(e.owpEnv)) ?? null, {});
50
- return l(r) ? r : {};
51
- }, []);
52
- return f(
53
- () => ({
54
- resetStorage: n,
55
- getCurrentUser: o,
56
- setEnv: E,
57
- getEnv: S
58
- }),
59
- [o, S, n, E]
60
- );
61
- }, "useStorage");
62
- export {
63
- I as u
64
- };
65
- //# sourceMappingURL=useStorage-B4ZrPct1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useStorage-B4ZrPct1.js","sources":["../src/hooks/useStorage.ts"],"sourcesContent":["import { STORAGE_KEYS } from '@/constants/storageKeys';\nimport { isPlainObject } from 'es-toolkit';\nimport { useCallback, useMemo } from 'react';\n\ntype StorageEnv = { [key: string]: any };\n\ntype StoredCurrentUserRaw = {\n USERNAME?: string;\n EMAIL?: string;\n MES_STARTPAGE?: string;\n STARTPAGE?: string;\n USERSEQ?: any;\n};\n\ntype StoredCurrentUser = {\n role: string[];\n data: {\n displayName?: string;\n email?: string;\n MES_STARTPAGE?: string;\n STARTPAGE?: string;\n USERSEQ?: any;\n photoURL: string;\n };\n};\n\nconst PRESERVED_STORAGE_KEYS = [\n STORAGE_KEYS.currentLanguage,\n STORAGE_KEYS.currentShortcuts,\n STORAGE_KEYS.currentUserId,\n STORAGE_KEYS.currentLogoSrc,\n STORAGE_KEYS.owpEnv,\n] as const;\n\n/**\n * 브라우저 스토리지 조회\n */\nconst getLocalStorage = () => {\n if (typeof window === 'undefined') {\n return null;\n }\n\n return window.localStorage;\n};\n\n/**\n * 스토리지 문자열 안전 파싱\n * @param raw 스토리지 원본 문자열\n * @param fallback 파싱 실패 시 기본값\n */\nconst safeParseJson = <T>(raw: string | null, fallback: T): T => {\n if (!raw) {\n return fallback;\n }\n\n try {\n return JSON.parse(raw) as T;\n } catch {\n return fallback;\n }\n};\n\n/**\n * 스토리지 유틸 훅\n */\nexport const useStorage = () => {\n const resetStorage = useCallback(() => {\n const storage = getLocalStorage();\n\n if (!storage) {\n return;\n }\n\n const preservedEntries = PRESERVED_STORAGE_KEYS.map((key) => [key, storage.getItem(key)] as const);\n\n storage.clear();\n\n preservedEntries.forEach(([key, value]) => {\n if (value === null) {\n return;\n }\n\n storage.setItem(key, value);\n });\n }, []);\n\n const getCurrentUser = useCallback((): StoredCurrentUser | null => {\n const storage = getLocalStorage();\n const userData = safeParseJson<StoredCurrentUserRaw | null>(\n storage?.getItem(STORAGE_KEYS.currentUser) ?? null,\n null,\n );\n\n if (!isPlainObject(userData)) {\n return null;\n }\n\n return {\n role: ['admin'],\n data: {\n displayName: userData.USERNAME,\n email: userData.EMAIL,\n MES_STARTPAGE: userData.MES_STARTPAGE,\n STARTPAGE: userData.STARTPAGE,\n USERSEQ: userData.USERSEQ,\n photoURL: '',\n },\n };\n }, []);\n\n const setEnv = useCallback((env: StorageEnv) => {\n const storage = getLocalStorage();\n\n if (!storage) {\n return;\n }\n\n storage.setItem(STORAGE_KEYS.owpEnv, JSON.stringify(env ?? {}));\n }, []);\n\n const getEnv = useCallback((): StorageEnv => {\n const storage = getLocalStorage();\n const envData = safeParseJson<StorageEnv | null>(storage?.getItem(STORAGE_KEYS.owpEnv) ?? null, {});\n\n return isPlainObject(envData) ? envData : {};\n }, []);\n\n return useMemo(\n () => ({\n resetStorage,\n getCurrentUser,\n setEnv,\n getEnv,\n }),\n [getCurrentUser, getEnv, resetStorage, setEnv],\n );\n};\n"],"names":["PRESERVED_STORAGE_KEYS","STORAGE_KEYS","getLocalStorage","__name","safeParseJson","raw","fallback","useStorage","resetStorage","useCallback","storage","preservedEntries","key","value","getCurrentUser","userData","isPlainObject","setEnv","env","getEnv","envData","useMemo"],"mappings":";;;;;AA0BA,MAAMA,IAAyB;AAAA,EAC7BC,EAAa;AAAA,EACbA,EAAa;AAAA,EACbA,EAAa;AAAA,EACbA,EAAa;AAAA,EACbA,EAAa;AACf,GAKMC,IAAkB,gBAAAC,EAAA,MAClB,OAAO,SAAW,MACb,OAGF,OAAO,cALQ,oBAalBC,IAAgB,gBAAAD,EAAA,CAAIE,GAAoBC,MAAmB;AAC/D,MAAI,CAACD;AACH,WAAOC;AAGT,MAAI;AACF,WAAO,KAAK,MAAMD,CAAG;AAAA,EACvB,QAAQ;AACN,WAAOC;AAAA,EACT;AACF,GAVsB,kBAeTC,IAAa,gBAAAJ,EAAA,MAAM;AAC9B,QAAMK,IAAeC,EAAY,MAAM;AACrC,UAAMC,IAAUR,EAAA;AAEhB,QAAI,CAACQ;AACH;AAGF,UAAMC,IAAmBX,EAAuB,IAAI,CAACY,MAAQ,CAACA,GAAKF,EAAQ,QAAQE,CAAG,CAAC,CAAU;AAEjG,IAAAF,EAAQ,MAAA,GAERC,EAAiB,QAAQ,CAAC,CAACC,GAAKC,CAAK,MAAM;AACzC,MAAIA,MAAU,QAIdH,EAAQ,QAAQE,GAAKC,CAAK;AAAA,IAC5B,CAAC;AAAA,EACH,GAAG,CAAA,CAAE,GAECC,IAAiBL,EAAY,MAAgC;AACjE,UAAMC,IAAUR,EAAA,GACVa,IAAWX;AAAA,OACfM,KAAA,gBAAAA,EAAS,QAAQT,EAAa,iBAAgB;AAAA,MAC9C;AAAA,IAAA;AAGF,WAAKe,EAAcD,CAAQ,IAIpB;AAAA,MACL,MAAM,CAAC,OAAO;AAAA,MACd,MAAM;AAAA,QACJ,aAAaA,EAAS;AAAA,QACtB,OAAOA,EAAS;AAAA,QAChB,eAAeA,EAAS;AAAA,QACxB,WAAWA,EAAS;AAAA,QACpB,SAASA,EAAS;AAAA,QAClB,UAAU;AAAA,MAAA;AAAA,IACZ,IAZO;AAAA,EAcX,GAAG,CAAA,CAAE,GAECE,IAASR,EAAY,CAACS,MAAoB;AAC9C,UAAMR,IAAUR,EAAA;AAEhB,IAAKQ,KAILA,EAAQ,QAAQT,EAAa,QAAQ,KAAK,UAAUiB,KAAO,CAAA,CAAE,CAAC;AAAA,EAChE,GAAG,CAAA,CAAE,GAECC,IAASV,EAAY,MAAkB;AAC3C,UAAMC,IAAUR,EAAA,GACVkB,IAAUhB,GAAiCM,KAAA,gBAAAA,EAAS,QAAQT,EAAa,YAAW,MAAM,EAAE;AAElG,WAAOe,EAAcI,CAAO,IAAIA,IAAU,CAAA;AAAA,EAC5C,GAAG,CAAA,CAAE;AAEL,SAAOC;AAAA,IACL,OAAO;AAAA,MACL,cAAAb;AAAA,MACA,gBAAAM;AAAA,MACA,QAAAG;AAAA,MACA,QAAAE;AAAA,IAAA;AAAA,IAEF,CAACL,GAAgBK,GAAQX,GAAcS,CAAM;AAAA,EAAA;AAEjD,GAvE0B;"}