@owp/core 2.2.3 → 2.2.4
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/index15.js +2 -5
- package/dist/_virtual/index15.js.map +1 -1
- package/dist/_virtual/index16.js +5 -2
- package/dist/_virtual/index16.js.map +1 -1
- package/dist/_virtual/index17.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpMrtTable/OwpMrtTable.js +186 -162
- package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
- package/dist/components/OwpPageTitle/OwpPageTitle.js +74 -18
- package/dist/components/OwpPageTitle/OwpPageTitle.js.map +1 -1
- package/dist/components/OwpSearchFilter/OwpSearchFilter.js +44 -29
- package/dist/components/OwpSearchFilter/OwpSearchFilter.js.map +1 -1
- package/dist/components/OwpSection/OwpSection.js +102 -41
- package/dist/components/OwpSection/OwpSection.js.map +1 -1
- package/dist/hooks/useHeaderWrapState.js +48 -0
- package/dist/hooks/useHeaderWrapState.js.map +1 -0
- package/dist/hooks.js +40 -38
- package/dist/hooks.js.map +1 -1
- package/dist/layout/components/navigation/vertical/NavVerticalLayout.js +63 -27
- package/dist/layout/components/navigation/vertical/NavVerticalLayout.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/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.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/types/components/OwpSection/OwpSection.d.ts +3 -1
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useHeaderWrapState.d.ts +14 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwpSection.js","sources":["../../../src/components/OwpSection/OwpSection.tsx"],"sourcesContent":["import FitbitIcon from '@mui/icons-material/Fitbit';\nimport { Divider, IconProps } from '@mui/material';\nimport clsx from 'clsx';\nimport type { HTMLAttributes, ReactNode } from 'react';\nimport { OwpPageTitle } from '../OwpPageTitle';\n\ninterface OwpSectionProps {\n className?: string;\n headerProps?: HTMLAttributes<HTMLDivElement>;\n disableTitleIcon?: boolean;\n usePageTitle?: boolean;\n title?: ReactNode;\n actions?: ReactNode;\n leftSlot?: ReactNode;\n centerSlot?: ReactNode;\n children?: ReactNode;\n iconSize?: IconProps['fontSize'];\n}\n\n/**\n * OwpSection 컴포넌트\n * @param className CSS 클래스명\n * @param title 제목\n * @param disableTitleIcon disableTitleIcon 값\n * @param headerProps headerProps props\n * @param usePageTitle usePageTitle 값\n * @param actions 액션 영역\n */\nconst OwpSection = ({\n className,\n title,\n disableTitleIcon,\n headerProps,\n usePageTitle,\n actions,\n leftSlot,\n centerSlot,\n children,\n iconSize,\n}: OwpSectionProps) => {\n const hasTitle = title !== undefined && title !== null && title !== '';\n const shouldRenderHeader = usePageTitle\n ? Boolean(hasTitle || actions || leftSlot || centerSlot)\n : Boolean(
|
|
1
|
+
{"version":3,"file":"OwpSection.js","sources":["../../../src/components/OwpSection/OwpSection.tsx"],"sourcesContent":["import FitbitIcon from '@mui/icons-material/Fitbit';\nimport { Divider, type IconProps } from '@mui/material';\nimport { useHeaderWrapState } from '@/hooks/useHeaderWrapState';\nimport clsx from 'clsx';\nimport type { HTMLAttributes, ReactNode } from 'react';\nimport { OwpPageTitle } from '../OwpPageTitle';\n\ninterface OwpSectionProps {\n className?: string;\n headerProps?: HTMLAttributes<HTMLDivElement>;\n disableTitleIcon?: boolean;\n usePageTitle?: boolean;\n title?: ReactNode;\n actions?: ReactNode;\n leftSlot?: ReactNode;\n centerSlot?: ReactNode;\n children?: ReactNode;\n iconSize?: IconProps['fontSize'];\n}\n\n/**\n * OwpSection 컴포넌트\n * @param className CSS 클래스명\n * @param title 제목\n * @param disableTitleIcon disableTitleIcon 값\n * @param headerProps headerProps props\n * @param usePageTitle usePageTitle 값\n * @param leftSlot leftSlot 값\n * @param centerSlot centerSlot 값\n * @param actions 액션 영역\n */\nconst OwpSection = ({\n className,\n title,\n disableTitleIcon,\n headerProps,\n usePageTitle,\n actions,\n leftSlot,\n centerSlot,\n children,\n iconSize,\n}: OwpSectionProps) => {\n const hasTitle = title !== undefined && title !== null && title !== '';\n const hasSlots = Boolean(leftSlot || centerSlot);\n const { containerRef, titleRef, slotsRef, actionsRef, isWrapped } = useHeaderWrapState([\n title,\n leftSlot,\n centerSlot,\n actions,\n disableTitleIcon,\n iconSize,\n ]);\n const shouldRenderHeader = usePageTitle\n ? Boolean(hasTitle || actions || leftSlot || centerSlot)\n : Boolean(hasTitle || actions || leftSlot || centerSlot);\n\n return (\n <div className={clsx('OwpSection-root flex h-full w-full flex-col', className)}>\n {shouldRenderHeader &&\n (usePageTitle ? (\n <div className=\"OwpSection-header\">\n <div {...headerProps} className={clsx('w-full', headerProps?.className)}>\n <OwpPageTitle\n title={title}\n leftSlot={leftSlot}\n centerSlot={centerSlot}\n actions={actions}\n />\n </div>\n <Divider className=\"my-12\" />\n </div>\n ) : (\n <div className=\"OwpSection-header mb-12 min-h-36 w-full\">\n <div\n ref={containerRef}\n {...headerProps}\n className={clsx(\n 'min-h-36 w-full',\n isWrapped\n ? 'flex flex-col gap-8'\n : 'grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-8 gap-y-8',\n headerProps?.className,\n )}\n >\n {title && (\n <div\n ref={titleRef}\n className={clsx(\n 'flex shrink-0 items-center gap-8 whitespace-nowrap',\n isWrapped ? 'order-1 self-start' : 'col-start-1',\n )}\n >\n {!disableTitleIcon && (\n <FitbitIcon\n className=\"shrink-0\"\n fontSize={iconSize}\n sx={{ fontSize: iconSize ? undefined : 24, color: 'secondary.main' }}\n />\n )}\n <h6 className=\"shrink-0 whitespace-nowrap text-2xl font-medium\">{title}</h6>\n </div>\n )}\n {hasSlots && (\n <div\n ref={slotsRef}\n className={clsx(\n 'flex max-w-full',\n isWrapped ? 'order-2 self-end justify-end' : 'col-start-2 justify-self-center',\n )}\n >\n <div\n className={clsx(\n 'flex max-w-full items-center gap-8',\n isWrapped ? 'flex-wrap justify-end' : 'flex-nowrap justify-center',\n )}\n >\n {leftSlot && <div className=\"max-w-full\">{leftSlot}</div>}\n {centerSlot && <div className=\"max-w-full\">{centerSlot}</div>}\n </div>\n </div>\n )}\n {actions && (\n <div\n ref={actionsRef}\n className={clsx(\n 'flex max-w-full justify-end',\n isWrapped ? 'order-3 self-end' : 'col-start-3 justify-self-end',\n )}\n >\n <div className=\"flex max-w-full flex-wrap items-center gap-8\">{actions}</div>\n </div>\n )}\n </div>\n </div>\n ))}\n <div className=\"OwpSection-body flex min-h-0 flex-1 flex-col\">{children}</div>\n </div>\n );\n};\n\nexport { OwpSection };\n"],"names":["OwpSection","__name","className","title","disableTitleIcon","headerProps","usePageTitle","actions","leftSlot","centerSlot","children","iconSize","hasTitle","hasSlots","containerRef","titleRef","slotsRef","actionsRef","isWrapped","useHeaderWrapState","shouldRenderHeader","clsx","jsxs","jsx","OwpPageTitle","Divider","FitbitIcon"],"mappings":";;;;;;;;AA+BA,MAAMA,IAAa,gBAAAC,EAAA,CAAC;AAAA,EAClB,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;A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
var s = (t, e) => b(t, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { useRef as u, useState as C, useLayoutEffect as S } from "react";
|
|
4
|
+
const y = /* @__PURE__ */ s((t) => !t || t.getClientRects().length === 0 ? 0 : t.offsetWidth, "getVisibleElementWidth"), h = /* @__PURE__ */ s((t) => {
|
|
5
|
+
if (!t || t.getClientRects().length === 0)
|
|
6
|
+
return 0;
|
|
7
|
+
const e = Array.from(t.children).filter(
|
|
8
|
+
(r) => r.getClientRects().length > 0
|
|
9
|
+
);
|
|
10
|
+
if (e.length === 0)
|
|
11
|
+
return t.offsetWidth;
|
|
12
|
+
const n = window.getComputedStyle(t), o = Number.parseFloat(n.columnGap || n.gap || "0") || 0;
|
|
13
|
+
return e.reduce((r, l) => r + l.offsetWidth, 0) + o * Math.max(e.length - 1, 0);
|
|
14
|
+
}, "getGroupContentWidth"), E = /* @__PURE__ */ s((t = []) => {
|
|
15
|
+
const e = u(null), n = u(null), o = u(null), r = u(null), [l, g] = C(!1);
|
|
16
|
+
return S(() => {
|
|
17
|
+
const c = e.current;
|
|
18
|
+
if (!c)
|
|
19
|
+
return;
|
|
20
|
+
const d = /* @__PURE__ */ s(() => {
|
|
21
|
+
const i = window.getComputedStyle(c), W = Number.parseFloat(i.columnGap || i.gap || "0") || 0, p = [
|
|
22
|
+
y(n.current),
|
|
23
|
+
h(o.current),
|
|
24
|
+
h(r.current)
|
|
25
|
+
].filter((a) => a > 0), m = p.reduce((a, R) => a + R, 0) + W * Math.max(p.length - 1, 0);
|
|
26
|
+
g(m > c.clientWidth);
|
|
27
|
+
}, "updateWrapState");
|
|
28
|
+
d();
|
|
29
|
+
const f = new ResizeObserver(() => {
|
|
30
|
+
d();
|
|
31
|
+
});
|
|
32
|
+
return [c, n.current, o.current, r.current].filter(Boolean).forEach((i) => {
|
|
33
|
+
f.observe(i);
|
|
34
|
+
}), () => {
|
|
35
|
+
f.disconnect();
|
|
36
|
+
};
|
|
37
|
+
}, [t]), {
|
|
38
|
+
containerRef: e,
|
|
39
|
+
titleRef: n,
|
|
40
|
+
slotsRef: o,
|
|
41
|
+
actionsRef: r,
|
|
42
|
+
isWrapped: l
|
|
43
|
+
};
|
|
44
|
+
}, "useHeaderWrapState");
|
|
45
|
+
export {
|
|
46
|
+
E as useHeaderWrapState
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=useHeaderWrapState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHeaderWrapState.js","sources":["../../src/hooks/useHeaderWrapState.ts"],"sourcesContent":["import { useLayoutEffect, useRef, useState, type RefObject } from 'react';\n\ntype HeaderWrapState = {\n containerRef: RefObject<HTMLDivElement | null>;\n titleRef: RefObject<HTMLDivElement | null>;\n slotsRef: RefObject<HTMLDivElement | null>;\n actionsRef: RefObject<HTMLDivElement | null>;\n isWrapped: boolean;\n};\n\nconst getVisibleElementWidth = (element: HTMLElement | null) => {\n if (!element || element.getClientRects().length === 0) {\n return 0;\n }\n\n return element.offsetWidth;\n};\n\nconst getGroupContentWidth = (element: HTMLElement | null) => {\n if (!element || element.getClientRects().length === 0) {\n return 0;\n }\n\n const visibleChildren = Array.from(element.children).filter(\n (child) => (child as HTMLElement).getClientRects().length > 0,\n ) as HTMLElement[];\n\n if (visibleChildren.length === 0) {\n return element.offsetWidth;\n }\n\n const computedStyle = window.getComputedStyle(element);\n const gap = Number.parseFloat(computedStyle.columnGap || computedStyle.gap || '0') || 0;\n\n return (\n visibleChildren.reduce((totalWidth, child) => totalWidth + child.offsetWidth, 0) +\n gap * Math.max(visibleChildren.length - 1, 0)\n );\n};\n\n/**\n * 헤더 한 줄 배치 가능 여부 계산 훅\n * @param deps 측정 재실행 의존성\n */\nconst useHeaderWrapState = (deps: unknown[] = []): HeaderWrapState => {\n const containerRef = useRef<HTMLDivElement>(null);\n const titleRef = useRef<HTMLDivElement>(null);\n const slotsRef = useRef<HTMLDivElement>(null);\n const actionsRef = useRef<HTMLDivElement>(null);\n const [isWrapped, setIsWrapped] = useState(false);\n\n useLayoutEffect(() => {\n const containerElement = containerRef.current;\n\n if (!containerElement) {\n return undefined;\n }\n\n const updateWrapState = () => {\n const containerStyle = window.getComputedStyle(containerElement);\n const columnGap =\n Number.parseFloat(containerStyle.columnGap || containerStyle.gap || '0') || 0;\n const groupWidths = [\n getVisibleElementWidth(titleRef.current),\n getGroupContentWidth(slotsRef.current),\n getGroupContentWidth(actionsRef.current),\n ].filter((width) => width > 0);\n const requiredWidth =\n groupWidths.reduce((totalWidth, width) => totalWidth + width, 0) +\n columnGap * Math.max(groupWidths.length - 1, 0);\n\n setIsWrapped(requiredWidth > containerElement.clientWidth);\n };\n\n updateWrapState();\n\n const resizeObserver = new ResizeObserver(() => {\n updateWrapState();\n });\n\n [containerElement, titleRef.current, slotsRef.current, actionsRef.current]\n .filter(Boolean)\n .forEach((element) => {\n resizeObserver.observe(element as HTMLElement);\n });\n\n return () => {\n resizeObserver.disconnect();\n };\n }, [deps]);\n\n return {\n containerRef,\n titleRef,\n slotsRef,\n actionsRef,\n isWrapped,\n };\n};\n\nexport { useHeaderWrapState };\n"],"names":["getVisibleElementWidth","__name","element","getGroupContentWidth","visibleChildren","child","computedStyle","gap","totalWidth","useHeaderWrapState","deps","containerRef","useRef","titleRef","slotsRef","actionsRef","isWrapped","setIsWrapped","useState","useLayoutEffect","containerElement","updateWrapState","containerStyle","columnGap","groupWidths","width","requiredWidth","resizeObserver"],"mappings":";;;AAUA,MAAMA,IAAyB,gBAAAC,EAAA,CAACC,MAC1B,CAACA,KAAWA,EAAQ,eAAA,EAAiB,WAAW,IAC3C,IAGFA,EAAQ,aALc,2BAQzBC,IAAuB,gBAAAF,EAAA,CAACC,MAAgC;AAC5D,MAAI,CAACA,KAAWA,EAAQ,eAAA,EAAiB,WAAW;AAClD,WAAO;AAGT,QAAME,IAAkB,MAAM,KAAKF,EAAQ,QAAQ,EAAE;AAAA,IACnD,CAACG,MAAWA,EAAsB,eAAA,EAAiB,SAAS;AAAA,EAA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AASC,EAAW,OAAO,EACtE,OAAO,OAAO,EACd,QAAQ,CAACb,MAAY;AACpB,MAAAyB,EAAe,QAAQzB,CAAsB;AAAA,IAC/C,CAAC,GAEI,MAAM;AACX,MAAAyB,EAAe,WAAA;AAAA,IACjB;AAAA,EACF,GAAG,CAACjB,CAAI,CAAC,GAEF;AAAA,IACL,cAAAC;AAAA,IACA,UAAAE;AAAA,IACA,UAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAC;AAAA,EAAA;AAEJ,GAtD2B;"}
|
package/dist/hooks.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { useGetCommonCodeList as
|
|
1
|
+
import { useGetCommonCodeList as o, useSetCommonCodeList as t } from "./hooks/useCommonCodeList.js";
|
|
2
2
|
import { useAccessTokenGuard as u } from "./hooks/useAccessTokenGuard.js";
|
|
3
|
-
import { useAppDispatch as
|
|
3
|
+
import { useAppDispatch as m, useAppSelector as f, useAppStore as n } from "./hooks/useAppStore.js";
|
|
4
4
|
import { useConfirm as a } from "./hooks/useConfirm.js";
|
|
5
5
|
import { useGetCurrentLanguage as C, useGetLanguageList as L, useSetCurrentLanguage as g } from "./hooks/useCurrentLanguage.js";
|
|
6
|
-
import { useGetLogoSrc as
|
|
6
|
+
import { useGetLogoSrc as c, useSetLogoSrc as G } from "./hooks/useLogoSrc.js";
|
|
7
7
|
import { useGetCurrentUser as A, useSetCurrentUser as E } from "./hooks/useCurrentUser.js";
|
|
8
8
|
import { useGetCurrentUserId as h, useSetCurrentUserId as v } from "./hooks/useCurrentUserId.js";
|
|
9
9
|
import { useDebounce as I } from "./hooks/useDebounce.js";
|
|
10
10
|
import { useDeepCompareEffect as k, useDeepCompareEffectNoCheck as N, useDeepCompareMemoize as l } from "./hooks/useDeepCompareEffect.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
11
|
+
import { useHeaderWrapState as M } from "./hooks/useHeaderWrapState.js";
|
|
12
|
+
import { useInitApp as b } from "./hooks/useInitApp.js";
|
|
13
|
+
import { useInitCommonCodes as y } from "./hooks/useInitCommonCodes.js";
|
|
14
|
+
import { useGetNavigationList as B, useSetNavigationList as F } from "./hooks/useNavigation.js";
|
|
15
|
+
import { useOwpTranslation as K } from "./hooks/useOwpTranslation.js";
|
|
16
|
+
import { useGetPageLockLoading as Q, usePageLockLoading as W } from "./hooks/usePageLockLoading.js";
|
|
16
17
|
import { usePrevious as q } from "./hooks/usePrevious.js";
|
|
17
|
-
import { useGetShortcuts as
|
|
18
|
-
import { getEnv as
|
|
19
|
-
import { useThemeMediaQuery as
|
|
20
|
-
import { useTimeout as
|
|
21
|
-
import { useTreeGridCommonCodeEnums as
|
|
22
|
-
import { useTreeGridEnums as
|
|
23
|
-
import { useTreeGridExcelExport as
|
|
24
|
-
import { FALLBACK_LANGUAGE_LIST as
|
|
18
|
+
import { useGetShortcuts as R, useSetShortcuts as V } from "./hooks/useShortcuts.js";
|
|
19
|
+
import { getEnv as Y, setEnv as Z, useStorage as $ } from "./hooks/useStorage.js";
|
|
20
|
+
import { useThemeMediaQuery as re } from "./hooks/useThemeMediaQuery.js";
|
|
21
|
+
import { useTimeout as te } from "./hooks/useTimeout.js";
|
|
22
|
+
import { useTreeGridCommonCodeEnums as ue } from "./hooks/useTreeGridCommonCodeEnums.js";
|
|
23
|
+
import { useTreeGridEnums as me } from "./hooks/useTreeGridEnums.js";
|
|
24
|
+
import { useTreeGridExcelExport as ne } from "./hooks/useTreeGridExcelExport.js";
|
|
25
|
+
import { FALLBACK_LANGUAGE_LIST as ae } from "./constants/language.js";
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
ae as FALLBACK_LANGUAGE_LIST,
|
|
28
|
+
Y as getEnv,
|
|
29
|
+
Z as setEnv,
|
|
29
30
|
u as useAccessTokenGuard,
|
|
30
|
-
|
|
31
|
+
m as useAppDispatch,
|
|
31
32
|
f as useAppSelector,
|
|
32
33
|
n as useAppStore,
|
|
33
34
|
a as useConfirm,
|
|
@@ -35,32 +36,33 @@ export {
|
|
|
35
36
|
k as useDeepCompareEffect,
|
|
36
37
|
N as useDeepCompareEffectNoCheck,
|
|
37
38
|
l as useDeepCompareMemoize,
|
|
38
|
-
|
|
39
|
+
o as useGetCommonCodeList,
|
|
39
40
|
C as useGetCurrentLanguage,
|
|
40
41
|
A as useGetCurrentUser,
|
|
41
42
|
h as useGetCurrentUserId,
|
|
42
43
|
L as useGetLanguageList,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
M as
|
|
48
|
-
b as
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
c as useGetLogoSrc,
|
|
45
|
+
B as useGetNavigationList,
|
|
46
|
+
Q as useGetPageLockLoading,
|
|
47
|
+
R as useGetShortcuts,
|
|
48
|
+
M as useHeaderWrapState,
|
|
49
|
+
b as useInitApp,
|
|
50
|
+
y as useInitCommonCodes,
|
|
51
|
+
K as useOwpTranslation,
|
|
52
|
+
W as usePageLockLoading,
|
|
51
53
|
q as usePrevious,
|
|
52
54
|
t as useSetCommonCodeList,
|
|
53
55
|
g as useSetCurrentLanguage,
|
|
54
56
|
E as useSetCurrentUser,
|
|
55
57
|
v as useSetCurrentUserId,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
G as useSetLogoSrc,
|
|
59
|
+
F as useSetNavigationList,
|
|
60
|
+
V as useSetShortcuts,
|
|
61
|
+
$ as useStorage,
|
|
62
|
+
re as useThemeMediaQuery,
|
|
63
|
+
te as useTimeout,
|
|
64
|
+
ue as useTreeGridCommonCodeEnums,
|
|
65
|
+
me as useTreeGridEnums,
|
|
66
|
+
ne as useTreeGridExcelExport
|
|
65
67
|
};
|
|
66
68
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var a = (
|
|
3
|
-
import { jsx as
|
|
4
|
-
import
|
|
5
|
-
import { styled as
|
|
6
|
-
import { clsx as
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var a = (e, t) => u(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { jsx as d } from "../../../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
+
import h from "@mui/material/List";
|
|
5
|
+
import { styled as w } from "@mui/material/styles";
|
|
6
|
+
import { clsx as f } from "../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
|
|
7
|
+
import { useRef as v, useEffect as b } from "react";
|
|
7
8
|
import { NavItem as y } from "../NavItem.js";
|
|
8
|
-
const
|
|
9
|
+
const S = w(h)(({ theme: e }) => ({
|
|
9
10
|
"& .owp-list-item": {
|
|
10
11
|
"&:hover": {
|
|
11
12
|
backgroundColor: "rgba(0,0,0,.04)",
|
|
12
|
-
...
|
|
13
|
+
...e.applyStyles("dark", {
|
|
13
14
|
backgroundColor: "rgba(255, 255, 255, 0.05)"
|
|
14
15
|
})
|
|
15
16
|
},
|
|
16
17
|
"&:focus:not(.active)": {
|
|
17
18
|
backgroundColor: "rgba(0,0,0,.05)",
|
|
18
|
-
...
|
|
19
|
+
...e.applyStyles("dark", {
|
|
19
20
|
backgroundColor: "rgba(255, 255, 255, 0.06)"
|
|
20
21
|
})
|
|
21
22
|
}
|
|
@@ -39,32 +40,67 @@ const b = v(g)(({ theme: t }) => ({
|
|
|
39
40
|
height: 32
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
}))
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
})), x = '.owp-list-item[aria-current="page"], .owp-list-item.active', g = 40, C = 0.35, I = /* @__PURE__ */ a((e) => {
|
|
44
|
+
const t = e.parentElement;
|
|
45
|
+
if (t && t.scrollHeight > t.clientHeight)
|
|
46
|
+
return t;
|
|
47
|
+
let o = t == null ? void 0 : t.parentElement;
|
|
48
|
+
for (; o; ) {
|
|
49
|
+
if (o.scrollHeight > o.clientHeight)
|
|
50
|
+
return o;
|
|
51
|
+
o = o.parentElement;
|
|
47
52
|
}
|
|
48
|
-
return
|
|
49
|
-
|
|
53
|
+
return null;
|
|
54
|
+
}, "getNavigationScrollContainer"), k = /* @__PURE__ */ a((e) => {
|
|
55
|
+
const t = e.querySelectorAll(x), o = t.item(t.length - 1);
|
|
56
|
+
if (!o)
|
|
57
|
+
return;
|
|
58
|
+
const i = I(e);
|
|
59
|
+
if (!i)
|
|
60
|
+
return;
|
|
61
|
+
const l = i.getBoundingClientRect(), n = o.getBoundingClientRect(), p = n.top < l.top + g, s = n.bottom > l.bottom - g;
|
|
62
|
+
if (p || s) {
|
|
63
|
+
const c = i.scrollTop + (n.top - l.top) - i.clientHeight * C + n.height / 2, m = i.scrollHeight - i.clientHeight;
|
|
64
|
+
i.scrollTo({
|
|
65
|
+
top: Math.min(Math.max(c, 0), m),
|
|
66
|
+
behavior: "smooth"
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}, "scrollSelectedItemIntoView");
|
|
70
|
+
function L(e) {
|
|
71
|
+
const { navigation: t, active: o, dense: i, className: l, onItemClick: n, checkPermission: p, openedCollapseIds: s } = e, c = v(null);
|
|
72
|
+
b(() => {
|
|
73
|
+
const r = window.requestAnimationFrame(() => {
|
|
74
|
+
c.current && k(c.current);
|
|
75
|
+
});
|
|
76
|
+
return () => {
|
|
77
|
+
window.cancelAnimationFrame(r);
|
|
78
|
+
};
|
|
79
|
+
}, [s]);
|
|
80
|
+
function m(r) {
|
|
81
|
+
n == null || n(r);
|
|
82
|
+
}
|
|
83
|
+
return a(m, "handleItemClick"), /* @__PURE__ */ d(
|
|
84
|
+
S,
|
|
50
85
|
{
|
|
51
|
-
|
|
86
|
+
ref: c,
|
|
87
|
+
className: f(
|
|
52
88
|
"navigation whitespace-nowrap px-12 py-0",
|
|
53
|
-
`active-${
|
|
54
|
-
|
|
55
|
-
|
|
89
|
+
`active-${o}-list`,
|
|
90
|
+
i && "dense",
|
|
91
|
+
l
|
|
56
92
|
),
|
|
57
|
-
children:
|
|
93
|
+
children: t.map((r) => /* @__PURE__ */ d(
|
|
58
94
|
y,
|
|
59
95
|
{
|
|
60
|
-
type: `vertical-${
|
|
61
|
-
item:
|
|
96
|
+
type: `vertical-${r.type}`,
|
|
97
|
+
item: r,
|
|
62
98
|
nestedLevel: 0,
|
|
63
|
-
onItemClick:
|
|
64
|
-
checkPermission:
|
|
65
|
-
openedCollapseIds:
|
|
99
|
+
onItemClick: m,
|
|
100
|
+
checkPermission: p,
|
|
101
|
+
openedCollapseIds: s
|
|
66
102
|
},
|
|
67
|
-
|
|
103
|
+
r.id
|
|
68
104
|
))
|
|
69
105
|
}
|
|
70
106
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavVerticalLayout.js","sources":["../../../../../src/layout/components/navigation/vertical/NavVerticalLayout.tsx"],"sourcesContent":["import List from '@mui/material/List';\nimport { styled } from '@mui/material/styles';\nimport type { OwpNavItemType as NavItemType } from '@/types/OwpNavigationTypes';\nimport clsx from 'clsx';\nimport { NavItem } from '../NavItem';\nimport { NavigationMenuProps } from '../NavigationMenu';\n\nconst StyledList = styled(List)(({ theme }) => ({\n '& .owp-list-item': {\n '&:hover': {\n backgroundColor: 'rgba(0,0,0,.04)',\n ...theme.applyStyles('dark', {\n backgroundColor: 'rgba(255, 255, 255, 0.05)',\n }),\n },\n '&:focus:not(.active)': {\n backgroundColor: 'rgba(0,0,0,.05)',\n ...theme.applyStyles('dark', {\n backgroundColor: 'rgba(255, 255, 255, 0.06)',\n }),\n },\n },\n '& .owp-list-item-text': {\n margin: 0,\n },\n '& .owp-list-item-text-primary': {\n lineHeight: '20px',\n },\n '&.active-square-list': {\n '& .owp-list-item, & .active.owp-list-item': {\n width: '100%',\n borderRadius: '0',\n },\n },\n '&.dense': {\n '& .owp-list-item': {\n paddingTop: 0,\n paddingBottom: 0,\n height: 32,\n },\n },\n}));\n\n/**\n * NavVerticalLayout\n * This component is used to render vertical navigations using\n * the Material-UI List component. It accepts the NavigationMenuProps props\n * and renders the nav items accordingly.\n */\nfunction NavVerticalLayout(props: NavigationMenuProps) {\n const { navigation, active, dense, className, onItemClick, checkPermission, openedCollapseIds } =\n props;\n\n function handleItemClick(item: NavItemType) {\n onItemClick?.(item);\n }\n\n return (\n <StyledList\n className={clsx(\n 'navigation whitespace-nowrap px-12 py-0',\n `active-${active}-list`,\n dense && 'dense',\n className,\n )}\n >\n {navigation.map((_item) => (\n <NavItem\n key={_item.id}\n type={`vertical-${_item.type}`}\n item={_item}\n nestedLevel={0}\n onItemClick={handleItemClick}\n checkPermission={checkPermission}\n openedCollapseIds={openedCollapseIds}\n />\n ))}\n </StyledList>\n );\n}\n\nexport { NavVerticalLayout };\n"],"names":["StyledList","styled","List","theme","NavVerticalLayout","props","navigation","active","dense","className","onItemClick","checkPermission","openedCollapseIds","
|
|
1
|
+
{"version":3,"file":"NavVerticalLayout.js","sources":["../../../../../src/layout/components/navigation/vertical/NavVerticalLayout.tsx"],"sourcesContent":["import List from '@mui/material/List';\nimport { styled } from '@mui/material/styles';\nimport type { OwpNavItemType as NavItemType } from '@/types/OwpNavigationTypes';\nimport clsx from 'clsx';\nimport { useEffect, useRef } from 'react';\nimport { NavItem } from '../NavItem';\nimport { NavigationMenuProps } from '../NavigationMenu';\n\nconst StyledList = styled(List)(({ theme }) => ({\n '& .owp-list-item': {\n '&:hover': {\n backgroundColor: 'rgba(0,0,0,.04)',\n ...theme.applyStyles('dark', {\n backgroundColor: 'rgba(255, 255, 255, 0.05)',\n }),\n },\n '&:focus:not(.active)': {\n backgroundColor: 'rgba(0,0,0,.05)',\n ...theme.applyStyles('dark', {\n backgroundColor: 'rgba(255, 255, 255, 0.06)',\n }),\n },\n },\n '& .owp-list-item-text': {\n margin: 0,\n },\n '& .owp-list-item-text-primary': {\n lineHeight: '20px',\n },\n '&.active-square-list': {\n '& .owp-list-item, & .active.owp-list-item': {\n width: '100%',\n borderRadius: '0',\n },\n },\n '&.dense': {\n '& .owp-list-item': {\n paddingTop: 0,\n paddingBottom: 0,\n height: 32,\n },\n },\n}));\n\nconst selectedNavigationItemSelector = '.owp-list-item[aria-current=\"page\"], .owp-list-item.active';\nconst navigationScrollViewportPadding = 40;\nconst navigationScrollAnchorRatio = 0.35;\n\n/**\n * 네비게이션 스크롤 컨테이너 조회\n * @param navigationElement 네비게이션 리스트 요소\n */\nconst getNavigationScrollContainer = (navigationElement: HTMLUListElement) => {\n const directParentElement = navigationElement.parentElement;\n\n if (\n directParentElement &&\n directParentElement.scrollHeight > directParentElement.clientHeight\n ) {\n return directParentElement;\n }\n\n let currentElement = directParentElement?.parentElement;\n\n while (currentElement) {\n if (currentElement.scrollHeight > currentElement.clientHeight) {\n return currentElement;\n }\n\n currentElement = currentElement.parentElement;\n }\n\n return null;\n};\n\n/**\n * 선택 메뉴 가시 영역 정렬\n * @param navigationElement 네비게이션 리스트 요소\n */\nconst scrollSelectedItemIntoView = (navigationElement: HTMLUListElement) => {\n const selectedItems = navigationElement.querySelectorAll<HTMLElement>(selectedNavigationItemSelector);\n const selectedItem = selectedItems.item(selectedItems.length - 1);\n\n if (!selectedItem) {\n return;\n }\n\n const scrollContainer = getNavigationScrollContainer(navigationElement);\n\n if (!scrollContainer) {\n return;\n }\n\n const containerRect = scrollContainer.getBoundingClientRect();\n const selectedItemRect = selectedItem.getBoundingClientRect();\n const isAboveViewport =\n selectedItemRect.top < containerRect.top + navigationScrollViewportPadding;\n const isBelowViewport =\n selectedItemRect.bottom > containerRect.bottom - navigationScrollViewportPadding;\n\n if (isAboveViewport || isBelowViewport) {\n const nextScrollTop =\n scrollContainer.scrollTop +\n (selectedItemRect.top - containerRect.top) -\n scrollContainer.clientHeight * navigationScrollAnchorRatio +\n selectedItemRect.height / 2;\n const maxScrollTop = scrollContainer.scrollHeight - scrollContainer.clientHeight;\n\n scrollContainer.scrollTo({\n top: Math.min(Math.max(nextScrollTop, 0), maxScrollTop),\n behavior: 'smooth',\n });\n }\n};\n\n/**\n * NavVerticalLayout\n * This component is used to render vertical navigations using\n * the Material-UI List component. It accepts the NavigationMenuProps props\n * and renders the nav items accordingly.\n */\nfunction NavVerticalLayout(props: NavigationMenuProps) {\n const { navigation, active, dense, className, onItemClick, checkPermission, openedCollapseIds } =\n props;\n const navigationRef = useRef<HTMLUListElement>(null);\n\n useEffect(() => {\n const animationFrameId = window.requestAnimationFrame(() => {\n if (navigationRef.current) {\n scrollSelectedItemIntoView(navigationRef.current);\n }\n });\n\n return () => {\n window.cancelAnimationFrame(animationFrameId);\n };\n }, [openedCollapseIds]);\n\n function handleItemClick(item: NavItemType) {\n onItemClick?.(item);\n }\n\n return (\n <StyledList\n ref={navigationRef}\n className={clsx(\n 'navigation whitespace-nowrap px-12 py-0',\n `active-${active}-list`,\n dense && 'dense',\n className,\n )}\n >\n {navigation.map((_item) => (\n <NavItem\n key={_item.id}\n type={`vertical-${_item.type}`}\n item={_item}\n nestedLevel={0}\n onItemClick={handleItemClick}\n checkPermission={checkPermission}\n openedCollapseIds={openedCollapseIds}\n />\n ))}\n </StyledList>\n );\n}\n\nexport { NavVerticalLayout };\n"],"names":["StyledList","styled","List","theme","selectedNavigationItemSelector","navigationScrollViewportPadding","navigationScrollAnchorRatio","getNavigationScrollContainer","__name","navigationElement","directParentElement","currentElement","scrollSelectedItemIntoView","selectedItems","selectedItem","scrollContainer","containerRect","selectedItemRect","isAboveViewport","isBelowViewport","nextScrollTop","maxScrollTop","NavVerticalLayout","props","navigation","active","dense","className","onItemClick","checkPermission","openedCollapseIds","navigationRef","useRef","useEffect","animationFrameId","handleItemClick","item","jsx","clsx","_item","NavItem"],"mappings":";;;;;;;;AAQA,MAAMA,IAAaC,EAAOC,CAAI,EAAE,CAAC,EAAE,OAAAC,SAAa;AAAA,EAC9C,oBAAoB;AAAA,IAClB,WAAW;AAAA,MACT,iBAAiB;AAAA,MACjB,GAAGA,EAAM,YAAY,QAAQ;AAAA,QAC3B,iBAAiB;AAAA,MAAA,CAClB;AAAA,IAAA;AAAA,IAEH,wBAAwB;AAAA,MACtB,iBAAiB;AAAA,MACjB,GAAGA,EAAM,YAAY,QAAQ;AAAA,QAC3B,iBAAiB;AAAA,MAAA,CAClB;AAAA,IAAA;AAAA,EACH;AAAA,EAEF,yBAAyB;AAAA,IACvB,QAAQ;AAAA,EAAA;AAAA,EAEV,iCAAiC;AAAA,IAC/B,YAAY;AAAA,EAAA;AAAA,EAEd,wBAAwB;AAAA,IACtB,6CAA6C;AAAA,MAC3C,OAAO;AAAA,MACP,cAAc;AAAA,IAAA;AAAA,EAChB;AAAA,EAEF,WAAW;AAAA,IACT,oBAAoB;AAAA,MAClB,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,QAAQ;AAAA,IAAA;AAAA,EACV;AAEJ,EAAE,GAEIC,IAAiC,8DACjCC,IAAkC,IAClCC,IAA8B,MAM9BC,IAA+B,gBAAAC,EAAA,CAACC,MAAwC;AAC5E,QAAMC,IAAsBD,EAAkB;AAE9C,MACEC,KACAA,EAAoB,eAAeA,EAAoB;AAEvD,WAAOA;AAGT,MAAIC,IAAiBD,KAAA,gBAAAA,EAAqB;AAE1C,SAAOC,KAAgB;AACrB,QAAIA,EAAe,eAAeA,EAAe;AAC/C,aAAOA;AAGT,IAAAA,IAAiBA,EAAe;AAAA,EAClC;AAEA,SAAO;AACT,GArBqC,iCA2B/BC,IAA6B,gBA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,KAAK+B;AAAA,MACL,WAAWO;AAAA,QACT;AAAA,QACA,UAAUb,CAAM;AAAA,QAChBC,KAAS;AAAA,QACTC;AAAA,MAAA;AAAA,MAGD,UAAAH,EAAW,IAAI,CAACe,MACf,gBAAAF;AAAA,QAACG;AAAA,QAAA;AAAA,UAEC,MAAM,YAAYD,EAAM,IAAI;AAAA,UAC5B,MAAMA;AAAA,UACN,aAAa;AAAA,UACb,aAAaJ;AAAA,UACb,iBAAAN;AAAA,UACA,mBAAAC;AAAA,QAAA;AAAA,QANKS,EAAM;AAAA,MAAA,CAQd;AAAA,IAAA;AAAA,EAAA;AAGP;AA5CS/B,EAAAc,GAAA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
2
|
var t = (e, _) => f(e, "name", { value: _, configurable: !0 });
|
|
3
|
-
import { __exports as r } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as r } from "../../../../../../../../_virtual/constants2.js";
|
|
4
4
|
var i;
|
|
5
5
|
function E() {
|
|
6
6
|
if (i) return r;
|
|
@@ -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/constants.js";
|
|
4
4
|
var e;
|
|
5
5
|
function o() {
|
|
6
6
|
return e ? L : (e = 1, Object.defineProperty(L, "__esModule", {
|
package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var v = Object.defineProperty;
|
|
2
2
|
var _ = (a, t) => v(a, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { __exports as r } from "../../../../../../../_virtual/
|
|
3
|
+
import { __exports as r } from "../../../../../../../_virtual/index15.js";
|
|
4
4
|
import { __require as f } from "./canvas.js";
|
|
5
5
|
import { __require as q } from "./svg.js";
|
|
6
6
|
import { __require as c } from "./object.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var t = Object.defineProperty;
|
|
2
2
|
var i = (e, o) => t(e, "name", { value: o, configurable: !0 });
|
|
3
|
-
import { __module as r } from "../../../../../_virtual/
|
|
3
|
+
import { __module as r } from "../../../../../_virtual/index17.js";
|
|
4
4
|
import { __require as p } from "../../../react-is@16.13.1/node_modules/react-is/index.js";
|
|
5
5
|
import { __require as u } from "./factoryWithTypeCheckers.js";
|
|
6
6
|
import { __require as a } from "./factoryWithThrowingShims.js";
|
package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
2
|
var f = (n, a) => d(n, "name", { value: a, configurable: !0 });
|
|
3
3
|
import r from "react";
|
|
4
|
-
import e from "../../../../../../_virtual/
|
|
4
|
+
import e from "../../../../../../_virtual/index16.js";
|
|
5
5
|
import "../../../../imask@7.6.1/node_modules/imask/esm/controls/input.js";
|
|
6
6
|
import m from "../../../../imask@7.6.1/node_modules/imask/esm/core/holder.js";
|
|
7
7
|
import "../../../../imask@7.6.1/node_modules/imask/esm/masked/factory.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var i = Object.defineProperty;
|
|
2
2
|
var r = (t, s) => i(t, "name", { value: s, configurable: !0 });
|
|
3
|
-
import { __module as e } from "../../../../../_virtual/
|
|
3
|
+
import { __module as e } from "../../../../../_virtual/index5.js";
|
|
4
4
|
import { __require as u } from "./cjs/react-is.production.min.js";
|
|
5
5
|
import { __require as p } from "./cjs/react-is.development.js";
|
|
6
6
|
var o;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
2
|
var a = (r, e) => c(r, "name", { value: e, configurable: !0 });
|
|
3
|
-
import n from "../../../../../../_virtual/
|
|
3
|
+
import n from "../../../../../../_virtual/index16.js";
|
|
4
4
|
import m from "react-dom";
|
|
5
5
|
import t from "react";
|
|
6
6
|
import u from "./useWaitForDOMRef.js";
|