@owp/core 1.28.0 → 1.30.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 (94) hide show
  1. package/dist/{Close-DnXhM4Ms.js → Close-DnXyQZKh.js} +435 -378
  2. package/dist/Close-DnXyQZKh.js.map +1 -0
  3. package/dist/OwpStoreProvider-Bx5p7ooQ.js +30 -0
  4. package/dist/OwpStoreProvider-Bx5p7ooQ.js.map +1 -0
  5. package/dist/{OwpUtils-9lHSCdan.js → OwpUtils-C81bM1Gz.js} +2 -2
  6. package/dist/OwpUtils-C81bM1Gz.js.map +1 -0
  7. package/dist/{QuickPanel-BOgEYOAw.js → QuickPanel-CO7Tyc8C.js} +2 -2
  8. package/dist/{QuickPanel-BOgEYOAw.js.map → QuickPanel-CO7Tyc8C.js.map} +1 -1
  9. package/dist/colors.js +3 -18
  10. package/dist/colors.js.map +1 -1
  11. package/dist/constants.js +17 -20
  12. package/dist/constants.js.map +1 -1
  13. package/dist/context.js +64 -36
  14. package/dist/context.js.map +1 -1
  15. package/dist/hooks.js +70 -70
  16. package/dist/hooks.js.map +1 -1
  17. package/dist/{index-B8tZAW8i.js → index-KlA5Es4t.js} +11931 -12745
  18. package/dist/index-KlA5Es4t.js.map +1 -0
  19. package/dist/index.js +88 -115
  20. package/dist/{isTypedArray-xp-fB7W4.js → isTypedArray-DPyC49cI.js} +3 -3
  21. package/dist/{isTypedArray-xp-fB7W4.js.map → isTypedArray-DPyC49cI.js.map} +1 -1
  22. package/dist/{lazyLoadedSlices-BAbcXcEU.js → lazyLoadedSlices-DC7yg4GT.js} +885 -845
  23. package/dist/lazyLoadedSlices-DC7yg4GT.js.map +1 -0
  24. package/dist/localStorageKeys-Che0CNci.js +10 -0
  25. package/dist/localStorageKeys-Che0CNci.js.map +1 -0
  26. package/dist/owp-app.css +1 -1
  27. package/dist/owpDark-DAY0F6Ph.js +21 -0
  28. package/dist/owpDark-DAY0F6Ph.js.map +1 -0
  29. package/dist/storageKeys-C6xHFiTo.js +42 -0
  30. package/dist/storageKeys-C6xHFiTo.js.map +1 -0
  31. package/dist/store.js +37 -3
  32. package/dist/store.js.map +1 -1
  33. package/dist/{toUpper-CilZrxEa.js → toUpper-i_I6Tyuv.js} +2 -2
  34. package/dist/{toUpper-CilZrxEa.js.map → toUpper-i_I6Tyuv.js.map} +1 -1
  35. package/dist/treeGrid-DtKg-9uf.js +8 -0
  36. package/dist/treeGrid-DtKg-9uf.js.map +1 -0
  37. package/dist/{treeGridUtil-_FDvRzzt.js → treeGridUtil-WTM_djsN.js} +62 -61
  38. package/dist/{treeGridUtil-_FDvRzzt.js.map → treeGridUtil-WTM_djsN.js.map} +1 -1
  39. package/dist/types/components/OwpErrorBoundary/OwpErrorBoundary.d.ts +1 -1
  40. package/dist/types/components/OwpLayout/OwpLayout.d.ts +1 -1
  41. package/dist/types/components/OwpTable/OwpTable.d.ts +1 -1
  42. package/dist/types/components/OwpTabs/OwpTab.d.ts +1 -1
  43. package/dist/types/components/OwpTabs/OwpTabs.d.ts +1 -1
  44. package/dist/types/components/OwpThemeSelector/SchemePreview.d.ts +1 -1
  45. package/dist/types/components/OwpThemeSelector/ThemePreview.d.ts +1 -1
  46. package/dist/types/components/layouts/shared-components/navigation/store/navigationSlice.d.ts +5 -5
  47. package/dist/types/components/layouts/themeLayoutConfigs.d.ts +1 -1
  48. package/dist/types/context/OwpAppProvider.d.ts +4 -3
  49. package/dist/types/default-settings/OwpDefaultSettings.d.ts +25 -171
  50. package/dist/types/hooks/index.d.ts +1 -0
  51. package/dist/types/hooks/useAccessTokenGuard.d.ts +12 -0
  52. package/dist/types/hooks/useStorage.d.ts +0 -13
  53. package/dist/types/index.d.ts +1 -5
  54. package/dist/types/store/index.d.ts +1 -0
  55. package/dist/types/{components/OwpSettings → store}/owpSettingsSlice.d.ts +1 -456
  56. package/dist/types/{components/OwpSettings/OwpSettings.d.ts → types/OwpSettingsTypes.d.ts} +0 -12
  57. package/dist/types/utils/common/OwpUtils.d.ts +1 -1
  58. package/dist/usePageLockLoading-BUI_3PlR.js +39 -0
  59. package/dist/usePageLockLoading-BUI_3PlR.js.map +1 -0
  60. package/dist/useShortcuts-CCf98L8m.js +241 -0
  61. package/dist/useShortcuts-CCf98L8m.js.map +1 -0
  62. package/dist/useStorage-CuUmH4fD.js +50 -0
  63. package/dist/useStorage-CuUmH4fD.js.map +1 -0
  64. package/dist/useTreeGridExcelExport-N2nOKmkz.js +138 -0
  65. package/dist/useTreeGridExcelExport-N2nOKmkz.js.map +1 -0
  66. package/dist/utils.js +294 -293
  67. package/dist/utils.js.map +1 -1
  68. package/package.json +2 -11
  69. package/dist/Close-DnXhM4Ms.js.map +0 -1
  70. package/dist/OwpStoreProvider-B7W25pkq.js +0 -34
  71. package/dist/OwpStoreProvider-B7W25pkq.js.map +0 -1
  72. package/dist/OwpUtils-9lHSCdan.js.map +0 -1
  73. package/dist/index-B8tZAW8i.js.map +0 -1
  74. package/dist/language-CwsGUe4C.js +0 -5
  75. package/dist/language-CwsGUe4C.js.map +0 -1
  76. package/dist/lazyLoadedSlices-BAbcXcEU.js.map +0 -1
  77. package/dist/storageKeys-DRzte9LZ.js +0 -15
  78. package/dist/storageKeys-DRzte9LZ.js.map +0 -1
  79. package/dist/treeGrid-CjB04cBq.js +0 -35
  80. package/dist/treeGrid-CjB04cBq.js.map +0 -1
  81. package/dist/types/components/OwpSettings/OwpLayoutConfig.d.ts +0 -16
  82. package/dist/types/components/OwpSettings/OwpLayoutConfigs.d.ts +0 -14
  83. package/dist/types/components/OwpSettings/index.d.ts +0 -1
  84. package/dist/types/components/OwpSettings/palette-generator/PalettePreview.d.ts +0 -14
  85. package/dist/types/components/OwpSettings/palette-generator/PaletteSelector.d.ts +0 -15
  86. package/dist/types/components/OwpSettings/palette-generator/SectionPreview.d.ts +0 -12
  87. package/dist/types/store/apiService.d.ts +0 -6
  88. package/dist/useOwpTranslation-BelpX-fd.js +0 -174
  89. package/dist/useOwpTranslation-BelpX-fd.js.map +0 -1
  90. package/dist/useStorage-BA0D8KA7.js +0 -67
  91. package/dist/useStorage-BA0D8KA7.js.map +0 -1
  92. package/dist/useTreeGridExcelExport-QNcWzx5v.js +0 -195
  93. package/dist/useTreeGridExcelExport-QNcWzx5v.js.map +0 -1
  94. /package/dist/types/{components/OwpSettings → types}/ThemeFormConfigTypes.d.ts +0 -0
