@owp/core 2.5.20 → 2.5.22
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/dayjs.d.ts +4 -0
- package/dayjs.js +2 -0
- package/dist/_virtual/isBetween.js +8 -0
- package/dist/_virtual/isBetween.js.map +1 -0
- package/dist/_virtual/isBetween2.js +5 -0
- package/dist/_virtual/isBetween2.js.map +1 -0
- package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js +26 -26
- package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js.map +1 -1
- package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js +29 -29
- package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js.map +1 -1
- package/dist/components/OwpMrtTable/OwpMrtTable.js +144 -141
- package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
- package/dist/components/OwpOptionSelector/OwpOptionSelector.js +20 -20
- package/dist/components/OwpOptionSelector/OwpOptionSelector.js.map +1 -1
- package/dist/components/OwpPageContent/OwpPageContent.js +20 -19
- package/dist/components/OwpPageContent/OwpPageContent.js.map +1 -1
- package/dist/components/OwpPicker/OwpDatePicker.js +216 -235
- package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpDateRangePicker.js +21 -21
- package/dist/components/OwpPicker/OwpDateRangePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpTimePicker.js +310 -340
- package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpWeekDatePicker.js +28 -29
- package/dist/components/OwpPicker/OwpWeekDatePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpYearRangePicker.js +1 -1
- package/dist/components/OwpPicker/OwpYearRangePicker.js.map +1 -1
- package/dist/components/OwpPicker/constants/index.js +21 -6
- package/dist/components/OwpPicker/constants/index.js.map +1 -1
- package/dist/components/OwpPicker/internal/DatePickerInput.js +5 -5
- package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -1
- package/dist/components/OwpPicker/utils/index.js +22 -0
- package/dist/components/OwpPicker/utils/index.js.map +1 -0
- package/dist/components/OwpQuerySelector/OwpQuerySelector.js +218 -205
- package/dist/components/OwpQuerySelector/OwpQuerySelector.js.map +1 -1
- package/dist/components/OwpSection/OwpSection.js +118 -111
- package/dist/components/OwpSection/OwpSection.js.map +1 -1
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +59 -59
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
- package/dist/components/OwpSelectorBase/OwpSelectorSelect.js +88 -85
- package/dist/components/OwpSelectorBase/OwpSelectorSelect.js.map +1 -1
- package/dist/components/OwpSelectorBase/hooks/useOwpSelectorBase.js +93 -93
- package/dist/components/OwpSelectorBase/hooks/useOwpSelectorBase.js.map +1 -1
- package/dist/components/OwpTable/OwpDataTable.js +329 -317
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpFieldTable.js +77 -74
- package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
- package/dist/components/OwpTable/OwpTable.js +66 -219
- package/dist/components/OwpTable/OwpTable.js.map +1 -1
- package/dist/components/OwpTable/internal/OwpTableBase.js +195 -0
- package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -0
- package/dist/components/OwpTable/internal/OwpTableTotalCount.js +23 -0
- package/dist/components/OwpTable/internal/OwpTableTotalCount.js.map +1 -0
- package/dist/components/OwpTable/internal/defaultTableStyle.js +10 -10
- package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
- package/dist/components/OwpTable/utils/tableSx.js +9 -0
- package/dist/components/OwpTable/utils/tableSx.js.map +1 -0
- package/dist/components/OwpTextField/OwpTextMaskField.js +95 -86
- package/dist/components/OwpTextField/OwpTextMaskField.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +164 -179
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +10 -10
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/components/OwpYesNoSelector/OwpYesNoSelector.js.map +1 -1
- package/dist/dayjs.js +18 -0
- package/dist/dayjs.js.map +1 -0
- package/dist/features/themePreview/components/ThemePreviewCanvas.js +22 -22
- package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
- package/dist/features/themePreview/configs/table.js +4 -4
- package/dist/features/themePreview/configs/table.js.map +1 -1
- package/dist/features/themePreview/hooks/useThemePreview.js +16 -16
- package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
- package/dist/hooks/{useInitCommonCodes.js → internal/useInitCommonCodes.js} +6 -6
- package/dist/hooks/internal/useInitCommonCodes.js.map +1 -0
- package/dist/hooks/internal/useMinimumVisibleState.js +31 -0
- package/dist/hooks/internal/useMinimumVisibleState.js.map +1 -0
- package/dist/hooks/useInitApp.js +17 -14
- package/dist/hooks/useInitApp.js.map +1 -1
- package/dist/hooks.js +49 -51
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +91 -94
- package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/isBetween.js +23 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/isBetween.js.map +1 -0
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/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/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/types/components/OwpCommonCode/OwpCommonCodeQuerySelector.d.ts +3 -3
- package/dist/types/components/OwpCommonCode/OwpCommonCodeSelector.d.ts +3 -3
- package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +1 -0
- package/dist/types/components/OwpOptionSelector/OwpOptionSelector.d.ts +2 -2
- package/dist/types/components/OwpPicker/OwpDatePicker.d.ts +1 -1
- package/dist/types/components/OwpPicker/OwpTimePicker.d.ts +2 -2
- package/dist/types/components/OwpPicker/constants/index.d.ts +15 -0
- package/dist/types/components/OwpPicker/utils/index.d.ts +6 -0
- package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +1 -1
- package/dist/types/components/OwpQuerySelector/types/types.d.ts +1 -0
- package/dist/types/components/OwpSection/OwpSection.d.ts +9 -3
- package/dist/types/components/OwpSelectorBase/hooks/useOwpSelectorBase.d.ts +1 -1
- package/dist/types/components/OwpSelectorBase/types/types.d.ts +1 -1
- package/dist/types/components/OwpTable/OwpDataTable.d.ts +5 -1
- package/dist/types/components/OwpTable/OwpFieldTable.d.ts +7 -1
- package/dist/types/components/OwpTable/OwpTable.d.ts +6 -38
- package/dist/types/components/OwpTable/internal/OwpTableBase.d.ts +34 -0
- package/dist/types/components/OwpTable/internal/OwpTableTotalCount.d.ts +9 -0
- package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +4 -2
- package/dist/types/components/OwpTable/utils/tableSx.d.ts +11 -0
- package/dist/types/components/OwpTextField/OwpTextMaskField.d.ts +3 -3
- package/dist/types/components/OwpYesNoSelector/OwpYesNoSelector.d.ts +1 -1
- package/dist/types/dayjs.d.ts +18 -0
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/hooks/internal/useMinimumVisibleState.d.ts +7 -0
- package/dist/types/utils/dayjsBrowser.d.ts +1 -7
- package/dist/types/utils/formatDateToYmd.d.ts +1 -1
- package/dist/utils/formatDateToYmd.js +3 -3
- package/dist/utils/formatDateToYmd.js.map +1 -1
- package/dist/utils/treeGridExportExcelUtil.js +1 -1
- package/dist/utils/treeGridExportExcelUtil.js.map +1 -1
- package/dist/utils/zipUtil.js +3 -3
- package/dist/utils/zipUtil.js.map +1 -1
- package/package.json +3 -1
- package/dist/hooks/useInitCommonCodes.js.map +0 -1
- package/dist/utils/dayjsBrowser.js +0 -16
- package/dist/utils/dayjsBrowser.js.map +0 -1
- /package/dist/types/hooks/{useInitCommonCodes.d.ts → internal/useInitCommonCodes.d.ts} +0 -0
package/dist/hooks/useInitApp.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = (
|
|
3
|
-
import { useOwpAppContext as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var c = (t, i) => p(t, "name", { value: i, configurable: !0 });
|
|
3
|
+
import { useOwpAppContext as u } from "../contexts/OwpAppProvider.js";
|
|
4
|
+
import { ensureDayjsBrowserSetup as g } from "../dayjs.js";
|
|
5
|
+
import { useRef as m, useEffect as L } from "react";
|
|
6
|
+
import { useInitCommonCodes as d } from "./internal/useInitCommonCodes.js";
|
|
7
|
+
import { usePageLockLoading as l } from "./usePageLockLoading.js";
|
|
8
|
+
import { useSetLogoSrc as S } from "./useLogoSrc.js";
|
|
9
|
+
import { useSetNavigationList as C } from "./useNavigation.js";
|
|
10
|
+
g();
|
|
11
|
+
const I = /* @__PURE__ */ c(({ logoSrc: t, title: i }) => {
|
|
12
|
+
const f = m(t), e = m(i), { env: o, navigationConfig: n } = u(), r = S(), s = C(), { setLoading: a } = l();
|
|
13
|
+
d(), L(() => {
|
|
14
|
+
r(f.current), e.current && (document.title = e.current), a({
|
|
12
15
|
loading: !1
|
|
13
|
-
}),
|
|
14
|
-
}, [
|
|
16
|
+
}), o != null && o.isBackendNavigationEnabled || s(n);
|
|
17
|
+
}, [o, n, a, r, s]);
|
|
15
18
|
}, "useInitApp");
|
|
16
19
|
export {
|
|
17
|
-
|
|
20
|
+
I as useInitApp
|
|
18
21
|
};
|
|
19
22
|
//# sourceMappingURL=useInitApp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInitApp.js","sources":["../../src/hooks/useInitApp.ts"],"sourcesContent":["import { useOwpAppContext } from '@/contexts/OwpAppProvider';\nimport { useEffect, useRef } from 'react';\nimport { usePageLockLoading } from './usePageLockLoading';\nimport { useSetLogoSrc } from './useLogoSrc';\nimport { useSetNavigationList } from './useNavigation';\n\nexport interface UseInitAppOptions {\n logoSrc: string;\n title?: string;\n}\n\n/**\n * 앱 기본 상태 초기화 훅\n * @param logoSrc 초기 로고 경로\n * @param title 문서 제목\n */\nexport const useInitApp = ({ logoSrc, title }: UseInitAppOptions) => {\n const initialLogoSrc = useRef(logoSrc);\n const initialTitle = useRef(title);\n const { env, navigationConfig } = useOwpAppContext();\n const setLogoSrc = useSetLogoSrc();\n const setNavigationList = useSetNavigationList();\n const { setLoading } = usePageLockLoading();\n\n useEffect(() => {\n setLogoSrc(initialLogoSrc.current);\n\n if (initialTitle.current) {\n document.title = initialTitle.current;\n }\n\n setLoading({\n loading: false,\n });\n\n if (!env?.isBackendNavigationEnabled) {\n setNavigationList(navigationConfig);\n }\n }, [env, navigationConfig, setLoading, setLogoSrc, setNavigationList]);\n};\n"],"names":["useInitApp","__name","logoSrc","title","initialLogoSrc","useRef","initialTitle","env","navigationConfig","useOwpAppContext","setLogoSrc","useSetLogoSrc","setNavigationList","useSetNavigationList","setLoading","usePageLockLoading","useEffect"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInitApp.js","sources":["../../src/hooks/useInitApp.ts"],"sourcesContent":["import { useOwpAppContext } from '@/contexts/OwpAppProvider';\nimport { ensureDayjsBrowserSetup } from '@/utils/dayjsBrowser';\nimport { useEffect, useRef } from 'react';\nimport { useInitCommonCodes } from './internal/useInitCommonCodes';\nimport { usePageLockLoading } from './usePageLockLoading';\nimport { useSetLogoSrc } from './useLogoSrc';\nimport { useSetNavigationList } from './useNavigation';\n\nexport interface UseInitAppOptions {\n logoSrc: string;\n title?: string;\n}\n\nensureDayjsBrowserSetup();\n\n/**\n * 앱 기본 상태 초기화 훅\n * @param logoSrc 초기 로고 경로\n * @param title 문서 제목\n */\nexport const useInitApp = ({ logoSrc, title }: UseInitAppOptions) => {\n const initialLogoSrc = useRef(logoSrc);\n const initialTitle = useRef(title);\n const { env, navigationConfig } = useOwpAppContext();\n const setLogoSrc = useSetLogoSrc();\n const setNavigationList = useSetNavigationList();\n const { setLoading } = usePageLockLoading();\n\n useInitCommonCodes();\n\n useEffect(() => {\n setLogoSrc(initialLogoSrc.current);\n\n if (initialTitle.current) {\n document.title = initialTitle.current;\n }\n\n setLoading({\n loading: false,\n });\n\n if (!env?.isBackendNavigationEnabled) {\n setNavigationList(navigationConfig);\n }\n }, [env, navigationConfig, setLoading, setLogoSrc, setNavigationList]);\n};\n"],"names":["ensureDayjsBrowserSetup","useInitApp","__name","logoSrc","title","initialLogoSrc","useRef","initialTitle","env","navigationConfig","useOwpAppContext","setLogoSrc","useSetLogoSrc","setNavigationList","useSetNavigationList","setLoading","usePageLockLoading","useInitCommonCodes","useEffect"],"mappings":";;;;;;;;;AAaAA,EAAA;AAOO,MAAMC,IAAa,gBAAAC,EAAA,CAAC,EAAE,SAAAC,GAAS,OAAAC,QAA+B;AACnE,QAAMC,IAAiBC,EAAOH,CAAO,GAC/BI,IAAeD,EAAOF,CAAK,GAC3B,EAAE,KAAAI,GAAK,kBAAAC,EAAA,IAAqBC,EAAA,GAC5BC,IAAaC,EAAA,GACbC,IAAoBC,EAAA,GACpB,EAAE,YAAAC,EAAA,IAAeC,EAAA;AAEvB,EAAAC,EAAA,GAEAC,EAAU,MAAM;AACd,IAAAP,EAAWN,EAAe,OAAO,GAE7BE,EAAa,YACf,SAAS,QAAQA,EAAa,UAGhCQ,EAAW;AAAA,MACT,SAAS;AAAA,IAAA,CACV,GAEIP,KAAA,QAAAA,EAAK,8BACRK,EAAkBJ,CAAgB;AAAA,EAEtC,GAAG,CAACD,GAAKC,GAAkBM,GAAYJ,GAAYE,CAAiB,CAAC;AACvE,GAzB0B;"}
|
package/dist/hooks.js
CHANGED
|
@@ -7,82 +7,80 @@ import { useGetCurrentUser as L, useSetCurrentUser as d } from "./hooks/useCurre
|
|
|
7
7
|
import { useGetCurrentUserId as T, useSetCurrentUserId as E } from "./hooks/useCurrentUserId.js";
|
|
8
8
|
import { useEnsureCurrentUserSeq as l, useGetCurrentUserSeq as U, useSetCurrentUserSeq as v } from "./hooks/useCurrentUserSeq.js";
|
|
9
9
|
import { useDebounce as A } from "./hooks/useDebounce.js";
|
|
10
|
-
import { useDeepCompareEffect as N, useDeepCompareEffectNoCheck as
|
|
10
|
+
import { useDeepCompareEffect as N, useDeepCompareEffectNoCheck as k, useDeepCompareMemoize as F } from "./hooks/useDeepCompareEffect.js";
|
|
11
11
|
import { useFormDataUploadMutation as M } from "./hooks/useFormDataUploadMutation.js";
|
|
12
12
|
import { useHeaderWrapState as w } from "./hooks/useHeaderWrapState.js";
|
|
13
13
|
import { useInitApp as P } from "./hooks/useInitApp.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { FALLBACK_LANGUAGE_LIST as ke } from "./constants/language.js";
|
|
14
|
+
import { useGetNavbar as _, useNavbarActions as z } from "./hooks/useNavbar.js";
|
|
15
|
+
import { useGetNavigationList as H, useSetNavigationList as K } from "./hooks/useNavigation.js";
|
|
16
|
+
import { useChangeOwpTheme as R, useGetCurrentLayoutConfig as W, useGetCurrentSettings as j, useGetCustomScrollbarsEnabled as J, useGetDefaultSettings as V, useGetFooterTheme as X, useGetMainTheme as Y, useGetNavbarTheme as Z, useGetOwpSettings as $, useGetToolbarTheme as ee, useResetSettings as re, useSetDefaultSettings as te, useSetSettings as oe } from "./hooks/useOwpSettings.js";
|
|
17
|
+
import { useOwpTranslation as ue } from "./hooks/useOwpTranslation.js";
|
|
18
|
+
import { useGetPageLockLoading as ne, usePageLockLoading as ae } from "./hooks/usePageLockLoading.js";
|
|
19
|
+
import { usePrevious as fe } from "./hooks/usePrevious.js";
|
|
20
|
+
import { useGetShortcuts as xe, useSetShortcuts as Ce } from "./hooks/useShortcuts.js";
|
|
21
|
+
import { getEnv as Ge, setEnv as ge, useStorage as Le } from "./hooks/useStorage.js";
|
|
22
|
+
import { useThemeMediaQuery as ce } from "./hooks/useThemeMediaQuery.js";
|
|
23
|
+
import { useTimeout as Ee } from "./hooks/useTimeout.js";
|
|
24
|
+
import { useTreeGridCommonCodeEnums as le } from "./hooks/useTreeGridCommonCodeEnums.js";
|
|
25
|
+
import { useTreeGridEnums as ve } from "./hooks/useTreeGridEnums.js";
|
|
26
|
+
import { useTreeGridExcelExport as Ae } from "./hooks/useTreeGridExcelExport.js";
|
|
27
|
+
import { FALLBACK_LANGUAGE_LIST as Ne } from "./constants/language.js";
|
|
29
28
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
Ne as FALLBACK_LANGUAGE_LIST,
|
|
30
|
+
Ge as getEnv,
|
|
31
|
+
ge as setEnv,
|
|
33
32
|
m as useAccessTokenGuard,
|
|
34
|
-
|
|
33
|
+
R as useChangeOwpTheme,
|
|
35
34
|
a as useConfirm,
|
|
36
35
|
A as useDebounce,
|
|
37
36
|
N as useDeepCompareEffect,
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
k as useDeepCompareEffectNoCheck,
|
|
38
|
+
F as useDeepCompareMemoize,
|
|
40
39
|
l as useEnsureCurrentUserSeq,
|
|
41
40
|
t as useFilteredCommonCodeList,
|
|
42
41
|
M as useFormDataUploadMutation,
|
|
43
42
|
o as useGetCommonCodeList,
|
|
44
43
|
f as useGetCurrentLanguage,
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
W as useGetCurrentLayoutConfig,
|
|
45
|
+
j as useGetCurrentSettings,
|
|
47
46
|
L as useGetCurrentUser,
|
|
48
47
|
T as useGetCurrentUserId,
|
|
49
48
|
U as useGetCurrentUserSeq,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
J as useGetCustomScrollbarsEnabled,
|
|
50
|
+
V as useGetDefaultSettings,
|
|
51
|
+
X as useGetFooterTheme,
|
|
53
52
|
i as useGetLanguageList,
|
|
54
53
|
S as useGetLogoSrc,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
54
|
+
Y as useGetMainTheme,
|
|
55
|
+
_ as useGetNavbar,
|
|
56
|
+
Z as useGetNavbarTheme,
|
|
57
|
+
H as useGetNavigationList,
|
|
58
|
+
$ as useGetOwpSettings,
|
|
59
|
+
ne as useGetPageLockLoading,
|
|
60
|
+
xe as useGetShortcuts,
|
|
61
|
+
ee as useGetToolbarTheme,
|
|
63
62
|
w as useHeaderWrapState,
|
|
64
63
|
P as useInitApp,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
fe as
|
|
69
|
-
|
|
70
|
-
oe as useResetSettings,
|
|
64
|
+
z as useNavbarActions,
|
|
65
|
+
ue as useOwpTranslation,
|
|
66
|
+
ae as usePageLockLoading,
|
|
67
|
+
fe as usePrevious,
|
|
68
|
+
re as useResetSettings,
|
|
71
69
|
s as useSetCommonCodeList,
|
|
72
70
|
x as useSetCurrentLanguage,
|
|
73
71
|
d as useSetCurrentUser,
|
|
74
72
|
E as useSetCurrentUserId,
|
|
75
73
|
v as useSetCurrentUserSeq,
|
|
76
|
-
|
|
74
|
+
te as useSetDefaultSettings,
|
|
77
75
|
G as useSetLogoSrc,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
76
|
+
K as useSetNavigationList,
|
|
77
|
+
oe as useSetSettings,
|
|
78
|
+
Ce as useSetShortcuts,
|
|
79
|
+
Le as useStorage,
|
|
80
|
+
ce as useThemeMediaQuery,
|
|
81
|
+
Ee as useTimeout,
|
|
82
|
+
le as useTreeGridCommonCodeEnums,
|
|
83
|
+
ve as useTreeGridEnums,
|
|
84
|
+
Ae as useTreeGridExcelExport
|
|
87
85
|
};
|
|
88
86
|
//# sourceMappingURL=hooks.js.map
|
package/dist/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,118 +1,115 @@
|
|
|
1
1
|
import { DialogsProvider as r } from "@toolpad/core/useDialogs";
|
|
2
2
|
import { themeLayouts as p } from "./layout/themeLayouts.js";
|
|
3
|
-
import { createInitialOwpSettings as
|
|
4
|
-
import { OwpAutoLogoutDialog as
|
|
5
|
-
import { OwpBarcodeInputField as
|
|
3
|
+
import { createInitialOwpSettings as x, defaultSettings as a, defaultSnackbarTheme as f, defaultThemeOptions as O, defaultThemes as w, extendThemeWithMixins as i, generateSettings as l, getDefaultLayout as n, getDefaultThemeSettings as d, getParsedQuerySettings as u, mustHaveThemeOptions as g } from "./configs/defaultConfig.js";
|
|
4
|
+
import { OwpAutoLogoutDialog as s } from "./components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js";
|
|
5
|
+
import { OwpBarcodeInputField as S } from "./components/OwpBarcodeInput/OwpBarcodeInputField.js";
|
|
6
6
|
import { OwpExportDataToExcelButton as P } from "./components/OwpExportExcelButton/OwpExportExcelButton.js";
|
|
7
7
|
import { OwpFilePickerButton as h } from "./components/OwpFilePickerButton/OwpFilePickerButton.js";
|
|
8
|
-
import { OwpMoreActionsButton as
|
|
8
|
+
import { OwpMoreActionsButton as k } from "./components/OwpMoreActionsButton/OwpMoreActionsButton.js";
|
|
9
9
|
import { OwpDatePicker as B } from "./components/OwpPicker/OwpDatePicker.js";
|
|
10
10
|
import { OwpDateRangePicker as L } from "./components/OwpPicker/OwpDateRangePicker.js";
|
|
11
11
|
import { OwpTimePicker as G } from "./components/OwpPicker/OwpTimePicker.js";
|
|
12
12
|
import { OwpWeekDatePicker as v } from "./components/OwpPicker/OwpWeekDatePicker.js";
|
|
13
13
|
import { OwpYearRangePicker as M } from "./components/OwpPicker/OwpYearRangePicker.js";
|
|
14
14
|
import { OwpDataTable as A } from "./components/OwpTable/OwpDataTable.js";
|
|
15
|
-
import { OwpTable as N
|
|
16
|
-
import { OwpFieldTable as
|
|
17
|
-
import { OwpTextMaskField as
|
|
18
|
-
import { OwpTreeGridToolbar as
|
|
19
|
-
import { OwpZoomImageSlider as
|
|
20
|
-
import { default as
|
|
21
|
-
import { OwpErrorBoundary as
|
|
22
|
-
import { OwpEventEmitter as
|
|
23
|
-
import { OwpLanguageSwitcherSelect as
|
|
24
|
-
import { OwpAlertDialog as
|
|
25
|
-
import { OwpDialog as
|
|
26
|
-
import { CommonCodeSelector as
|
|
27
|
-
import { CommonCodeQuerySelector as
|
|
28
|
-
import { CommonCodeRadioGroup as
|
|
29
|
-
import { OwpErrorStatusPage as
|
|
30
|
-
import { OwpFieldHelperText as
|
|
31
|
-
import { OwpLayout as
|
|
32
|
-
import { OwpLoading as
|
|
33
|
-
import { OwpMrtTable as
|
|
34
|
-
import { OwpNumberField as
|
|
35
|
-
import { OwpOptionSelector as
|
|
36
|
-
import { OwpPageCarded as
|
|
37
|
-
import { OwpPageContent as
|
|
38
|
-
import { OwpPageLockLoading as
|
|
39
|
-
import { OwpPageTitle as
|
|
40
|
-
import { OwpQuerySelector as
|
|
41
|
-
import { OwpScrollbars as
|
|
42
|
-
import { OwpSearchFilter as
|
|
43
|
-
import { OwpSection as
|
|
44
|
-
import { OwpStyleProvider as
|
|
45
|
-
import { OwpSuspense as
|
|
46
|
-
import { OwpSvgIcon as
|
|
47
|
-
import { OwpRequiredHelperText as
|
|
48
|
-
import { OwpTab as
|
|
49
|
-
import { OwpTabs as
|
|
50
|
-
import { OwpTreeGridExportExcelButton as
|
|
51
|
-
import { OwpTreeGridResetChangesButton as
|
|
52
|
-
import { OwpTreeGrid as
|
|
53
|
-
import { TreeGrid as
|
|
54
|
-
import { OwpYesNoSelector as
|
|
15
|
+
import { OwpTable as N } from "./components/OwpTable/OwpTable.js";
|
|
16
|
+
import { OwpFieldTable as Y } from "./components/OwpTable/OwpFieldTable.js";
|
|
17
|
+
import { OwpTextMaskField as Z } from "./components/OwpTextField/OwpTextMaskField.js";
|
|
18
|
+
import { OwpTreeGridToolbar as z } from "./components/OwpTreeGrid/OwpTreeGridToolbar.js";
|
|
19
|
+
import { OwpZoomImageSlider as K } from "./components/OwpZoomImageSlider/OwpZoomImageSlider.js";
|
|
20
|
+
import { default as V } from "./components/OwpPageBreadcrumb/OwpPageBreadcrumb.js";
|
|
21
|
+
import { OwpErrorBoundary as _ } from "./components/OwpErrorBoundary/OwpErrorBoundary.js";
|
|
22
|
+
import { OwpEventEmitter as ee } from "./components/OwpEventEmitter/OwpEventEmitter.js";
|
|
23
|
+
import { OwpLanguageSwitcherSelect as re } from "./components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.js";
|
|
24
|
+
import { OwpAlertDialog as pe } from "./components/OwpDialog/OwpAlertDialog.js";
|
|
25
|
+
import { OwpDialog as xe } from "./components/OwpDialog/OwpDialog.js";
|
|
26
|
+
import { CommonCodeSelector as fe, OwpCommonCodeSelector as Oe } from "./components/OwpCommonCode/OwpCommonCodeSelector.js";
|
|
27
|
+
import { CommonCodeQuerySelector as ie, OwpCommonCodeQuerySelector as le } from "./components/OwpCommonCode/OwpCommonCodeQuerySelector.js";
|
|
28
|
+
import { CommonCodeRadioGroup as de, OwpCommonCodeRadioGroup as ue } from "./components/OwpCommonCode/OwpCommonCodeRadioGroup.js";
|
|
29
|
+
import { OwpErrorStatusPage as ce } from "./components/OwpErrorStatusPage/OwpErrorStatusPage.js";
|
|
30
|
+
import { OwpFieldHelperText as Te } from "./components/OwpFieldHelperText/OwpFieldHelperText.js";
|
|
31
|
+
import { OwpLayout as Ce } from "./components/OwpLayout/OwpLayout.js";
|
|
32
|
+
import { OwpLoading as be } from "./components/OwpLoading/OwpLoading.js";
|
|
33
|
+
import { OwpMrtTable as De } from "./components/OwpMrtTable/OwpMrtTable.js";
|
|
34
|
+
import { OwpNumberField as ye } from "./components/OwpNumberField/OwpNumberField.js";
|
|
35
|
+
import { OwpOptionSelector as Ee } from "./components/OwpOptionSelector/OwpOptionSelector.js";
|
|
36
|
+
import { OwpPageCarded as Fe } from "./components/OwpPageCarded/OwpPageCarded.js";
|
|
37
|
+
import { OwpPageContent as Re } from "./components/OwpPageContent/OwpPageContent.js";
|
|
38
|
+
import { OwpPageLockLoading as Ie } from "./components/OwpPageLockLoading/OwpPageLockLoading.js";
|
|
39
|
+
import { OwpPageTitle as Qe } from "./components/OwpPageTitle/OwpPageTitle.js";
|
|
40
|
+
import { OwpQuerySelector as He } from "./components/OwpQuerySelector/OwpQuerySelector.js";
|
|
41
|
+
import { OwpScrollbars as We } from "./components/OwpScrollbars/OwpScrollbars.js";
|
|
42
|
+
import { OwpSearchFilter as qe } from "./components/OwpSearchFilter/OwpSearchFilter.js";
|
|
43
|
+
import { OwpSection as je } from "./components/OwpSection/OwpSection.js";
|
|
44
|
+
import { OwpStyleProvider as Je } from "./components/OwpStyleProvider/OwpStyleProvider.js";
|
|
45
|
+
import { OwpSuspense as Ue } from "./components/OwpSuspense/OwpSuspense.js";
|
|
46
|
+
import { OwpSvgIcon as Xe } from "./components/OwpSvgIcon/OwpSvgIcon.js";
|
|
47
|
+
import { OwpRequiredHelperText as $e } from "./components/OwpRequiredHelperText/OwpRequiredHelperText.js";
|
|
48
|
+
import { OwpTab as oo } from "./components/OwpTabs/OwpTab.js";
|
|
49
|
+
import { OwpTabs as to } from "./components/OwpTabs/OwpTabs.js";
|
|
50
|
+
import { OwpTreeGridExportExcelButton as mo } from "./components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js";
|
|
51
|
+
import { OwpTreeGridResetChangesButton as ao } from "./components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js";
|
|
52
|
+
import { OwpTreeGrid as Oo } from "./components/OwpTreeGrid/OwpTreeGrid.js";
|
|
53
|
+
import { TreeGrid as io } from "./components/OwpTreeGrid/TreeGrid.js";
|
|
54
|
+
import { OwpYesNoSelector as no } from "./components/OwpYesNoSelector/OwpYesNoSelector.js";
|
|
55
55
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
ie as CommonCodeQuerySelector,
|
|
57
|
+
de as CommonCodeRadioGroup,
|
|
58
|
+
fe as CommonCodeSelector,
|
|
59
59
|
r as DialogsProvider,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
pe as OwpAlertDialog,
|
|
61
|
+
s as OwpAutoLogoutDialog,
|
|
62
|
+
S as OwpBarcodeInputField,
|
|
63
|
+
le as OwpCommonCodeQuerySelector,
|
|
64
|
+
ue as OwpCommonCodeRadioGroup,
|
|
65
|
+
Oe as OwpCommonCodeSelector,
|
|
66
66
|
A as OwpDataTable,
|
|
67
67
|
B as OwpDatePicker,
|
|
68
68
|
L as OwpDateRangePicker,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
xe as OwpDialog,
|
|
70
|
+
_ as OwpErrorBoundary,
|
|
71
|
+
ce as OwpErrorStatusPage,
|
|
72
|
+
ee as OwpEventEmitter,
|
|
73
73
|
P as OwpExportDataToExcelButton,
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
Te as OwpFieldHelperText,
|
|
75
|
+
Y as OwpFieldTable,
|
|
76
76
|
h as OwpFilePickerButton,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
77
|
+
re as OwpLanguageSwitcherSelect,
|
|
78
|
+
Ce as OwpLayout,
|
|
79
|
+
be as OwpLoading,
|
|
80
|
+
k as OwpMoreActionsButton,
|
|
81
|
+
De as OwpMrtTable,
|
|
82
|
+
ye as OwpNumberField,
|
|
83
|
+
Ee as OwpOptionSelector,
|
|
84
|
+
V as OwpPageBreadcrumb,
|
|
85
|
+
Fe as OwpPageCarded,
|
|
86
|
+
Re as OwpPageContent,
|
|
87
|
+
Ie as OwpPageLockLoading,
|
|
88
|
+
Qe as OwpPageTitle,
|
|
89
|
+
He as OwpQuerySelector,
|
|
90
|
+
$e as OwpRequiredHelperText,
|
|
91
|
+
We as OwpScrollbars,
|
|
92
|
+
qe as OwpSearchFilter,
|
|
93
|
+
je as OwpSection,
|
|
94
|
+
Je as OwpStyleProvider,
|
|
95
|
+
Ue as OwpSuspense,
|
|
96
|
+
Xe as OwpSvgIcon,
|
|
97
|
+
oo as OwpTab,
|
|
98
98
|
N as OwpTable,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
J as OwpTextMaskField,
|
|
99
|
+
to as OwpTabs,
|
|
100
|
+
Z as OwpTextMaskField,
|
|
102
101
|
G as OwpTimePicker,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
Oo as OwpTreeGrid,
|
|
103
|
+
mo as OwpTreeGridExportExcelButton,
|
|
104
|
+
ao as OwpTreeGridResetChangesButton,
|
|
105
|
+
z as OwpTreeGridToolbar,
|
|
107
106
|
v as OwpWeekDatePicker,
|
|
108
107
|
M as OwpYearRangePicker,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
a as createInitialOwpSettings,
|
|
115
|
-
x as defaultSettings,
|
|
108
|
+
no as OwpYesNoSelector,
|
|
109
|
+
K as OwpZoomImageSlider,
|
|
110
|
+
io as TreeGrid,
|
|
111
|
+
x as createInitialOwpSettings,
|
|
112
|
+
a as defaultSettings,
|
|
116
113
|
f as defaultSnackbarTheme,
|
|
117
114
|
O as defaultThemeOptions,
|
|
118
115
|
w as defaultThemes,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var A = Object.defineProperty;
|
|
2
|
+
var B = (n, u) => A(n, "name", { value: u, configurable: !0 });
|
|
3
|
+
import { __module as i } from "../../../../../../_virtual/isBetween2.js";
|
|
4
|
+
var _ = i.exports, a;
|
|
5
|
+
function v() {
|
|
6
|
+
return a ? i.exports : (a = 1, (function(n, u) {
|
|
7
|
+
(function(c, o) {
|
|
8
|
+
n.exports = o();
|
|
9
|
+
})(_, (function() {
|
|
10
|
+
return function(c, o, f) {
|
|
11
|
+
o.prototype.isBetween = function(x, w, e, s) {
|
|
12
|
+
var t = f(x), r = f(w), h = (s = s || "()")[0] === "(", p = s[1] === ")";
|
|
13
|
+
return (h ? this.isAfter(t, e) : !this.isBefore(t, e)) && (p ? this.isBefore(r, e) : !this.isAfter(r, e)) || (h ? this.isBefore(t, e) : !this.isAfter(t, e)) && (p ? this.isAfter(r, e) : !this.isBefore(r, e));
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}));
|
|
17
|
+
})(i), i.exports);
|
|
18
|
+
}
|
|
19
|
+
B(v, "requireIsBetween");
|
|
20
|
+
export {
|
|
21
|
+
v as __require
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=isBetween.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBetween.js","sources":["../../../../../../../../../node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/isBetween.js"],"sourcesContent":["!function(e,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isBetween=i()}(this,(function(){\"use strict\";return function(e,i,t){i.prototype.isBetween=function(e,i,s,f){var n=t(e),o=t(i),r=\"(\"===(f=f||\"()\")[0],u=\")\"===f[1];return(r?this.isAfter(n,s):!this.isBefore(n,s))&&(u?this.isBefore(o,s):!this.isAfter(o,s))||(r?this.isBefore(n,s):!this.isAfter(n,s))&&(u?this.isAfter(o,s):!this.isBefore(o,s))}}}));"],"names":["e","i","module","this","t","s","f","n","o","r","u"],"mappings":";;;;;;AAAA,KAAC,SAASA,GAAEC,GAAE;AAAsD,MAAAC,EAAA,UAAeD,EAAC;AAAA,IAAmI,GAAEE,IAAM,WAAU;AAAc,aAAO,SAASH,GAAEC,GAAEG,GAAE;AAAC,QAAAH,EAAE,UAAU,YAAU,SAASD,GAAEC,GAAEI,GAAEC,GAAE;AAAC,cAAIC,IAAEH,EAAEJ,CAAC,GAAEQ,IAAEJ,EAAEH,CAAC,GAAEQ,KAASH,IAAEA,KAAG,MAAM,CAAC,MAAnB,KAAqBI,IAAQJ,EAAE,CAAC,MAAT;AAAW,kBAAOG,IAAE,KAAK,QAAQF,GAAEF,CAAC,IAAE,CAAC,KAAK,SAASE,GAAEF,CAAC,OAAKK,IAAE,KAAK,SAASF,GAAEH,CAAC,IAAE,CAAC,KAAK,QAAQG,GAAEH,CAAC,OAAKI,IAAE,KAAK,SAASF,GAAEF,CAAC,IAAE,CAAC,KAAK,QAAQE,GAAEF,CAAC,OAAKK,IAAE,KAAK,QAAQF,GAAEH,CAAC,IAAE,CAAC,KAAK,SAASG,GAAEH,CAAC;AAAA,QAAE;AAAA,MAAC;AAAA,IAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var n = Object.defineProperty;
|
|
2
2
|
var $ = (r, t) => n(r, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { __exports as x } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as x } from "../../../../../../../../_virtual/constants3.js";
|
|
4
4
|
var e;
|
|
5
5
|
function o() {
|
|
6
6
|
return e ? x : (e = 1, Object.defineProperty(x, "__esModule", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var n = Object.defineProperty;
|
|
2
2
|
var G = (r, t) => n(r, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { __exports as L } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as L } from "../../../../../../../../_virtual/constants4.js";
|
|
4
4
|
var e;
|
|
5
5
|
function o() {
|
|
6
6
|
return e ? L : (e = 1, Object.defineProperty(L, "__esModule", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var o = Object.defineProperty;
|
|
2
2
|
var r = (n, s) => o(n, "name", { value: s, configurable: !0 });
|
|
3
|
-
import { __exports as e } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as e } from "../../../../../../../../_virtual/constants.js";
|
|
4
4
|
var t;
|
|
5
5
|
function _() {
|
|
6
6
|
return t ? e : (t = 1, Object.defineProperty(e, "__esModule", {
|
|
@@ -8,7 +8,6 @@ export type OwpCommonCodeQuerySelectorProps = Omit<SelectProps<string>, 'default
|
|
|
8
8
|
apiUrl?: string;
|
|
9
9
|
defaultValue?: string;
|
|
10
10
|
description?: string;
|
|
11
|
-
disableAllValueItem?: boolean;
|
|
12
11
|
filterOptions?: (commonCode: OwpCommonCodeQueryItem) => boolean;
|
|
13
12
|
groupId?: string;
|
|
14
13
|
helperText?: string;
|
|
@@ -19,6 +18,7 @@ export type OwpCommonCodeQuerySelectorProps = Omit<SelectProps<string>, 'default
|
|
|
19
18
|
queryKeyDeps?: readonly unknown[];
|
|
20
19
|
responseListKey?: string;
|
|
21
20
|
selectorType?: OwpSelectorType;
|
|
21
|
+
showAllOption?: boolean;
|
|
22
22
|
textFieldProps?: Omit<TextFieldProps, 'defaultValue' | 'error' | 'helperText' | 'label' | 'onChange' | 'required' | 'value'>;
|
|
23
23
|
useValueKeyDescription?: boolean;
|
|
24
24
|
value?: string;
|
|
@@ -27,6 +27,6 @@ export type OwpCommonCodeQuerySelectorProps = Omit<SelectProps<string>, 'default
|
|
|
27
27
|
* 원격 조회형 공통코드 선택기
|
|
28
28
|
* @param props 원격 공통코드 선택기 props
|
|
29
29
|
*/
|
|
30
|
-
export declare const OwpCommonCodeQuerySelector: ({ apiUrl, className, defaultValue, description,
|
|
31
|
-
export declare const CommonCodeQuerySelector: ({ apiUrl, className, defaultValue, description,
|
|
30
|
+
export declare const OwpCommonCodeQuerySelector: ({ apiUrl, className, defaultValue, description, error, filterOptions, fullWidth, groupId, helperText, label, labelResolver, multiple, onChange, query, queryKeyDeps, required, responseListKey, selectorType, showAllOption, textFieldProps, useValueKeyDescription, value, variant, ...selectProps }: OwpCommonCodeQuerySelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const CommonCodeQuerySelector: ({ apiUrl, className, defaultValue, description, error, filterOptions, fullWidth, groupId, helperText, label, labelResolver, multiple, onChange, query, queryKeyDeps, required, responseListKey, selectorType, showAllOption, textFieldProps, useValueKeyDescription, value, variant, ...selectProps }: OwpCommonCodeQuerySelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export {};
|
|
@@ -7,13 +7,13 @@ export type OwpCommonCodeSelectorProps = Omit<SelectProps<string>, 'defaultValue
|
|
|
7
7
|
codeId: string;
|
|
8
8
|
description?: string;
|
|
9
9
|
useValueKeyDescription?: boolean;
|
|
10
|
-
disableAllValueItem?: boolean;
|
|
11
10
|
helperText?: string;
|
|
12
11
|
filterOptions?: (commonCode: CommonCode) => boolean;
|
|
13
12
|
defaultValue?: string;
|
|
14
13
|
multiple?: boolean;
|
|
15
14
|
onChange?: CommonCodeSelectChangeHandler;
|
|
16
15
|
selectorType?: OwpSelectorType;
|
|
16
|
+
showAllOption?: boolean;
|
|
17
17
|
textFieldProps?: Omit<TextFieldProps, 'defaultValue' | 'error' | 'helperText' | 'label' | 'onChange' | 'required' | 'value'>;
|
|
18
18
|
value?: string;
|
|
19
19
|
};
|
|
@@ -21,6 +21,6 @@ export type OwpCommonCodeSelectorProps = Omit<SelectProps<string>, 'defaultValue
|
|
|
21
21
|
* 공통코드 선택기
|
|
22
22
|
* @param props 공통코드 선택기 props
|
|
23
23
|
*/
|
|
24
|
-
export declare const OwpCommonCodeSelector: ({ className, codeId, defaultValue, description,
|
|
25
|
-
export declare const CommonCodeSelector: ({ className, codeId, defaultValue, description,
|
|
24
|
+
export declare const OwpCommonCodeSelector: ({ className, codeId, defaultValue, description, error, filterOptions, fullWidth, helperText, label, multiple, onChange, required, selectorType, showAllOption, textFieldProps, useValueKeyDescription, value, variant, ...selectProps }: OwpCommonCodeSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const CommonCodeSelector: ({ className, codeId, defaultValue, description, error, filterOptions, fullWidth, helperText, label, multiple, onChange, required, selectorType, showAllOption, textFieldProps, useValueKeyDescription, value, variant, ...selectProps }: OwpCommonCodeSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -13,6 +13,7 @@ type DataTableProps<TData extends MRT_RowData> = MaterialReactTableProps<TData>
|
|
|
13
13
|
canTotalCountRow?: boolean;
|
|
14
14
|
canUseTreeGridStyle?: boolean;
|
|
15
15
|
headerCellStyle?: OwpMrtTableHeaderCellStyle;
|
|
16
|
+
tableBorderRadius?: string | number;
|
|
16
17
|
totalCount?: number;
|
|
17
18
|
};
|
|
18
19
|
export type OwpMrtTableProps<TData extends MRT_RowData> = DataTableProps<TData>;
|
|
@@ -8,16 +8,16 @@ export interface OwpOptionSelectorOption {
|
|
|
8
8
|
export interface OwpOptionSelectorProps extends Omit<SelectProps<string>, 'defaultValue' | 'multiple' | 'onChange' | 'renderValue' | 'value'> {
|
|
9
9
|
label?: string;
|
|
10
10
|
defaultValue?: string;
|
|
11
|
-
disableAllValueItem?: boolean;
|
|
12
11
|
helperText?: string;
|
|
13
12
|
multiple?: boolean;
|
|
14
13
|
onChange?: (event: SelectChangeEvent<string>, child: ReactNode) => void;
|
|
15
14
|
options: OwpOptionSelectorOption[];
|
|
15
|
+
showAllOption?: boolean;
|
|
16
16
|
value?: string;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* 옵션 선택기
|
|
20
20
|
* @param props 옵션 선택기 props
|
|
21
21
|
*/
|
|
22
|
-
declare const OwpOptionSelector: ({ className, defaultValue,
|
|
22
|
+
declare const OwpOptionSelector: ({ className, defaultValue, error, fullWidth, helperText, label, multiple, onChange, options, required, showAllOption, value, ...selectProps }: OwpOptionSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export { OwpOptionSelector };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TextFieldProps } from '@mui/material';
|
|
1
|
+
import { type TextFieldProps } from '@mui/material';
|
|
2
2
|
import { type TimePickerProps } from '@mui/x-date-pickers';
|
|
3
|
-
import { type Dayjs } from 'dayjs';
|
|
3
|
+
import { type Dayjs } from '@/dayjs';
|
|
4
4
|
export type OwpTimePickerValue = string | Date | Dayjs;
|
|
5
5
|
interface OwnProps {
|
|
6
6
|
label?: string;
|
|
@@ -2,4 +2,19 @@ export declare const VALUE_YEAR_FORMATTER = "YYYY";
|
|
|
2
2
|
export declare const VALUE_MONTH_FORMATTER = "YYYY-MM";
|
|
3
3
|
export declare const VALUE_DATE_FORMATTER = "YYYY-MM-DD";
|
|
4
4
|
export declare const VALUE_TIME_FORMATTER = "HH:mm";
|
|
5
|
+
export declare const VALUE_TIME_SECOND_FORMATTER = "HH:mm:ss";
|
|
5
6
|
export declare const PICKER_INVALID_INPUT_MESSAGE_KEY = "Message.\uC62C\uBC14\uB978 \uD615\uC2DD\uC73C\uB85C \uC785\uB825\uD574\uC8FC\uC138\uC694.";
|
|
7
|
+
export declare const TIME_PICKER_EDITOR_SECTION_WIDTH = 64;
|
|
8
|
+
export declare const TIME_PICKER_EDITOR_SECTION_ITEM_WIDTH = 56;
|
|
9
|
+
export declare const TIME_PICKER_SELECTED_ITEM_SX: {
|
|
10
|
+
'&:hover': {
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
};
|
|
13
|
+
'&.Mui-selected': {
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
color: string;
|
|
16
|
+
'&:focus-visible, &:hover': {
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** focus 가능 요소 여부 */
|
|
2
|
+
export declare const isFocusableElement: (element: Element) => element is HTMLElement;
|
|
3
|
+
/** 루트 기준 인접 focus 요소 */
|
|
4
|
+
export declare const getAdjacentFocusableElement: (rootElement: HTMLElement, isBackward?: boolean) => HTMLElement;
|
|
5
|
+
/** Picker 입력 포맷 기반 IMask 패턴 */
|
|
6
|
+
export declare const getPickerInputMask: (valueFormat: string) => string;
|
|
@@ -3,4 +3,4 @@ import type { OwpQuerySelectorProps } from './types';
|
|
|
3
3
|
* 원격 조회형 공통 선택기
|
|
4
4
|
* @param props 원격 선택기 props
|
|
5
5
|
*/
|
|
6
|
-
export declare const OwpQuerySelector: ({ apiUrl, asyncSearch, buildRequestQuery, className,
|
|
6
|
+
export declare const OwpQuerySelector: ({ apiUrl, asyncSearch, buildRequestQuery, className, filterOptions, forceEmptyOptions, multiple, query, queryKeyDeps, responseListKey, selectorType, value, valueKey, valueResolver, labelKey, labelResolver, onChange, defaultValue, showAllOption, textFieldProps, ...selectorBaseProps }: OwpQuerySelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,6 +25,7 @@ type OwpQuerySelectorSharedProps = Omit<OwpSelectorBaseProps, 'allOptions' | 'al
|
|
|
25
25
|
apiUrl: string;
|
|
26
26
|
buildRequestQuery?: (query: Record<string, unknown>) => Record<string, unknown>;
|
|
27
27
|
filterOptions?: (items: OwpQuerySelectorItem[]) => OwpQuerySelectorItem[];
|
|
28
|
+
forceEmptyOptions?: boolean;
|
|
28
29
|
onChange?: (event: OwpSelectorBaseChangeEvent) => void;
|
|
29
30
|
query: Record<string, unknown>;
|
|
30
31
|
/** 숨은 요청 조건용 React Query key 추가 deps */
|