@owp/core 2.2.6 → 2.3.1
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/dist/_virtual/index5.js +5 -2
- package/dist/_virtual/index5.js.map +1 -1
- package/dist/_virtual/index6.js +2 -5
- package/dist/_virtual/index6.js.map +1 -1
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/OwpDialog/OwpDialog.js +30 -32
- package/dist/components/OwpDialog/OwpDialog.js.map +1 -1
- package/dist/components/OwpLayout/OwpLayout.js +29 -30
- package/dist/components/OwpLayout/OwpLayout.js.map +1 -1
- package/dist/components/OwpMrtTable/OwpMrtTable.js +393 -255
- package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
- package/dist/components/OwpScrollbars/OwpScrollbars.js +16 -17
- package/dist/components/OwpScrollbars/OwpScrollbars.js.map +1 -1
- package/dist/components/OwpStyleProvider/OwpStyleProvider.js +28 -29
- package/dist/components/OwpStyleProvider/OwpStyleProvider.js.map +1 -1
- package/dist/components/OwpTable/OwpDataTable.js +45 -45
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpTable.js +6 -6
- package/dist/components/OwpTable/OwpTable.js.map +1 -1
- package/dist/components/OwpTable/OwpVerticalTable.js +55 -53
- package/dist/components/OwpTable/OwpVerticalTable.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +80 -74
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/constants/storageKeys.js +1 -0
- package/dist/constants/storageKeys.js.map +1 -1
- package/dist/contexts/OwpCoreProvider.js +22 -36
- package/dist/contexts/OwpCoreProvider.js.map +1 -1
- package/dist/contexts/OwpStoreProvider.js +9 -9
- package/dist/contexts/OwpStoreProvider.js.map +1 -1
- package/dist/hooks/useCurrentUserSeq.js +11 -0
- package/dist/hooks/useCurrentUserSeq.js.map +1 -0
- package/dist/hooks/useNavbar.js +24 -0
- package/dist/hooks/useNavbar.js.map +1 -0
- package/dist/hooks/useOwpSettings.js +21 -0
- package/dist/hooks/useOwpSettings.js.map +1 -0
- package/dist/hooks.js +78 -62
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +58 -59
- package/dist/layout/Layout.js +28 -29
- package/dist/layout/Layout.js.map +1 -1
- package/dist/layout/components/layouts/FooterLayout.js +15 -16
- package/dist/layout/components/layouts/FooterLayout.js.map +1 -1
- package/dist/layout/components/layouts/NavbarToggleFabLayout.js +21 -18
- package/dist/layout/components/layouts/NavbarToggleFabLayout.js.map +1 -1
- package/dist/layout/components/layouts/NavbarWrapperLayout.js +20 -21
- package/dist/layout/components/layouts/NavbarWrapperLayout.js.map +1 -1
- package/dist/layout/components/navbar/NavbarPinToggleButton.js +10 -11
- package/dist/layout/components/navbar/NavbarPinToggleButton.js.map +1 -1
- package/dist/layout/components/navbar/NavbarToggleButton.js +31 -32
- package/dist/layout/components/navbar/NavbarToggleButton.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyle.js +36 -37
- package/dist/layout/components/navbar/style/NavbarStyle.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyleContent.js +29 -30
- package/dist/layout/components/navbar/style/NavbarStyleContent.js.map +1 -1
- package/dist/layout/components/navigation/Navigation.js +18 -22
- package/dist/layout/components/navigation/Navigation.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +55 -60
- package/dist/layout/components/toggles/NavigationSearchToggle.js.map +1 -1
- package/dist/layout/components/toggles/NavigationShortcutsToggle.js +44 -49
- package/dist/layout/components/toggles/NavigationShortcutsToggle.js.map +1 -1
- package/dist/layout/components/toolbar/ToolbarLayout.js +26 -27
- package/dist/layout/components/toolbar/ToolbarLayout.js.map +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/store/atoms/navbarAtoms.js +84 -0
- package/dist/store/atoms/navbarAtoms.js.map +1 -0
- package/dist/store/atoms/owpSettingsAtoms.js +140 -0
- package/dist/store/atoms/owpSettingsAtoms.js.map +1 -0
- package/dist/store/atoms/owpStore.js +29 -0
- package/dist/store/atoms/owpStore.js.map +1 -0
- package/dist/store.js +44 -39
- package/dist/store.js.map +1 -1
- package/dist/types/components/OwpDialog/OwpDialog.d.ts +1 -9
- package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +9 -0
- package/dist/types/components/OwpPicker/internal/DatePickerInput.d.ts +1 -1
- package/dist/types/components/OwpTable/OwpTable.d.ts +1 -1
- package/dist/types/components/OwpTable/OwpVerticalTable.d.ts +3 -1
- package/dist/types/components/OwpTabs/OwpTab.d.ts +1 -1
- package/dist/types/components/OwpTabs/OwpTabs.d.ts +1 -1
- package/dist/types/constants/storageKeys.d.ts +1 -0
- package/dist/types/contexts/OwpCoreProvider.d.ts +2 -2
- package/dist/types/contexts/OwpStoreProvider.d.ts +4 -4
- package/dist/types/hooks/index.d.ts +3 -1
- package/dist/types/hooks/useCurrentUserSeq.d.ts +8 -0
- package/dist/types/hooks/useNavbar.d.ts +19 -0
- package/dist/types/hooks/useOwpSettings.d.ts +79 -0
- package/dist/types/layout/components/navigation/Navigation.d.ts +6 -2
- package/dist/types/layout/components/toggles/NavigationSearchToggle.d.ts +5 -2
- package/dist/types/layout/components/toggles/NavigationShortcutsToggle.d.ts +5 -2
- package/dist/types/store/atoms/index.d.ts +3 -0
- package/dist/types/store/atoms/internal/types.d.ts +29 -0
- package/dist/types/store/atoms/navbarAtoms.d.ts +48 -0
- package/dist/types/store/atoms/owpSettingsAtoms.d.ts +89 -0
- package/dist/types/store/atoms/owpStore.d.ts +13 -0
- package/dist/types/store/index.d.ts +1 -3
- package/dist/types/utils/treeGridExportExcelUtil.d.ts +0 -4
- package/dist/types/utils/treeGridUtil.d.ts +0 -59
- package/dist/utils/treeGridExportExcelUtil.js +57 -58
- package/dist/utils/treeGridExportExcelUtil.js.map +1 -1
- package/dist/utils/treeGridUtil.js +69 -83
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/dist/utils.js +71 -86
- package/package.json +2 -6
- package/dist/hooks/useAppStore.js +0 -8
- package/dist/hooks/useAppStore.js.map +0 -1
- package/dist/store/generateReducersFromSlices.js +0 -18
- package/dist/store/generateReducersFromSlices.js.map +0 -1
- package/dist/store/lazyLoadedSlices.js +0 -16
- package/dist/store/lazyLoadedSlices.js.map +0 -1
- package/dist/store/middleware.js +0 -9
- package/dist/store/middleware.js.map +0 -1
- package/dist/store/navbarSlice.js +0 -71
- package/dist/store/navbarSlice.js.map +0 -1
- package/dist/store/navigationSlice.js +0 -46
- package/dist/store/navigationSlice.js.map +0 -1
- package/dist/store/owpSettingsSlice.js +0 -195
- package/dist/store/owpSettingsSlice.js.map +0 -1
- package/dist/store/store.js +0 -17
- package/dist/store/store.js.map +0 -1
- package/dist/store/withSlices.js +0 -27
- package/dist/store/withSlices.js.map +0 -1
- package/dist/types/hooks/useAppStore.d.ts +0 -7
- package/dist/types/store/generateReducersFromSlices.d.ts +0 -6
- package/dist/types/store/lazyLoadedSlices.d.ts +0 -9
- package/dist/types/store/middleware.d.ts +0 -17
- package/dist/types/store/navbarSlice.d.ts +0 -22
- package/dist/types/store/navigationSlice.d.ts +0 -93
- package/dist/types/store/owpSettingsSlice.d.ts +0 -112
- package/dist/types/store/store.d.ts +0 -13
- package/dist/types/store/withSlices.d.ts +0 -11
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
var T = Object.defineProperty;
|
|
2
|
+
var d = (t, n) => T(t, "name", { value: n, configurable: !0 });
|
|
3
|
+
import { generateSettings as h, createInitialOwpSettings as x, mustHaveThemeOptions as F, defaultThemeOptions as k, extendThemeWithMixins as v } from "../../configs/defaultConfig.js";
|
|
4
|
+
import { createTheme as y } from "@mui/material/styles";
|
|
5
|
+
import { atom as e } from "jotai";
|
|
6
|
+
import { merge as r } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/merge.js";
|
|
7
|
+
const w = {
|
|
8
|
+
primary: "rgb(17, 24, 39)",
|
|
9
|
+
secondary: "rgb(107, 114, 128)",
|
|
10
|
+
disabled: "rgb(149, 156, 169)"
|
|
11
|
+
}, O = {
|
|
12
|
+
primary: "rgb(255,255,255)",
|
|
13
|
+
secondary: "rgb(148, 163, 184)",
|
|
14
|
+
disabled: "rgb(156, 163, 175)"
|
|
15
|
+
}, M = x();
|
|
16
|
+
function D(t) {
|
|
17
|
+
return {
|
|
18
|
+
initial: t,
|
|
19
|
+
defaults: r({}, t),
|
|
20
|
+
current: r({}, t)
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
d(D, "createSettingsState");
|
|
24
|
+
const f = D(M), s = e(f), j = e((t) => t(s)), q = e((t) => t(s).defaults), m = e((t) => t(s).current), z = e((t) => t(m).layout.config), G = e(
|
|
25
|
+
(t) => !!t(m).customScrollbars
|
|
26
|
+
), c = e((t) => t(m).direction), g = e((t) => t(m).theme.main), E = e((t) => t(m).theme.navbar), I = e((t) => t(m).theme.toolbar), L = e((t) => t(m).theme.footer);
|
|
27
|
+
function l(t, n) {
|
|
28
|
+
const o = r({}, k, t, F);
|
|
29
|
+
return y(
|
|
30
|
+
r({}, o, {
|
|
31
|
+
mixins: v(o),
|
|
32
|
+
direction: n
|
|
33
|
+
})
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
d(l, "generateMuiTheme");
|
|
37
|
+
function S(t, n) {
|
|
38
|
+
return r({}, t, {
|
|
39
|
+
dark: {
|
|
40
|
+
palette: {
|
|
41
|
+
mode: "dark",
|
|
42
|
+
divider: "rgba(241,245,249,.12)",
|
|
43
|
+
background: {
|
|
44
|
+
paper: "#1E2125",
|
|
45
|
+
default: "#121212"
|
|
46
|
+
},
|
|
47
|
+
text: O
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
light: {
|
|
51
|
+
palette: {
|
|
52
|
+
mode: "light",
|
|
53
|
+
divider: "#e2e8f0",
|
|
54
|
+
background: {
|
|
55
|
+
paper: "#FFFFFF",
|
|
56
|
+
default: "#F7F7F7"
|
|
57
|
+
},
|
|
58
|
+
text: w
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}[n]);
|
|
62
|
+
}
|
|
63
|
+
d(S, "changeThemeMode");
|
|
64
|
+
const J = e(
|
|
65
|
+
(t) => l(t(g), t(c))
|
|
66
|
+
), K = e(
|
|
67
|
+
(t) => l(S(t(g), "dark"), t(c))
|
|
68
|
+
), N = e(
|
|
69
|
+
(t) => l(S(t(g), "light"), t(c))
|
|
70
|
+
), Q = e(
|
|
71
|
+
(t) => l(t(E), t(c))
|
|
72
|
+
), R = e(
|
|
73
|
+
(t) => l(t(I), t(c))
|
|
74
|
+
), U = e(
|
|
75
|
+
(t) => l(t(L), t(c))
|
|
76
|
+
), X = e(null, (t, n, o) => {
|
|
77
|
+
const a = t(s), i = h(a.defaults, o);
|
|
78
|
+
n(s, {
|
|
79
|
+
...a,
|
|
80
|
+
current: i
|
|
81
|
+
});
|
|
82
|
+
}), P = e(
|
|
83
|
+
null,
|
|
84
|
+
(t, n, o) => {
|
|
85
|
+
const a = t(s), i = h(a.defaults, o), u = {
|
|
86
|
+
...a,
|
|
87
|
+
defaults: r({}, i),
|
|
88
|
+
current: r({}, i)
|
|
89
|
+
};
|
|
90
|
+
return n(s, u), u;
|
|
91
|
+
}
|
|
92
|
+
), Y = e(null, (t, n) => {
|
|
93
|
+
n(s, r({}, f));
|
|
94
|
+
}), Z = e(null, (t, n) => {
|
|
95
|
+
const o = t(s);
|
|
96
|
+
n(s, {
|
|
97
|
+
...o,
|
|
98
|
+
defaults: r({}, o.defaults),
|
|
99
|
+
current: r({}, o.defaults)
|
|
100
|
+
});
|
|
101
|
+
}), $ = e(null, (t, n, o) => {
|
|
102
|
+
const a = t(s), { navbar: i, footer: u, toolbar: b, main: A } = o, p = {
|
|
103
|
+
...a.current,
|
|
104
|
+
theme: {
|
|
105
|
+
main: A,
|
|
106
|
+
navbar: i,
|
|
107
|
+
toolbar: b,
|
|
108
|
+
footer: u
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
return n(P, p);
|
|
112
|
+
});
|
|
113
|
+
export {
|
|
114
|
+
$ as changeOwpThemeAtom,
|
|
115
|
+
D as createSettingsState,
|
|
116
|
+
z as currentLayoutConfigAtom,
|
|
117
|
+
m as currentSettingsAtom,
|
|
118
|
+
G as customScrollbarsEnabledAtom,
|
|
119
|
+
O as darkPaletteText,
|
|
120
|
+
q as defaultSettingsAtom,
|
|
121
|
+
c as directionAtom,
|
|
122
|
+
U as footerThemeAtom,
|
|
123
|
+
L as footerThemeSettingsAtom,
|
|
124
|
+
w as lightPaletteText,
|
|
125
|
+
J as mainThemeAtom,
|
|
126
|
+
K as mainThemeDarkAtom,
|
|
127
|
+
N as mainThemeLightAtom,
|
|
128
|
+
g as mainThemeSettingsAtom,
|
|
129
|
+
Q as navbarThemeAtom,
|
|
130
|
+
E as navbarThemeSettingsAtom,
|
|
131
|
+
j as owpSettingsAtom,
|
|
132
|
+
s as owpSettingsStateAtom,
|
|
133
|
+
Z as resetSettingsAtom,
|
|
134
|
+
P as setDefaultSettingsAtom,
|
|
135
|
+
Y as setInitialSettingsAtom,
|
|
136
|
+
X as setSettingsAtom,
|
|
137
|
+
R as toolbarThemeAtom,
|
|
138
|
+
I as toolbarThemeSettingsAtom
|
|
139
|
+
};
|
|
140
|
+
//# sourceMappingURL=owpSettingsAtoms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owpSettingsAtoms.js","sources":["../../../src/store/atoms/owpSettingsAtoms.ts"],"sourcesContent":["import {\n createInitialOwpSettings,\n defaultThemeOptions,\n extendThemeWithMixins,\n generateSettings,\n mustHaveThemeOptions,\n} from '@/configs/defaultConfig';\nimport type {\n OwpSettingsConfigType,\n OwpThemeType,\n OwpThemesType,\n} from '@/types/OwpSettingsTypes';\nimport { createTheme, type ThemeOptions } from '@mui/material/styles';\nimport { atom, type WritableAtom } from 'jotai';\nimport { merge } from 'es-toolkit/compat';\nimport type { PartialDeep } from 'type-fest';\nimport type { OwpSettingsState } from './internal/types';\n\n/**\n * Light theme text palette\n */\nexport const lightPaletteText = {\n primary: 'rgb(17, 24, 39)',\n secondary: 'rgb(107, 114, 128)',\n disabled: 'rgb(149, 156, 169)',\n};\n\n/**\n * Dark theme text palette\n */\nexport const darkPaletteText = {\n primary: 'rgb(255,255,255)',\n secondary: 'rgb(148, 163, 184)',\n disabled: 'rgb(156, 163, 175)',\n};\n\nconst initialSettings = createInitialOwpSettings();\n\n/**\n * Settings 기본 상태 생성\n */\nexport function createSettingsState(initialValue: OwpSettingsConfigType): OwpSettingsState {\n return {\n initial: initialValue,\n defaults: merge({}, initialValue),\n current: merge({}, initialValue),\n };\n}\n\nconst defaultSettingsState = createSettingsState(initialSettings);\n\nexport const owpSettingsStateAtom = atom<OwpSettingsState>(defaultSettingsState);\n\nexport const owpSettingsAtom = atom((get) => get(owpSettingsStateAtom));\nexport const defaultSettingsAtom = atom((get) => get(owpSettingsStateAtom).defaults);\nexport const currentSettingsAtom = atom((get) => get(owpSettingsStateAtom).current);\nexport const currentLayoutConfigAtom = atom((get) => get(currentSettingsAtom).layout.config);\nexport const customScrollbarsEnabledAtom = atom(\n (get) => Boolean(get(currentSettingsAtom).customScrollbars),\n);\nexport const directionAtom = atom((get) => get(currentSettingsAtom).direction);\nexport const mainThemeSettingsAtom = atom((get) => get(currentSettingsAtom).theme.main);\nexport const navbarThemeSettingsAtom = atom((get) => get(currentSettingsAtom).theme.navbar);\nexport const toolbarThemeSettingsAtom = atom((get) => get(currentSettingsAtom).theme.toolbar);\nexport const footerThemeSettingsAtom = atom((get) => get(currentSettingsAtom).theme.footer);\n\n/**\n * MUI theme 생성\n */\nfunction generateMuiTheme(theme: OwpThemeType, direction: 'ltr' | 'rtl') {\n const data = merge({}, defaultThemeOptions, theme, mustHaveThemeOptions) as ThemeOptions;\n\n return createTheme(\n merge({}, data, {\n mixins: extendThemeWithMixins(data),\n direction,\n } as ThemeOptions),\n );\n}\n\n/**\n * Theme mode 변환\n */\nfunction changeThemeMode(theme: OwpThemeType, mode: 'dark' | 'light'): OwpThemeType {\n const modes = {\n dark: {\n palette: {\n mode: 'dark',\n divider: 'rgba(241,245,249,.12)',\n background: {\n paper: '#1E2125',\n default: '#121212',\n },\n text: darkPaletteText,\n },\n },\n light: {\n palette: {\n mode: 'light',\n divider: '#e2e8f0',\n background: {\n paper: '#FFFFFF',\n default: '#F7F7F7',\n },\n text: lightPaletteText,\n },\n },\n };\n\n return merge({}, theme, modes[mode]);\n}\n\nexport const mainThemeAtom = atom((get) =>\n generateMuiTheme(get(mainThemeSettingsAtom), get(directionAtom)),\n);\nexport const mainThemeDarkAtom = atom((get) =>\n generateMuiTheme(changeThemeMode(get(mainThemeSettingsAtom), 'dark'), get(directionAtom)),\n);\nexport const mainThemeLightAtom = atom((get) =>\n generateMuiTheme(changeThemeMode(get(mainThemeSettingsAtom), 'light'), get(directionAtom)),\n);\nexport const navbarThemeAtom = atom((get) =>\n generateMuiTheme(get(navbarThemeSettingsAtom), get(directionAtom)),\n);\nexport const toolbarThemeAtom = atom((get) =>\n generateMuiTheme(get(toolbarThemeSettingsAtom), get(directionAtom)),\n);\nexport const footerThemeAtom = atom((get) =>\n generateMuiTheme(get(footerThemeSettingsAtom), get(directionAtom)),\n);\n\n/**\n * 현재 settings 적용 atom\n */\nexport const setSettingsAtom = atom(null, (get, set, nextSettings: OwpSettingsConfigType) => {\n const settings = get(owpSettingsStateAtom);\n const current = generateSettings(settings.defaults, nextSettings);\n\n set(owpSettingsStateAtom, {\n ...settings,\n current,\n });\n});\n\n/**\n * 기본 settings 변경 atom\n */\nexport const setDefaultSettingsAtom: WritableAtom<\n null,\n [PartialDeep<OwpSettingsConfigType>],\n OwpSettingsState\n> = atom(\n null,\n (get, set, nextSettings: PartialDeep<OwpSettingsConfigType>): OwpSettingsState => {\n const settings = get(owpSettingsStateAtom);\n const defaults = generateSettings(settings.defaults, nextSettings as OwpSettingsConfigType);\n const nextState = {\n ...settings,\n defaults: merge({}, defaults),\n current: merge({}, defaults),\n };\n\n set(owpSettingsStateAtom, nextState);\n\n return nextState;\n },\n);\n\n/**\n * 초기 settings 복원 atom\n */\nexport const setInitialSettingsAtom = atom(null, (_get, set) => {\n set(owpSettingsStateAtom, merge({}, defaultSettingsState));\n});\n\n/**\n * 현재 defaults 기준 초기화 atom\n */\nexport const resetSettingsAtom = atom(null, (get, set) => {\n const settings = get(owpSettingsStateAtom);\n\n set(owpSettingsStateAtom, {\n ...settings,\n defaults: merge({}, settings.defaults),\n current: merge({}, settings.defaults),\n });\n});\n\n/**\n * Theme 설정 변경 atom\n */\nexport const changeOwpThemeAtom = atom(null, (get, set, theme: OwpThemesType) => {\n const settings = get(owpSettingsStateAtom);\n const { navbar, footer, toolbar, main } = theme;\n const nextSettings: OwpSettingsConfigType = {\n ...settings.current,\n theme: {\n main,\n navbar,\n toolbar,\n footer,\n },\n };\n\n return set(setDefaultSettingsAtom, nextSettings);\n});\n"],"names":["lightPaletteText","darkPaletteText","initialSettings","createInitialOwpSettings","createSettingsState","initialValue","merge","__name","defaultSettingsState","owpSettingsStateAtom","atom","owpSettingsAtom","get","defaultSettingsAtom","currentSettingsAtom","currentLayoutConfigAtom","customScrollbarsEnabledAtom","directionAtom","mainThemeSettingsAtom","navbarThemeSettingsAtom","toolbarThemeSettingsAtom","footerThemeSettingsAtom","generateMuiTheme","theme","direction","data","defaultThemeOptions","mustHaveThemeOptions","createTheme","extendThemeWithMixins","changeThemeMode","mode","mainThemeAtom","mainThemeDarkAtom","mainThemeLightAtom","navbarThemeAtom","toolbarThemeAtom","footerThemeAtom","setSettingsAtom","set","nextSettings","settings","current","generateSettings","setDefaultSettingsAtom","defaults","nextState","setInitialSettingsAtom","_get","resetSettingsAtom","changeOwpThemeAtom","navbar","footer","toolbar","main"],"mappings":"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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var o = (n, t) => s(n, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { createInitialOwpSettings as m } from "../../configs/defaultConfig.js";
|
|
4
|
+
import { createStore as c } from "jotai/vanilla";
|
|
5
|
+
import { createNavbarState as g, navbarStateAtom as e } from "./navbarAtoms.js";
|
|
6
|
+
import { createSettingsState as w, owpSettingsStateAtom as f } from "./owpSettingsAtoms.js";
|
|
7
|
+
import { merge as S } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/merge.js";
|
|
8
|
+
function x(n, t, r) {
|
|
9
|
+
const i = m(n, t);
|
|
10
|
+
return {
|
|
11
|
+
owpSettings: S(
|
|
12
|
+
{},
|
|
13
|
+
w(i),
|
|
14
|
+
r == null ? void 0 : r.owpSettings
|
|
15
|
+
),
|
|
16
|
+
navbar: g(r == null ? void 0 : r.navbar)
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
o(x, "createOwpStoreState");
|
|
20
|
+
function I(n) {
|
|
21
|
+
const t = c();
|
|
22
|
+
return t.set(f, n.owpSettings), t.set(e, n.navbar), t;
|
|
23
|
+
}
|
|
24
|
+
o(I, "createOwpStore");
|
|
25
|
+
export {
|
|
26
|
+
I as createOwpStore,
|
|
27
|
+
x as createOwpStoreState
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=owpStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owpStore.js","sources":["../../../src/store/atoms/owpStore.ts"],"sourcesContent":["import { createInitialOwpSettings } from '@/configs/defaultConfig';\nimport type {\n OwpSettingsConfigType,\n OwpThemesType,\n} from '@/types/OwpSettingsTypes';\nimport { merge } from 'es-toolkit/compat';\nimport { createStore } from 'jotai/vanilla';\nimport type { PartialDeep } from 'type-fest';\nimport { createNavbarState, navbarStateAtom } from './navbarAtoms';\nimport type { OwpStorePreloadedState, OwpStoreState } from './internal/types';\nimport { createSettingsState, owpSettingsStateAtom } from './owpSettingsAtoms';\n\nexport type OwpStore = ReturnType<typeof createStore>;\n\n/**\n * OWP 전역 상태 초기값 생성\n */\nexport function createOwpStoreState(\n settingsConfig?: PartialDeep<OwpSettingsConfigType>,\n themesConfig?: PartialDeep<OwpThemesType>,\n preloadedState?: OwpStorePreloadedState,\n): OwpStoreState {\n const initialSettings = createInitialOwpSettings(settingsConfig, themesConfig);\n const owpSettings = merge(\n {},\n createSettingsState(initialSettings),\n preloadedState?.owpSettings,\n ) as OwpStoreState['owpSettings'];\n\n return {\n owpSettings,\n navbar: createNavbarState(preloadedState?.navbar),\n };\n}\n\n/**\n * OWP Jotai store 생성\n */\nexport function createOwpStore(initialState: OwpStoreState): OwpStore {\n const store = createStore();\n\n store.set(owpSettingsStateAtom, initialState.owpSettings);\n store.set(navbarStateAtom, initialState.navbar);\n\n return store;\n}\n"],"names":["createOwpStoreState","settingsConfig","themesConfig","preloadedState","initialSettings","createInitialOwpSettings","merge","createSettingsState","createNavbarState","__name","createOwpStore","initialState","store","createStore","owpSettingsStateAtom","navbarStateAtom"],"mappings":";;;;;;;AAiBO,SAASA,EACdC,GACAC,GACAC,GACe;AACf,QAAMC,IAAkBC,EAAyBJ,GAAgBC,CAAY;AAO7E,SAAO;AAAA,IACL,aAPkBI;AAAA,MAClB,CAAA;AAAA,MACAC,EAAoBH,CAAe;AAAA,MACnCD,KAAA,gBAAAA,EAAgB;AAAA,IAAA;AAAA,IAKhB,QAAQK,EAAkBL,KAAA,gBAAAA,EAAgB,MAAM;AAAA,EAAA;AAEpD;AAhBgBM,EAAAT,GAAA;AAqBT,SAASU,EAAeC,GAAuC;AACpE,QAAMC,IAAQC,EAAA;AAEd,SAAAD,EAAM,IAAIE,GAAsBH,EAAa,WAAW,GACxDC,EAAM,IAAIG,GAAiBJ,EAAa,MAAM,GAEvCC;AACT;AAPgBH,EAAAC,GAAA;"}
|
package/dist/store.js
CHANGED
|
@@ -1,42 +1,47 @@
|
|
|
1
|
-
import { OwpStoreProvider as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { OwpStoreProvider as o } from "./contexts/OwpStoreProvider.js";
|
|
2
|
+
import { createNavbarState as m, navbarCloseAtom as r, navbarCloseFoldedAtom as n, navbarCloseMobileAtom as A, navbarOpenAtom as i, navbarOpenFoldedAtom as g, navbarOpenMobileAtom as l, navbarStateAtom as s, navbarToggleAtom as S, navbarToggleFoldedAtom as b, navbarToggleMobileAtom as T, resetNavbarAtom as v } from "./store/atoms/navbarAtoms.js";
|
|
3
|
+
import { changeOwpThemeAtom as p, createSettingsState as d, currentLayoutConfigAtom as c, currentSettingsAtom as f, customScrollbarsEnabledAtom as O, darkPaletteText as u, defaultSettingsAtom as w, directionAtom as x, footerThemeAtom as C, footerThemeSettingsAtom as F, lightPaletteText as M, mainThemeAtom as P, mainThemeDarkAtom as k, mainThemeLightAtom as D, mainThemeSettingsAtom as L, navbarThemeAtom as N, navbarThemeSettingsAtom as y, owpSettingsAtom as E, owpSettingsStateAtom as I, resetSettingsAtom as j, setDefaultSettingsAtom as q, setInitialSettingsAtom as z, setSettingsAtom as B, toolbarThemeAtom as G, toolbarThemeSettingsAtom as H } from "./store/atoms/owpSettingsAtoms.js";
|
|
4
|
+
import { createOwpStore as K, createOwpStoreState as Q } from "./store/atoms/owpStore.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
6
|
+
o as OwpStoreProvider,
|
|
7
|
+
p as changeOwpThemeAtom,
|
|
8
|
+
m as createNavbarState,
|
|
9
|
+
K as createOwpStore,
|
|
10
|
+
Q as createOwpStoreState,
|
|
11
|
+
d as createSettingsState,
|
|
12
|
+
c as currentLayoutConfigAtom,
|
|
13
|
+
f as currentSettingsAtom,
|
|
14
|
+
O as customScrollbarsEnabledAtom,
|
|
15
|
+
u as darkPaletteText,
|
|
16
|
+
w as defaultSettingsAtom,
|
|
17
|
+
x as directionAtom,
|
|
18
|
+
C as footerThemeAtom,
|
|
19
|
+
F as footerThemeSettingsAtom,
|
|
20
|
+
M as lightPaletteText,
|
|
21
|
+
P as mainThemeAtom,
|
|
22
|
+
k as mainThemeDarkAtom,
|
|
23
|
+
D as mainThemeLightAtom,
|
|
24
|
+
L as mainThemeSettingsAtom,
|
|
25
|
+
r as navbarCloseAtom,
|
|
26
|
+
n as navbarCloseFoldedAtom,
|
|
27
|
+
A as navbarCloseMobileAtom,
|
|
28
|
+
i as navbarOpenAtom,
|
|
29
|
+
g as navbarOpenFoldedAtom,
|
|
30
|
+
l as navbarOpenMobileAtom,
|
|
31
|
+
s as navbarStateAtom,
|
|
32
|
+
N as navbarThemeAtom,
|
|
33
|
+
y as navbarThemeSettingsAtom,
|
|
34
|
+
S as navbarToggleAtom,
|
|
35
|
+
b as navbarToggleFoldedAtom,
|
|
36
|
+
T as navbarToggleMobileAtom,
|
|
37
|
+
E as owpSettingsAtom,
|
|
38
|
+
I as owpSettingsStateAtom,
|
|
39
|
+
v as resetNavbarAtom,
|
|
40
|
+
j as resetSettingsAtom,
|
|
41
|
+
q as setDefaultSettingsAtom,
|
|
42
|
+
z as setInitialSettingsAtom,
|
|
43
|
+
B as setSettingsAtom,
|
|
44
|
+
G as toolbarThemeAtom,
|
|
45
|
+
H as toolbarThemeSettingsAtom
|
|
41
46
|
};
|
|
42
47
|
//# sourceMappingURL=store.js.map
|
package/dist/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -23,12 +23,4 @@ export interface OwpDialogProps extends Omit<DialogProps, 'title'> {
|
|
|
23
23
|
* @param onCancel onCancel 핸들러
|
|
24
24
|
*/
|
|
25
25
|
declare const OwpDialog: import("react").ForwardRefExoticComponent<Omit<OwpDialogProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
-
|
|
27
|
-
* @deprecated Use OwpDialogProps instead.
|
|
28
|
-
*/
|
|
29
|
-
export type OwpCommonDialogProps = OwpDialogProps;
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Use OwpDialog instead.
|
|
32
|
-
*/
|
|
33
|
-
declare const OwpCommonDialog: import("react").ForwardRefExoticComponent<Omit<OwpDialogProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
34
|
-
export { OwpCommonDialog, OwpDialog };
|
|
26
|
+
export { OwpDialog };
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { type MaterialReactTableProps, type MRT_RowData } from 'material-react-table';
|
|
2
|
+
export type OwpMrtTableHeaderCellStyle = {
|
|
3
|
+
backgroundColor?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
fontSize?: number | string;
|
|
6
|
+
fontWeight?: number | string;
|
|
7
|
+
height?: number | string;
|
|
8
|
+
};
|
|
2
9
|
type DataTableProps<TData extends MRT_RowData> = MaterialReactTableProps<TData> & {
|
|
3
10
|
canHideTotalCountFooterBorder?: boolean;
|
|
4
11
|
canUseNoDataOverlay?: boolean;
|
|
12
|
+
canUseTableRadius?: boolean;
|
|
5
13
|
canTotalCountRow?: boolean;
|
|
6
14
|
canUseTreeGridStyle?: boolean;
|
|
15
|
+
headerCellStyle?: OwpMrtTableHeaderCellStyle;
|
|
7
16
|
totalCount?: number;
|
|
8
17
|
};
|
|
9
18
|
export type OwpMrtTableProps<TData extends MRT_RowData> = DataTableProps<TData>;
|
|
@@ -23,5 +23,5 @@ interface OwnProps {
|
|
|
23
23
|
* @param onIconClick 아이콘 클릭 핸들러
|
|
24
24
|
* @param ref forwardRef 참조
|
|
25
25
|
*/
|
|
26
|
-
export declare const DatePickerInput: import("react").ForwardRefExoticComponent<(Omit<import("@mui/material").
|
|
26
|
+
export declare const DatePickerInput: import("react").ForwardRefExoticComponent<(Omit<import("@mui/material").StandardTextFieldProps & OwnProps, "ref"> | Omit<import("@mui/material").OutlinedTextFieldProps & OwnProps, "ref"> | Omit<import("@mui/material").FilledTextFieldProps & OwnProps, "ref">) & import("react").RefAttributes<unknown>>;
|
|
27
27
|
export {};
|
|
@@ -30,7 +30,7 @@ export declare function OwpTableTotalCount({ totalCount }: {
|
|
|
30
30
|
* @param tableLayout tableLayout 값
|
|
31
31
|
*/
|
|
32
32
|
export declare const StyledTable: ({ canBodyFullHeight, canUseTreeGridStyle, children, className, containerProps, footerSlot, tableLayout, ...tableProps }: StyledTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
export declare const StyledTableRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "style" | "hover" | "selected" | "
|
|
33
|
+
export declare const StyledTableRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "style" | "hover" | "selected" | "className" | "classes" | "children" | "sx"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
34
34
|
interface OwpTableProps<T> extends Omit<StyledTableProps, 'children'> {
|
|
35
35
|
canTotalCountRow?: boolean;
|
|
36
36
|
headers: OwpTableHeaderRow | OwpTableHeaderRow[];
|
|
@@ -20,6 +20,7 @@ interface OwpVerticalTableProps {
|
|
|
20
20
|
layout: OwpVerticalTableCell[][];
|
|
21
21
|
data?: OwpVerticalTableDataRecord;
|
|
22
22
|
titleSx?: TableCellProps['sx'];
|
|
23
|
+
treeGridTitleCellSx?: TableCellProps['sx'] & CSSProperties;
|
|
23
24
|
cellSx?: TableCellProps['sx'] & CSSProperties;
|
|
24
25
|
titleWidth?: number | string;
|
|
25
26
|
colGroupSlot?: ReactNode;
|
|
@@ -32,6 +33,7 @@ interface OwpVerticalTableProps {
|
|
|
32
33
|
* @param layout layout 값
|
|
33
34
|
* @param titleWidth titleWidth 값
|
|
34
35
|
* @param titleSx titleSx 값
|
|
36
|
+
* @param treeGridTitleCellSx TreeGrid title cell sx 값
|
|
35
37
|
* @param cellSx cellSx 값
|
|
36
38
|
* @param data 데이터
|
|
37
39
|
* @param colGroupSlot colGroupSlot 값
|
|
@@ -39,5 +41,5 @@ interface OwpVerticalTableProps {
|
|
|
39
41
|
* @param tableLayout tableLayout 값
|
|
40
42
|
* @param canUseTreeGridStyle TreeGrid 스타일 사용 여부
|
|
41
43
|
*/
|
|
42
|
-
export declare function OwpVerticalTable({ layout, titleWidth, titleSx, cellSx, data, colGroupSlot, className, tableLayout, canUseTreeGridStyle, }: OwpVerticalTableProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare function OwpVerticalTable({ layout, titleWidth, titleSx, treeGridTitleCellSx, cellSx, data, colGroupSlot, className, tableLayout, canUseTreeGridStyle, }: OwpVerticalTableProps): import("react/jsx-runtime").JSX.Element;
|
|
43
45
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OwpTab 컴포넌트
|
|
3
3
|
*/
|
|
4
|
-
declare const OwpTab: import("@emotion/styled").StyledComponent<import("@mui/material").TabOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "action" | "disabled" | "
|
|
4
|
+
declare const OwpTab: import("@emotion/styled").StyledComponent<import("@mui/material").TabOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "action" | "disabled" | "className" | "classes" | "children" | "sx" | "label" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "value" | "icon" | "wrapped" | "iconPosition"> & {
|
|
5
5
|
component?: React.ElementType | undefined;
|
|
6
6
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
7
7
|
export { OwpTab };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OwpTabs 컴포넌트
|
|
3
3
|
*/
|
|
4
|
-
declare const OwpTabs: import("@emotion/styled").StyledComponent<import("@mui/material").TabsOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "action" | "
|
|
4
|
+
declare const OwpTabs: import("@emotion/styled").StyledComponent<import("@mui/material").TabsOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style" | "action" | "className" | "classes" | "children" | "sx" | "variant" | "aria-label" | "aria-labelledby" | "onChange" | "slots" | "slotProps" | "value" | "orientation" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & {
|
|
5
5
|
component?: React.ElementType | undefined;
|
|
6
6
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
7
7
|
export { OwpTabs };
|
|
@@ -9,6 +9,7 @@ export declare const STORAGE_KEYS: {
|
|
|
9
9
|
readonly currentLanguage: "CurrentLanguage";
|
|
10
10
|
readonly currentUser: "currentUser";
|
|
11
11
|
readonly currentUserId: "CurrentUserId";
|
|
12
|
+
readonly currentUserSeq: "CurrentUserSeq";
|
|
12
13
|
readonly currentShortcuts: "CurrentShortcuts";
|
|
13
14
|
readonly owpEnv: "owpEnv";
|
|
14
15
|
};
|
|
@@ -11,10 +11,10 @@ export interface OwpCoreProviderProps extends OwpAppProviderProps {
|
|
|
11
11
|
styledEngineProviderProps?: OwpStyledEngineProviderProps;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* App,
|
|
14
|
+
* App, Jotai, React Query provider composition
|
|
15
15
|
* @param queryClient 외부 QueryClient 인스턴스
|
|
16
16
|
* @param queryClientConfig QueryClient 생성 옵션
|
|
17
|
-
* @param storePreloadedState 초기
|
|
17
|
+
* @param storePreloadedState 초기 전역 상태
|
|
18
18
|
* @param styledEngineProviderProps StyledEngineProvider 옵션
|
|
19
19
|
*/
|
|
20
20
|
export declare function OwpCoreProvider({ children, queryClient, queryClientConfig, storePreloadedState, styledEngineProviderProps, ...appProviderProps }: OwpCoreProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import type { OwpStorePreloadedState } from '@/store/atoms/internal/types';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
|
-
import { RootState } from '../store/store';
|
|
3
3
|
export interface OwpStoreProviderProps {
|
|
4
4
|
children?: ReactNode;
|
|
5
|
-
preloadedState?:
|
|
5
|
+
preloadedState?: OwpStorePreloadedState;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* OWP Jotai store provider
|
|
9
9
|
* @param children 하위 콘텐츠
|
|
10
|
-
* @param preloadedState 초기
|
|
10
|
+
* @param preloadedState 초기 전역 상태
|
|
11
11
|
*/
|
|
12
12
|
export declare function OwpStoreProvider({ children, preloadedState }: OwpStoreProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
export * from './useCommonCodeList';
|
|
2
2
|
export * from './useAccessTokenGuard';
|
|
3
|
-
export * from './useAppStore';
|
|
4
3
|
export * from './useConfirm';
|
|
5
4
|
export * from './useCurrentLanguage';
|
|
6
5
|
export * from './useLogoSrc';
|
|
7
6
|
export * from './useCurrentUser';
|
|
8
7
|
export * from './useCurrentUserId';
|
|
8
|
+
export * from './useCurrentUserSeq';
|
|
9
9
|
export * from './useDebounce';
|
|
10
10
|
export * from './useDeepCompareEffect';
|
|
11
11
|
export * from './useHeaderWrapState';
|
|
12
12
|
export * from './useInitApp';
|
|
13
13
|
export * from './useInitCommonCodes';
|
|
14
|
+
export * from './useNavbar';
|
|
14
15
|
export * from './useNavigation';
|
|
16
|
+
export * from './useOwpSettings';
|
|
15
17
|
export * from './useOwpTranslation';
|
|
16
18
|
export * from './usePageLockLoading';
|
|
17
19
|
export * from './usePrevious';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 현재 사용자 USERSEQ 조회 훅
|
|
3
|
+
*/
|
|
4
|
+
export declare const useGetCurrentUserSeq: () => string | number;
|
|
5
|
+
/**
|
|
6
|
+
* 현재 사용자 USERSEQ 설정 훅
|
|
7
|
+
*/
|
|
8
|
+
export declare const useSetCurrentUserSeq: () => (args_0: string | number | typeof import("jotai/utils").RESET | ((prev: string | number) => string | number | typeof import("jotai/utils").RESET)) => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Navbar 상태 조회 훅
|
|
3
|
+
*/
|
|
4
|
+
export declare const useGetNavbar: () => import("../store/atoms/internal/types").NavbarState;
|
|
5
|
+
/**
|
|
6
|
+
* Navbar 액션 훅
|
|
7
|
+
*/
|
|
8
|
+
export declare const useNavbarActions: () => {
|
|
9
|
+
toggleFolded: () => void;
|
|
10
|
+
openFolded: () => void;
|
|
11
|
+
closeFolded: () => void;
|
|
12
|
+
toggleMobile: () => void;
|
|
13
|
+
openMobile: () => void;
|
|
14
|
+
closeMobile: () => void;
|
|
15
|
+
open: () => void;
|
|
16
|
+
close: () => void;
|
|
17
|
+
toggle: () => void;
|
|
18
|
+
reset: () => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { OwpSettingsConfigType } from '@/types/OwpSettingsTypes';
|
|
2
|
+
import type { OwpSettingsState } from '@/store/atoms/internal/types';
|
|
3
|
+
import type { PartialDeep } from 'type-fest';
|
|
4
|
+
/**
|
|
5
|
+
* OWP settings 원본 상태 조회 훅
|
|
6
|
+
*/
|
|
7
|
+
export declare const useGetOwpSettings: () => OwpSettingsState;
|
|
8
|
+
/**
|
|
9
|
+
* 현재 settings 조회 훅
|
|
10
|
+
*/
|
|
11
|
+
export declare const useGetCurrentSettings: () => OwpSettingsConfigType;
|
|
12
|
+
/**
|
|
13
|
+
* 기본 settings 조회 훅
|
|
14
|
+
*/
|
|
15
|
+
export declare const useGetDefaultSettings: () => OwpSettingsConfigType;
|
|
16
|
+
/**
|
|
17
|
+
* 현재 layout config 조회 훅
|
|
18
|
+
*/
|
|
19
|
+
export declare const useGetCurrentLayoutConfig: () => {
|
|
20
|
+
mode?: string;
|
|
21
|
+
containerWidth?: string;
|
|
22
|
+
navbar?: {
|
|
23
|
+
display?: boolean;
|
|
24
|
+
style?: string;
|
|
25
|
+
folded?: boolean;
|
|
26
|
+
position?: string;
|
|
27
|
+
open?: boolean;
|
|
28
|
+
};
|
|
29
|
+
toolbar?: {
|
|
30
|
+
display?: boolean;
|
|
31
|
+
style?: string;
|
|
32
|
+
};
|
|
33
|
+
footer?: {
|
|
34
|
+
display?: boolean;
|
|
35
|
+
style?: string;
|
|
36
|
+
};
|
|
37
|
+
leftSidePanel?: {
|
|
38
|
+
display?: boolean;
|
|
39
|
+
};
|
|
40
|
+
rightSidePanel?: {
|
|
41
|
+
display?: boolean;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Main theme 조회 훅
|
|
46
|
+
*/
|
|
47
|
+
export declare const useGetMainTheme: () => import("@mui/material").Theme;
|
|
48
|
+
/**
|
|
49
|
+
* Navbar theme 조회 훅
|
|
50
|
+
*/
|
|
51
|
+
export declare const useGetNavbarTheme: () => import("@mui/material").Theme;
|
|
52
|
+
/**
|
|
53
|
+
* Toolbar theme 조회 훅
|
|
54
|
+
*/
|
|
55
|
+
export declare const useGetToolbarTheme: () => import("@mui/material").Theme;
|
|
56
|
+
/**
|
|
57
|
+
* Footer theme 조회 훅
|
|
58
|
+
*/
|
|
59
|
+
export declare const useGetFooterTheme: () => import("@mui/material").Theme;
|
|
60
|
+
/**
|
|
61
|
+
* Custom scrollbar 사용 여부 조회 훅
|
|
62
|
+
*/
|
|
63
|
+
export declare const useGetCustomScrollbarsEnabled: () => boolean;
|
|
64
|
+
/**
|
|
65
|
+
* 현재 settings 설정 훅
|
|
66
|
+
*/
|
|
67
|
+
export declare const useSetSettings: () => (nextSettings: OwpSettingsConfigType) => void;
|
|
68
|
+
/**
|
|
69
|
+
* 기본 settings 설정 훅
|
|
70
|
+
*/
|
|
71
|
+
export declare const useSetDefaultSettings: () => (nextSettings: PartialDeep<OwpSettingsConfigType>) => OwpSettingsState;
|
|
72
|
+
/**
|
|
73
|
+
* Settings 초기화 훅
|
|
74
|
+
*/
|
|
75
|
+
export declare const useResetSettings: () => () => void;
|
|
76
|
+
/**
|
|
77
|
+
* Theme 설정 변경 훅
|
|
78
|
+
*/
|
|
79
|
+
export declare const useChangeOwpTheme: () => (theme: import("@/types/OwpSettingsTypes").OwpThemesType) => OwpSettingsState;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { type NavigationMenuProps } from './NavigationMenu';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Navigation
|
|
4
|
+
*/
|
|
5
|
+
type NavigationProps = Partial<NavigationMenuProps>;
|
|
6
|
+
declare function Navigation(props: NavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Navigation;
|
|
@@ -9,8 +9,11 @@ type NavigationSearchToggleProps = {
|
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
noResults?: string;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Navigation search toggle.
|
|
14
|
+
*/
|
|
15
|
+
declare function NavigationSearchToggle(props: NavigationSearchToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
12
16
|
/**
|
|
13
17
|
* Memoized navigation search toggle.
|
|
14
18
|
*/
|
|
15
|
-
|
|
16
|
-
export default NavigationSearchToggleWithSlices;
|
|
19
|
+
export default NavigationSearchToggle;
|
|
@@ -2,8 +2,11 @@ type NavigationShortcutsToggleProps = {
|
|
|
2
2
|
className?: string;
|
|
3
3
|
variant?: 'horizontal' | 'vertical';
|
|
4
4
|
};
|
|
5
|
+
/**
|
|
6
|
+
* Navigation shortcuts toggle.
|
|
7
|
+
*/
|
|
8
|
+
declare function NavigationShortcutsToggle(props: NavigationShortcutsToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
5
9
|
/**
|
|
6
10
|
* Memoized navigation shortcuts toggle.
|
|
7
11
|
*/
|
|
8
|
-
|
|
9
|
-
export default NavigationShortcutsToggleWithSlices;
|
|
12
|
+
export default NavigationShortcutsToggle;
|