@@ -1,183 +1,37 @@
1
+ import type { OwpSettingsConfigType, OwpThemesType } from '@/types/OwpSettingsTypes';
1
2
  import { ThemeOptions } from '@mui/material/styles/createTheme';
3
+ import { PartialDeep } from 'type-fest';
4
+ /**
5
+ * 기본 layout 설정
6
+ * @param style layout 스타일
7
+ */
8
+ export declare function getDefaultLayout(style?: string): OwpSettingsConfigType['layout'];
9
+ /**
10
+ * 기본 theme 설정
11
+ * @param themesConfig 앱 theme 설정
12
+ */
13
+ export declare function getDefaultThemeSettings(themesConfig?: PartialDeep<OwpThemesType>): OwpSettingsConfigType['theme'];
2
14
  /**
3
15
  * The defaultSettings object defines the default settings for the Owp application.
4
16
  */
5
- export declare const defaultSettings: {
6
- customScrollbars: boolean;
7
- direction: string;
8
- theme: {
9
- main: {
10
- palette: {
11
- mode: string;
12
- text: {
13
- primary: string;
14
- secondary: string;
15
- disabled: string;
16
- };
17
- common: {
18
- black: string;
19
- white: string;
20
- };
21
- background: {
22
- paper: string;
23
- default: string;
24
- };
25
- primary: {
26
- main: string;
27
- };
28
- secondary: {
29
- main: string;
30
- };
31
- success: {
32
- main: string;
33
- };
34
- info: {
35
- main: string;
36
- contrastText: string;
37
- };
38
- warning: {
39
- main: string;
40
- contrastText: string;
41
- };
42
- error: {
43
- main: string;
44
- };
45
- };
46
- };
47
- navbar: {
48
- palette: {
49
- mode: string;
50
- text: {
51
- primary: string;
52
- secondary: string;
53
- disabled: string;
54
- };
55
- common: {
56
- black: string;
57
- white: string;
58
- };
59
- background: {
60
- paper: string;
61
- default: string;
62
- };
63
- primary: {
64
- main: string;
65
- };
66
- secondary: {
67
- main: string;
68
- };
69
- success: {
70
- main: string;
71
- };
72
- info: {
73
- main: string;
74
- contrastText: string;
75
- };
76
- warning: {
77
- main: string;
78
- contrastText: string;
79
- };
80
- error: {
81
- main: string;
82
- };
83
- };
84
- } & {
85
- palette: {
86
- background: {
87
- default: string;
88
- };
89
- };
90
- };
91
- toolbar: {
92
- palette: {
93
- mode: string;
94
- text: {
95
- primary: string;
96
- secondary: string;
97
- disabled: string;
98
- };
99
- common: {
100
- black: string;
101
- white: string;
102
- };
103
- background: {
104
- paper: string;
105
- default: string;
106
- };
107
- primary: {
108
- main: string;
109
- };
110
- secondary: {
111
- main: string;
112
- };
113
- success: {
114
- main: string;
115
- };
116
- info: {
117
- main: string;
118
- contrastText: string;
119
- };
120
- warning: {
121
- main: string;
122
- contrastText: string;
123
- };
124
- error: {
125
- main: string;
126
- };
127
- };
128
- } & {
129
- palette: {
130
- mode: string;
131
- background: {
132
- default: string;
133
- };
134
- };
135
- };
136
- footer: {
137
- palette: {
138
- mode: string;
139
- text: {
140
- primary: string;
141
- secondary: string;
142
- disabled: string;
143
- };
144
- common: {
145
- black: string;
146
- white: string;
147
- };
148
- background: {
149
- paper: string;
150
- default: string;
151
- };
152
- primary: {
153
- main: string;
154
- };
155
- secondary: {
156
- main: string;
157
- };
158
- success: {
159
- main: string;
160
- };
161
- info: {
162
- main: string;
163
- contrastText: string;
164
- };
165
- warning: {
166
- main: string;
167
- contrastText: string;
168
- };
169
- error: {
170
- main: string;
171
- };
172
- };
173
- };
174
- };
175
- };
17
+ export declare const defaultSettings: OwpSettingsConfigType;
176
18
  /**
177
19
  * The getParsedQuerySettings function parses the query string to retrieve the default settings for the Owp application.
178
20
  * It returns a OwpSettingsConfigType object that can be used to configure the application.
179
21
  */
