@owp/core 2.5.21 → 2.5.23
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/OwpMrtTable/OwpMrtTable.js +21 -21
- package/dist/components/OwpMrtTable/OwpMrtTable.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 +31 -32
- 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 +29 -30
- 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/internal/DatePickerInput.js +5 -5
- package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -1
- package/dist/components/OwpSection/OwpSection.js +118 -111
- package/dist/components/OwpSection/OwpSection.js.map +1 -1
- package/dist/components/OwpTable/OwpDataTable.js +13 -12
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpFieldTable.js +82 -99
- package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
- package/dist/components/OwpTable/OwpTable.js +56 -55
- package/dist/components/OwpTable/OwpTable.js.map +1 -1
- package/dist/components/OwpTable/internal/OwpTableBase.js +84 -58
- package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -1
- package/dist/components/OwpTable/internal/defaultTableStyle.js +6 -7
- package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
- package/dist/components/OwpTable/utils/tableSx.js +16 -6
- package/dist/components/OwpTable/utils/tableSx.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +104 -103
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +21 -22
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +253 -252
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/constants/table.js +5 -0
- package/dist/constants/table.js.map +1 -0
- package/dist/constants.js +25 -23
- package/dist/constants.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/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/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/OwpPicker/OwpTimePicker.d.ts +1 -1
- package/dist/types/components/OwpSection/OwpSection.d.ts +9 -3
- package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +0 -1
- package/dist/types/components/OwpTable/utils/tableSx.d.ts +15 -0
- package/dist/types/constants/index.d.ts +1 -0
- package/dist/types/constants/table.d.ts +1 -0
- 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
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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/constants4.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/constants3.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/constants2.js";
|
|
4
4
|
var t;
|
|
5
5
|
function _() {
|
|
6
6
|
return t ? e : (t = 1, Object.defineProperty(e, "__esModule", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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;
|
|
@@ -3,8 +3,10 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
3
3
|
interface OwpSectionProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
headerProps?: HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
titleContainerClassName?: string;
|
|
7
|
+
titleIconClassName?: string;
|
|
8
|
+
titleTextClassName?: string;
|
|
6
9
|
disableTitleIcon?: boolean;
|
|
7
|
-
usePageTitle?: boolean;
|
|
8
10
|
title?: ReactNode;
|
|
9
11
|
actions?: ReactNode;
|
|
10
12
|
leftSlot?: ReactNode;
|
|
@@ -12,6 +14,7 @@ interface OwpSectionProps {
|
|
|
12
14
|
children?: ReactNode;
|
|
13
15
|
iconSize?: IconProps['fontSize'];
|
|
14
16
|
loading?: boolean;
|
|
17
|
+
showDivider?: boolean;
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
20
|
* OwpSection 컴포넌트
|
|
@@ -19,11 +22,14 @@ interface OwpSectionProps {
|
|
|
19
22
|
* @param title 제목
|
|
20
23
|
* @param disableTitleIcon disableTitleIcon 값
|
|
21
24
|
* @param headerProps headerProps props
|
|
22
|
-
* @param
|
|
25
|
+
* @param titleContainerClassName 제목 영역 CSS 클래스명
|
|
26
|
+
* @param titleIconClassName 제목 아이콘 CSS 클래스명
|
|
27
|
+
* @param titleTextClassName 제목 텍스트 CSS 클래스명
|
|
23
28
|
* @param leftSlot leftSlot 값
|
|
24
29
|
* @param centerSlot centerSlot 값
|
|
25
30
|
* @param actions 액션 영역
|
|
26
31
|
* @param loading 로딩 상태
|
|
32
|
+
* @param showDivider 구분선 표시 여부
|
|
27
33
|
*/
|
|
28
|
-
declare const OwpSection: ({ className, title, disableTitleIcon, headerProps,
|
|
34
|
+
declare const OwpSection: ({ className, title, disableTitleIcon, headerProps, titleContainerClassName, titleIconClassName, titleTextClassName, actions, leftSlot, centerSlot, children, iconSize, loading, showDivider, }: OwpSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
35
|
export { OwpSection };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { OwpResolvedTableThemeConfigType } from '@/constants/tableTheme';
|
|
2
|
-
export declare const DEFAULT_TABLE_RADIUS = ".8rem";
|
|
3
2
|
export declare const DEFAULT_TABLE_HEADER_BACKGROUND_COLOR = "#f5f5f5";
|
|
4
3
|
export declare const defaultStyledTableTheme: {
|
|
5
4
|
borderColor: string;
|
|
@@ -9,3 +9,18 @@ export declare const mergeSx: (...styles: Array<SxProps<Theme> | undefined | fal
|
|
|
9
9
|
* @param value radius 값
|
|
10
10
|
*/
|
|
11
11
|
export declare const toTableRadiusCssValue: (value: number | string) => string;
|
|
12
|
+
/**
|
|
13
|
+
* table row helper text 높이 보정 sx
|
|
14
|
+
* @param contentClassName 셀 콘텐츠 className
|
|
15
|
+
*/
|
|
16
|
+
export declare const getTableHelperTextRowSx: (contentClassName: string) => {
|
|
17
|
+
readonly [x: string]: {
|
|
18
|
+
readonly content: "\"\"";
|
|
19
|
+
readonly display: "block";
|
|
20
|
+
readonly height: "calc(0.75rem * 1.66 + 3px)";
|
|
21
|
+
} | {
|
|
22
|
+
readonly display: "none";
|
|
23
|
+
readonly content?: undefined;
|
|
24
|
+
readonly height?: undefined;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -2,5 +2,6 @@ export * from './excel';
|
|
|
2
2
|
export * from './language';
|
|
3
3
|
export * from './localStorageKeys';
|
|
4
4
|
export * from './storageKeys';
|
|
5
|
+
export * from './table';
|
|
5
6
|
export * from './treeGrid';
|
|
6
7
|
export { TREEGRID_TABLE_BODY_BORDER_COLOR, TREEGRID_TABLE_HEADER_BORDER_COLOR, } from '../components/OwpTable/internal/treeGridTableStyle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_TABLE_RADIUS = "0.5rem";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import 'virtual:owp-dayjs-locale-en';
|
|
3
|
+
import 'virtual:owp-dayjs-locale-ko';
|
|
4
|
+
export type { ConfigType, Dayjs, OpUnitType } from 'dayjs';
|
|
5
|
+
declare module 'dayjs' {
|
|
6
|
+
interface Dayjs {
|
|
7
|
+
isBetween(a: import('dayjs').ConfigType, b: import('dayjs').ConfigType, c?: import('dayjs').OpUnitType | null, d?: '()' | '[]' | '[)' | '(]'): boolean;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 브라우저 배포용 dayjs locale/plugin 초기화
|
|
12
|
+
*/
|
|
13
|
+
export declare const ensureDayjsBrowserSetup: () => typeof dayjs;
|
|
14
|
+
/**
|
|
15
|
+
* 브라우저 배포용 dayjs 인스턴스
|
|
16
|
+
*/
|
|
17
|
+
export declare const owpDayjs: typeof dayjs;
|
|
18
|
+
export default owpDayjs;
|
|
@@ -11,7 +11,6 @@ export * from './useDeepCompareEffect';
|
|
|
11
11
|
export * from './useFormDataUploadMutation';
|
|
12
12
|
export * from './useHeaderWrapState';
|
|
13
13
|
export * from './useInitApp';
|
|
14
|
-
export * from './useInitCommonCodes';
|
|
15
14
|
export * from './useNavbar';
|
|
16
15
|
export * from './useNavigation';
|
|
17
16
|
export * from './useOwpSettings';
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import 'virtual:owp-dayjs-locale-en';
|
|
3
|
-
import 'virtual:owp-dayjs-locale-ko';
|
|
4
|
-
/**
|
|
5
|
-
* 브라우저 배포용 dayjs locale/plugin 초기화
|
|
6
|
-
*/
|
|
7
|
-
export declare const ensureDayjsBrowserSetup: () => typeof dayjs;
|
|
1
|
+
export { default, ensureDayjsBrowserSetup, owpDayjs } from '@/dayjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
2
|
var Y = (o, r) => m(o, "name", { value: r, configurable: !0 });
|
|
3
|
-
import t from "dayjs";
|
|
4
|
-
const
|
|
3
|
+
import { owpDayjs as t } from "../dayjs.js";
|
|
4
|
+
const n = /* @__PURE__ */ Y((o, r = "YYYY-MM-DD") => o == null || o === "" ? "" : t(o).format(r), "formatDateToYmd"), a = /* @__PURE__ */ Y((o = "YYYY-MM-DD") => t().format(o), "getTodayYmd");
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
n as formatDateToYmd,
|
|
7
7
|
a as getTodayYmd
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=formatDateToYmd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatDateToYmd.js","sources":["../../src/utils/formatDateToYmd.ts"],"sourcesContent":["import dayjs, { type ConfigType } from 'dayjs';\n\n/**\n * 날짜 문자열 포맷 유틸\n * @param date 원본 날짜 값\n * @param format 출력 포맷\n */\nexport const formatDateToYmd = (date?: ConfigType | null, format = 'YYYY-MM-DD') => {\n if (date == null || date === '') {\n return '';\n }\n\n return dayjs(date).format(format);\n};\n\n/**\n * 오늘 날짜 문자열 포맷 유틸\n * @param format 출력 포맷\n */\nexport const getTodayYmd = (format = 'YYYY-MM-DD') => dayjs().format(format);\n"],"names":["formatDateToYmd","__name","date","format","dayjs","getTodayYmd"],"mappings":";;;AAOO,MAAMA,IAAkB,gBAAAC,EAAA,CAACC,GAA0BC,IAAS,iBAC7DD,KAAQ,QAAQA,MAAS,KACpB,KAGFE,EAAMF,CAAI,EAAE,OAAOC,CAAM,GALH,oBAYlBE,IAAc,gBAAAJ,EAAA,CAACE,IAAS,iBAAiBC,EAAA,EAAQ,OAAOD,CAAM,GAAhD;"}
|
|
1
|
+
{"version":3,"file":"formatDateToYmd.js","sources":["../../src/utils/formatDateToYmd.ts"],"sourcesContent":["import dayjs, { type ConfigType } from '@/dayjs';\n\n/**\n * 날짜 문자열 포맷 유틸\n * @param date 원본 날짜 값\n * @param format 출력 포맷\n */\nexport const formatDateToYmd = (date?: ConfigType | null, format = 'YYYY-MM-DD') => {\n if (date == null || date === '') {\n return '';\n }\n\n return dayjs(date).format(format);\n};\n\n/**\n * 오늘 날짜 문자열 포맷 유틸\n * @param format 출력 포맷\n */\nexport const getTodayYmd = (format = 'YYYY-MM-DD') => dayjs().format(format);\n"],"names":["formatDateToYmd","__name","date","format","dayjs","getTodayYmd"],"mappings":";;;AAOO,MAAMA,IAAkB,gBAAAC,EAAA,CAACC,GAA0BC,IAAS,iBAC7DD,KAAQ,QAAQA,MAAS,KACpB,KAGFE,EAAMF,CAAI,EAAE,OAAOC,CAAM,GALH,oBAYlBE,IAAc,gBAAAJ,EAAA,CAACE,IAAS,iBAAiBC,EAAA,EAAQ,OAAOD,CAAM,GAAhD;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Z = Object.defineProperty;
|
|
2
2
|
var l = (t, e) => Z(t, "name", { value: e, configurable: !0 });
|
|
3
|
-
import $ from "dayjs";
|
|
3
|
+
import { owpDayjs as $ } from "../dayjs.js";
|
|
4
4
|
import { enqueueSnackbar as Q } from "notistack";
|
|
5
5
|
import { exportExcelByBuffer as v } from "./excelUtil.js";
|
|
6
6
|
import { loadExcelJSBrowser as tt } from "./exceljsBrowser.js";
|