180
22
  export declare function getParsedQuerySettings(): {};
23
+ /**
24
+ * 기본 settings와 신규 settings 병합
25
+ * @param _defaultSettings 기준 settings
26
+ * @param _newSettings 신규 settings
27
+ */
28
+ export declare function generateSettings(_defaultSettings: OwpSettingsConfigType, _newSettings: PartialDeep<OwpSettingsConfigType>): OwpSettingsConfigType;
29
+ /**
30
+ * 앱 초기 settings 생성
31
+ * @param settingsConfig 앱 settings override
32
+ * @param themesConfig 앱 theme 설정
33
+ */
34
+ export declare function createInitialOwpSettings(settingsConfig?: PartialDeep<OwpSettingsConfigType>, themesConfig?: PartialDeep<OwpThemesType>): OwpSettingsConfigType;
181
35
  /**
182
36
  * The defaultThemeOptions object defines the default options for the MUI theme.
183
37
  */
@@ -1,4 +1,5 @@
1
1
  export * from './useCommonCodeList';
2
+ export * from './useAccessTokenGuard';
2
3
  export * from './useConfirm';
3
4
  export * from './useCurrentLanguage';
4
5
  export * from './useCurrentLogoSrc';
@@ -0,0 +1,12 @@
1
+ export interface UseAccessTokenGuardOptions {
2
+ loginPath?: string;
3
+ isEnabled?: boolean;
4
+ snackbarMessageKey?: string;
5
+ }
6
+ /**
7
+ * 액세스 토큰 기반 로그인 가드
8
+ * @param loginPath 로그인 라우트 경로
9
+ * @param isEnabled 가드 활성화 여부
10
+ * @param snackbarMessageKey 로그인 필요 안내 메시지 키
11
+ */
12
+ export declare const useAccessTokenGuard: ({ loginPath, isEnabled, snackbarMessageKey, }?: UseAccessTokenGuardOptions) => boolean;
@@ -1,17 +1,6 @@
1
1
  export type StorageEnv = {
2
2
  [key: string]: any;
3
3
  };
4
- type StoredCurrentUser = {
5
- role: string[];
6
- data: {
7
- displayName?: string;
8
- email?: string;
9
- MES_STARTPAGE?: string;
10
- STARTPAGE?: string;
11
- USERSEQ?: any;
12
- photoURL: string;
13
- };
14
- };
15
4
  /**
16
5
  * 앱 환경값 저장
17
6
  * @param env 저장할 환경값
@@ -26,8 +15,6 @@ export declare const getEnv: () => StorageEnv;
26
15
  */
27
16
  export declare const useStorage: () => {
28
17
  resetStorage: () => void;
29
- getCurrentUser: () => StoredCurrentUser | null;
30
18
  setEnv: (env: StorageEnv) => void;
31
19
  getEnv: () => StorageEnv;
32
20
  };
33
- export {};
@@ -1,5 +1,6 @@
1
1
  export { DialogsProvider } from '@toolpad/core/useDialogs';
2
2
  export * from './components/layouts/themeLayouts';
3
+ export * from './default-settings/OwpDefaultSettings';
3
4
  export * from './components/OwpLanguageSwitcherSelect';
4
5
  export * from './components/OwpAutoLogoutDialog/OwpAutoLogoutDialog';
5
6
  export * from './components/OwpBarcodeInput/OwpBarcodeInputField';
@@ -52,11 +53,6 @@ export * from './components/OwpScrollbars';
52
53
  export * from './components/OwpSearch';
53
54
  export * from './components/OwpSearchFilter';
54
55
  export * from './components/OwpSection';
55
- export * from './components/OwpSettings';
56
- export * from './components/OwpSettings/OwpLayoutConfig';
57
- export * from './components/OwpSettings/OwpLayoutConfigs';
58
- export * from './components/OwpSettings/owpSettingsSlice';
59
- export * from './components/OwpSettings/ThemeFormConfigTypes';
60
56
  export * from './components/OwpShortcuts';
61
57
  export * from './components/OwpSidePanel';
62
58
  export * from './components/OwpSplashScreen';
@@ -4,3 +4,4 @@
4
4
  export { OwpStoreProvider, type OwpStoreProviderProps } from '../context/OwpStoreProvider';
5
5
  export { createAppSelector, makeStore } from './store';
6
6
  export type { AppAction, AppDispatch, AppStore, AppThunk, RootState } from './store';
7
+ export * from './owpSettingsSlice';